15 #include "workingNodePath.h"
33 nassertr(_node != _next->_node,
false);
52 return _start->get_length(pipeline_stage, current_thread);
68 nassertr(index >= 0, NULL);
85 void WorkingNodePath::
86 output(ostream &out)
const {
100 r_get_node_path()
const {
107 nassertr(_node != (
PandaNode *)NULL, NULL);
113 int pipeline_stage = current_thread->get_pipeline_stage();
115 PandaNode::get_component(comp, _node, pipeline_stage, current_thread);
121 return PandaNode::get_top_component(_node,
true, pipeline_stage, current_thread);
void output(ostream &out) const
Writes a sensible description of the NodePath to the indicated output stream.
A basic node of the scene graph or data graph.
bool is_valid() const
Returns true if the WorkingNodePath object appears to be a valid NodePath reference, false otherwise.
int get_num_nodes() const
Returns the number of nodes in the path from the root to the current node.
This is a class designed to support low-overhead traversals of the complete scene graph...
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
NodePath get_node_path() const
Constructs and returns an actual NodePath that represents the same path we have just traversed...
PandaNode * get_node(int index, Thread *current_thread=Thread::get_current_thread()) const
Returns the nth node of the path, where 0 is the referenced (bottom) node and get_num_nodes() - 1 is ...
PandaNode * get_node(int index) const
Returns the nth node of the path, where 0 is the referenced (bottom) node and get_num_nodes() - 1 is ...
A thread; that is, a lightweight process.
int get_pipeline_stage() const
Returns the Pipeline stage number associated with this thread.
This is one component of a NodePath.