CullTraverserData¶
-
class CullTraverserData¶
This collects together the pieces of data that are accumulated for each node while walking the scene graph during the cull traversal.
Having this as a separate object simplifies the parameter list to CullTraverser::r_traverse(), as well as to other functions like AcronNode::cull_callback(). It also makes it easier to add cull parameters, and provides a place to abstract out some of the cull behavior (like view-frustum culling).
Inheritance diagram
digraph inheritance1109c6af3a { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CullTraverserData" [URL="acron.core.CullTraverserData.html#acron.core.CullTraverserData",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "CullTraverserData" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- CullTraverserData.__init__()¶
This constructor creates a
CullTraverserDataobject that reflects the next node down in the traversal.This constructor creates a
CullTraverserDataobject that reflects the next node down in the traversal.
- CullTraverserData.apply_cull_planes()¶
Applies the cull planes. Returns true if the node should still be rendered, false if it should be culled.
- CullTraverserData.apply_transform()¶
Applies the indicated transform changes onto the current data.
- CullTraverserData.apply_transform_and_state()¶
Applies the transform and state from the current node onto the current data. This also evaluates billboards, etc.
- CullTraverserData.get_internal_transform()¶
Returns the internal transform: the modelview transform in the GSG’s internal coordinate system.
- CullTraverserData.get_modelview_transform()¶
Returns the modelview transform: the relative transform from the camera to the model.
- CullTraverserData.get_net_transform()¶
Returns the net transform: the relative transform from root of the scene graph to the current node.
- CullTraverserData.is_in_view()¶
Returns intersection flags if the current node may be within the view frustum, 0 otherwise.
- CullTraverserData.is_this_node_hidden()¶
Returns true if this particular node is hidden, even though we might be traversing past this node to find a child node that has had show_through() called for it. If this returns true, the node should not be rendered.
- CullTraverserData.node()¶
Returns the node traversed to so far.