Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::FrustumCullFilterRuntime Class Reference

Runtime for frustum cull filter. More...

#include <kanzi/core.ui/graphics3d/frustum_cull_filter_runtime.hpp>

Inheritance diagram for kanzi::FrustumCullFilterRuntime:
[legend]

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. More...
 
Matrix4x4 getProjectionMatrix () const
 Gets the projection matrix used. More...
 
void setProjectionMatrix (Matrix4x4 matrix)
 Sets the projection matrix. More...
 
- Public Member Functions inherited from kanzi::FilterObjectSourceRuntime
bool filterNode (Node &node)
 Runs a filter on the given node. More...
 
- Public Member Functions inherited from kanzi::ObjectSourceRuntime
void filter (NodeList &outputNodes)
 Runs the filter on a given node. More...
 
NodeListSharedPtr getInputNodeList ()
 Gets the input node list for this particular object source. More...
 
ObjectSourceRuntimeSharedPtr getParentRuntime () const
 Gets the parent runtime. More...
 
NodeListSharedPtr getRootNodeList ()
 Gets the root node list, parents included. More...
 
bool isDirty ()
 Tells if the node filter considers itself dirty and needs re-executing. More...
 
bool matches (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter)
 Tells if this filter runtime matches the given node list and filter. More...
 
void setCamera (CameraSharedPtr camera)
 Sets the camera for this object source runtime. More...
 
void update (NodeList &nodes)
 Perform implementation-dependent per-frame update for internal data of the filter. More...
 
virtual ~ObjectSourceRuntime ()=default
 Destructor. More...
 

Static Public Member Functions

static FrustumCullFilterRuntimeSharedPtr create (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter)
 Creates a contains property node filter. More...
 

Protected Member Functions

bool filterNodeOverride (Node &node) override
 FilterObjectSourceRuntime::filterNodeOverride() implementation. More...
 
void filterOverride (NodeList &inputNodes, NodeList &outputNodes) override
 ObjectSourceRuntime::filterOverride() implementation. More...
 
 FrustumCullFilterRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter)
 Constructor. More...
 
bool isDirtyOverride () override
 ObjectSourceRuntime::isDirtyOverride() implementation. More...
 
void setCameraOverride (CameraSharedPtr camera) override
 ObjectSourceRuntime::setCameraOverride() implementation. More...
 
- Protected Member Functions inherited from kanzi::FilterObjectSourceRuntime
 FilterObjectSourceRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::ObjectSourceRuntime
 ObjectSourceRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr objectSource)
 Constructor. More...
 
virtual void updateOverride (NodeList &nodes)
 Object source -specific implementation of per-frame update. More...
 

Protected Attributes

CameraWeakPtr m_camera
 Camera to filter with. More...
 
Plane m_frustumPlanes [FrustumPlaneCount]
 Frustum planes. More...
 
Matrix4x4 m_projectionMatrix
 Camera projection matrix. More...
 
bool m_valid
 Indicates if the culling data valid and usable for filtering. More...
 
- Protected Attributes inherited from kanzi::FilterObjectSourceRuntime
bool m_isExclusive
 Exclusivity flag, copied from the filter object source. More...
 
- Protected Attributes inherited from kanzi::ObjectSourceRuntime
NodeListWeakPtr m_inputNodes
 Input node list. More...
 
ObjectSourceWeakPtr m_objectSource
 Parent object source. More...
 
NodeListSharedPtr m_parentNodeList
 Node list that is the result of the parent runtime being executed. More...
 
ObjectSourceRuntimeSharedPtr m_parentRuntime
 Runtime for the object source chain. More...
 

Detailed Description

Runtime for frustum cull filter.

Since
Kanzi 3.9.0

Member Enumeration Documentation

Frustum plane indices.

Enumerator
FrustumPlaneNear 

Near frustum plane.

FrustumPlaneFar 

Far frustum plane.

FrustumPlaneTop 

Top frustum plane.

FrustumPlaneBottom 

Bottom frustum plane.

FrustumPlaneLeft 

Left frustum plane.

FrustumPlaneRight 

Right frustum plane.

FrustumPlaneCount 

Number of frustum planes.

Constructor & Destructor Documentation

kanzi::FrustumCullFilterRuntime::FrustumCullFilterRuntime ( NodeListSharedPtr  nodeList,
ObjectSourceSharedPtr  filter 
)
inlineexplicitprotected

Constructor.

Parameters
nodeListNode list to filter.
filterParent filter.

Member Function Documentation

static FrustumCullFilterRuntimeSharedPtr kanzi::FrustumCullFilterRuntime::create ( NodeListSharedPtr  nodeList,
ObjectSourceSharedPtr  filter 
)
static

Creates a contains property node filter.

Parameters
nodeListNode list to filter.
filterParent filter.
CameraSharedPtr kanzi::FrustumCullFilterRuntime::getCamera ( ) const
inline

Gets the filtering camera.

Returns
Camera used for filtering. May be empty.
Matrix4x4 kanzi::FrustumCullFilterRuntime::getProjectionMatrix ( ) const
inline

Gets the projection matrix used.

Returns
Projection matrix.
void kanzi::FrustumCullFilterRuntime::setProjectionMatrix ( Matrix4x4  matrix)
inline

Sets the projection matrix.

Parameters
matrixProjection matrix to use.
bool kanzi::FrustumCullFilterRuntime::filterNodeOverride ( Node node)
overrideprotectedvirtual
void kanzi::FrustumCullFilterRuntime::filterOverride ( NodeList inputNodes,
NodeList outputNodes 
)
overrideprotectedvirtual
bool kanzi::FrustumCullFilterRuntime::isDirtyOverride ( )
overrideprotectedvirtual
void kanzi::FrustumCullFilterRuntime::setCameraOverride ( CameraSharedPtr  camera)
overrideprotectedvirtual

Member Data Documentation

CameraWeakPtr kanzi::FrustumCullFilterRuntime::m_camera
protected

Camera to filter with.

Matrix4x4 kanzi::FrustumCullFilterRuntime::m_projectionMatrix
protected

Camera projection matrix.

Plane kanzi::FrustumCullFilterRuntime::m_frustumPlanes[FrustumPlaneCount]
protected

Frustum planes.

bool kanzi::FrustumCullFilterRuntime::m_valid
protected

Indicates if the culling data valid and usable for filtering.


The documentation for this class was generated from the following file: