21 bool WorkingNodePath::
23 if (_node ==
nullptr) {
26 if (_next ==
nullptr) {
27 return (_start !=
nullptr);
30 nassertr(_node != _next->_node,
false);
42 if (_next ==
nullptr) {
43 Thread *current_thread = Thread::get_current_thread();
45 return _start->get_length(pipeline_stage, current_thread);
58 nassertr(index >= 0,
nullptr);
63 if (_next ==
nullptr) {
73 void WorkingNodePath::
74 output(std::ostream &out)
const {
77 get_node_path().output(out);
85 r_get_node_path()
const {
86 if (_next ==
nullptr) {
87 nassertr(_start !=
nullptr,
nullptr);
91 nassertr(_start ==
nullptr,
nullptr);
92 nassertr(_node !=
nullptr,
nullptr);
95 nassertr(comp !=
nullptr,
nullptr);
100 PandaNode::get_component(comp, _node, pipeline_stage, current_thread);
101 if (result ==
nullptr) {
106 return PandaNode::get_top_component(_node,
true, pipeline_stage, current_thread);
A basic node of the scene graph or data graph.
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 ...
int get_num_nodes() const
Returns the number of nodes in the path from the root to the current node.
get_pipeline_stage
Returns the Pipeline stage number associated with this thread.
get_current_thread
Returns a pointer to the currently-executing Thread object.
get_node_path
Constructs and returns an actual NodePath that represents the same path we have just traversed.
is_valid
Returns true if the WorkingNodePath object appears to be a valid NodePath reference,...
A thread; that is, a lightweight process.
This is one component of a NodePath.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.