VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DOFFinder Class Reference

A visitor to locate nodes in a scene-graph. More...

Inheritance diagram for DOFFinder:
Inheritance graph
[legend]

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.

Detailed Description

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.

Examples

Constructor & Destructor Documentation

DOFFinder::DOFFinder ( )

CTOR.

virtual DOFFinder::~DOFFinder ( )
protectedvirtual

DTOR.

Protected destructor prevents direct deletion or creation on stack.

Member Function Documentation

virtual void DOFFinder::apply ( osg::Node &  node)
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.

Returns
A pointer to a saved node or NULL when no more nodes are left to be removed.
int DOFFinder::dofCount ( ) const

Gets the current count of stored DOF nodes.

Returns
The number of nodes.

Member Data Documentation

osg::NodeList DOFFinder::myNodeList
protected

DOF nodes found while traversing the graph.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)