Panda3D
Public Member Functions | List of all members
DataGraphTraverser Class Reference

This object supervises the traversal of the data graph and the moving of data from one DataNode to its children. More...

Public Member Functions

 __init__ (const DataGraphTraverser)
 
 __init__ (Thread current_thread)
 
 collectLeftovers ()
 Pick up any nodes that didn't get completely traversed. More...
 
Thread getCurrentThread ()
 Returns the currently-executing thread object, as passed to the DataGraphTraverser constructor. More...
 
 traverse (PandaNode node)
 Starts the traversal of the data graph at the indicated root node. More...
 
 traverseBelow (PandaNode node, const DataNodeTransmit output)
 Continues the traversal to all the children of the indicated node, passing in the given data, without actually calling transmit_data() on the given node. More...
 

Detailed Description

This object supervises the traversal of the data graph and the moving of data from one DataNode to its children.

The data graph is used to manage data from input devices, etc. See the overview of the data graph in dataNode.h.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( const  DataGraphTraverser)

◆ __init__() [2/2]

__init__ ( Thread  current_thread)

◆ collectLeftovers()

collectLeftovers ( )

Pick up any nodes that didn't get completely traversed.

These must be nodes that have multiple parents, with at least one parent completely outside of the data graph.

◆ getCurrentThread()

Thread getCurrentThread ( )

Returns the currently-executing thread object, as passed to the DataGraphTraverser constructor.

◆ traverse()

traverse ( PandaNode  node)

Starts the traversal of the data graph at the indicated root node.

◆ traverseBelow()

traverseBelow ( PandaNode  node,
const DataNodeTransmit  output 
)

Continues the traversal to all the children of the indicated node, passing in the given data, without actually calling transmit_data() on the given node.