![]() |
VR-Forces Development_Version Class Documentation
|
A visitor to locate nodes in a scene-graph. More...

Public Member Functions | |
| DOFFinder () | |
| CTOR. | |
| virtual void | apply (osg::Node &node) |
| The method applied to the node being visited. | |
| osgSim::DOFTransform * | takeNextDOF () |
| Extract a reference to one of the saved osgSim::DOFTransform nodes. | |
| int | dofCount () const |
| Gets the current count of stored DOF nodes. | |
Protected Member Functions | |
| virtual | ~DOFFinder () |
| DTOR. | |
Protected Attributes | |
| osg::NodeList | myNodeList |
| DOF nodes found while traversing the graph. | |
A visitor to locate nodes in a scene-graph.
This visitor traverses the scene-graph looking for osgSim::DOFTransform nodes. When it locates a DOF node, the pointer to the DOF for is saved in a list for later use.
| DOFFinder::DOFFinder | ( | ) |
CTOR.
|
protectedvirtual |
DTOR.
Protected destructor prevents direct deletion or creation on stack.
|
virtual |
The method applied to the node being visited.
If the node is an osgSim::DOFTransform, save a reference for later consumption.
| osgSim::DOFTransform* DOFFinder::takeNextDOF | ( | ) |
Extract a reference to one of the saved osgSim::DOFTransform nodes.
This call removes the reference of the node from this object. There is no guarantee to the order that the nodes were store or removed.
| int DOFFinder::dofCount | ( | ) | const |
Gets the current count of stored DOF nodes.
|
protected |
DOF nodes found while traversing the graph.