Runtime for frustum cull filter. More...
#include <kanzi/core.ui/graphics3d/frustum_cull_filter_runtime.hpp>
Public Types | |
| enum | FrustumPlaneIndex { FrustumPlaneNear , FrustumPlaneFar , FrustumPlaneTop , FrustumPlaneBottom , FrustumPlaneLeft , FrustumPlaneRight , FrustumPlaneCount } |
| Frustum plane indices. More... | |
Public Member Functions | |
| CameraSharedPtr | getCamera () const |
| Gets the filtering camera. | |
| Matrix4x4 | getProjectionMatrix () const |
| Gets the projection matrix used. | |
| void | setProjectionMatrix (Matrix4x4 matrix) |
| Sets the projection matrix. | |
Public Member Functions inherited from kanzi::FilterObjectSourceRuntime | |
| bool | filterNode (Node &node) |
| Runs a filter on the given node. | |
Public Member Functions inherited from kanzi::ObjectSourceRuntime | |
| void | filter (NodeList &outputNodes) |
| Runs the filter on a given node. | |
| NodeListSharedPtr | getInputNodeList () |
| Gets the input node list for this particular object source. | |
| ObjectSourceRuntimeSharedPtr | getParentRuntime () const |
| Gets the parent runtime. | |
| NodeListSharedPtr | getRootNodeList () |
| Gets the root node list, parents included. | |
| bool | isDirty () |
| Tells if the node filter considers itself dirty and needs re-executing. | |
| bool | matches (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter) |
| Tells if this filter runtime matches the given node list and filter. | |
| void | setCamera (CameraSharedPtr camera) |
| Sets the camera for this object source runtime. | |
| void | update (NodeList &nodes) |
| Perform implementation-dependent per-frame update for internal data of the filter. | |
| virtual | ~ObjectSourceRuntime ()=default |
| Destructor. | |
Static Public Member Functions | |
| static FrustumCullFilterRuntimeSharedPtr | create (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter) |
| Creates a contains property node filter. | |
Protected Attributes | |
| CameraWeakPtr | m_camera |
| Camera to filter with. | |
| Plane | m_frustumPlanes [FrustumPlaneCount] |
| Frustum planes. | |
| Matrix4x4 | m_projectionMatrix |
| Camera projection matrix. | |
| bool | m_valid |
| Indicates if the culling data valid and usable for filtering. | |
Protected Attributes inherited from kanzi::FilterObjectSourceRuntime | |
| bool | m_isExclusive |
| Exclusivity flag, copied from the filter object source. | |
Protected Attributes inherited from kanzi::ObjectSourceRuntime | |
| NodeListWeakPtr | m_inputNodes |
| Input node list. | |
| ObjectSourceWeakPtr | m_objectSource |
| Parent object source. | |
| NodeListSharedPtr | m_parentNodeList |
| Node list that is the result of the parent runtime being executed. | |
| ObjectSourceRuntimeSharedPtr | m_parentRuntime |
| Runtime for the object source chain. | |
Runtime for frustum cull filter.
Frustum plane indices.
|
inlineexplicitprotected |
Constructor.
| nodeList | Node list to filter. |
| filter | Parent filter. |
|
static |
Creates a contains property node filter.
| nodeList | Node list to filter. |
| filter | Parent filter. |
|
inline |
Gets the filtering camera.
|
inline |
Gets the projection matrix used.
Sets the projection matrix.
| matrix | Projection matrix to use. |
FilterObjectSourceRuntime::filterNodeOverride() implementation.
Reimplemented from kanzi::FilterObjectSourceRuntime.
|
overrideprotectedvirtual |
ObjectSourceRuntime::filterOverride() implementation.
Reimplemented from kanzi::FilterObjectSourceRuntime.
|
overrideprotectedvirtual |
ObjectSourceRuntime::isDirtyOverride() implementation.
Reimplemented from kanzi::ObjectSourceRuntime.
|
overrideprotectedvirtual |
ObjectSourceRuntime::setCameraOverride() implementation.
Reimplemented from kanzi::ObjectSourceRuntime.
|
protected |
Camera to filter with.
|
protected |
Frustum planes.
|
protected |
Indicates if the culling data valid and usable for filtering.