Public Member Functions |
|
| PandaNodePipelineReader (const PandaNode *object, Thread *current_thread) |
|
| PandaNodePipelineReader (const PandaNodePipelineReader ©) |
| void | check_bounds () const |
| | Ensures that the bounding volume is properly computed on this node.
|
| bool | compare_draw_mask (DrawMask running_draw_mask, DrawMask camera_mask) const |
| | Compares the running draw mask computed during a traversal with this node's net draw masks.
|
| void | compose_draw_mask (DrawMask &running_draw_mask) const |
| | Computes the result of applying this node's draw masks to a running draw mask, as during a traversal.
|
|
| CPT (RenderAttrib) get_off_clip_planes() const |
|
| CPT (BoundingVolume) get_bounds() const |
| int | find_child (PandaNode *node) const |
| | Returns the index of the indicated child node, if it is a child, or -1 if it is not.
|
| int | find_parent (PandaNode *node) const |
| | Returns the index of the indicated parent node, if it is a parent, or -1 if it is not.
|
| int | find_stashed (PandaNode *node) const |
| | Returns the index of the indicated stashed node, if it is a stashed child, or -1 if it is not.
|
| PandaNode * | get_child (int n) const |
| | Returns the nth child node of this node.
|
| int | get_child_sort (int n) const |
| | Returns the sort index of the nth child node of this node (that is, the number that was passed to add_child()).
|
| PandaNode::Children | get_children () const |
| | Returns an object that can be used to walk through the list of children of the node.
|
|
Thread * | get_current_thread () const |
| const RenderEffects * | get_effects () const |
| | Returns the complete RenderEffects that will be applied to this node.
|
| int | get_fancy_bits () const |
| | Returns the union of all of the enum FancyBits values corresponding to the various "fancy" attributes that are set on the node.
|
| int | get_nested_vertices () const |
| | Returns the total number of vertices that will be rendered by this node and all of its descendents.
|
| CollideMask | get_net_collide_mask () const |
| | Returns the union of all into_collide_mask() values set at CollisionNodes at this level and below.
|
| int | get_num_children () const |
| | Returns the number of child nodes this node has.
|
| int | get_num_parents () const |
| | Returns the number of parent nodes this node has.
|
| int | get_num_stashed () const |
| | Returns the number of stashed nodes this node has.
|
|
const PandaNode * | get_object () const |
| PandaNode * | get_parent (int n) const |
| | Returns the nth parent node of this node.
|
| PandaNode::Parents | get_parents () const |
| | Returns an object that can be used to walk through the list of parents of the node, similar to get_children() and get_stashed().
|
| const TransformState * | get_prev_transform () const |
| | Returns the transform that has been set as this node's "previous" position.
|
| PandaNode::Stashed | get_stashed () const |
| | Returns an object that can be used to walk through the list of children of the node.
|
| PandaNode * | get_stashed (int n) const |
| | Returns the nth stashed child of this node.
|
| int | get_stashed_sort (int n) const |
| | Returns the sort index of the nth stashed node of this node (that is, the number that was passed to add_child()).
|
| const RenderState * | get_state () const |
| | Returns the complete RenderState that will be applied to all nodes at this level and below, as set on this node.
|
| string | get_tag (const string &key) const |
| | Retrieves the user-defined value that was previously set on this node for the particular key, if any.
|
| const TransformState * | get_transform () const |
| | Returns the transform that has been set on this particular node.
|
| bool | has_tag (const string &key) const |
| | Returns true if a value has been defined on this node for the particular key (even if that value is the empty string), or false if no value has been set.
|
| bool | is_final () const |
| | Returns the current state of the "final" flag.
|
|
void | operator= (const PandaNodePipelineReader ©) |
| void | release () |
| | Releases the lock on this object.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Encapsulates the data from a PandaNode, pre-fetched for one stage of the pipeline.
Definition at line 786 of file pandaNode.h.
Returns an object that can be used to walk through the list of children of the node.
When you intend to visit multiple children, using this is slightly faster than calling get_child() directly on the PandaNode, since this object avoids reopening the PipelineCycler each time.
This object also protects you from self-modifying loops (e.g. adding or removing children during traversal), since a virtual copy of the children is made ahead of time. The virtual copy is fast--it is a form of copy-on-write, so the list is not actually copied unless it is modified during the traversal.
Definition at line 1840 of file pandaNode.I.
Referenced by CullTraverser::traverse_below().
Returns an object that can be used to walk through the list of children of the node.
When you intend to visit multiple children, using this is slightly faster than calling get_stashed() directly on the PandaNode, since this object avoids reopening the PipelineCycler each time.
This object also protects you from self-modifying loops (e.g. adding or removing children during traversal), since a virtual copy of the children is made ahead of time. The virtual copy is fast--it is a form of copy-on-write, so the list is not actually copied unless it is modified during the traversal.
Definition at line 1862 of file pandaNode.I.