# DataGraphTraverser

from pandac.PandaModules import DataGraphTraverser

Class : DataGraphTraverser
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.

## Inheritance:

DataGraphTraverser:

## Methods of DataGraphTraverser:

collectLeftovers
getCurrentThread
traverse
traverseBelow

collectLeftovers void DataGraphTraverser::collect_leftovers(void); Description: 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 *DataGraphTraverser::get_current_thread(void) const; Filename: dataGraphTraverser.I Created by: drose (11Mar02) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . Description: Returns the currently-executing thread object, as passed to the DataGraphTraverser constructor.

traverse void DataGraphTraverser::traverse(PandaNode *node); Description: Starts the traversal of the data graph at the indicated root node.

traverseBelow void DataGraphTraverser::traverse_below(PandaNode *node, DataNodeTransmit const &output); Description: 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.