FindNamedNodeVisitor Class Reference

Finds a node that matches a specific name. More...

#include <FindNodeVisitor.h>

List of all members.

Public Member Functions

 FindNamedNodeVisitor (std::string strName, TraversalMode tm=TRAVERSE_ALL_CHILDREN)
virtual void reset ()
virtual void apply (osg::Node &node)

Public Attributes

osg::Node * pResult

Protected Attributes

const std::string strName


Detailed Description

Finds a node that matches a specific name.

To reuse this visitor, you must reset its traversal mode, and you may clear pResult to NULL.

Definition at line 39 of file FindNodeVisitor.h.


Constructor & Destructor Documentation

FindNamedNodeVisitor::FindNamedNodeVisitor ( std::string  strName,
TraversalMode  tm = TRAVERSE_ALL_CHILDREN 
) [inline]

Definition at line 41 of file FindNodeVisitor.h.


Member Function Documentation

virtual void FindNamedNodeVisitor::apply ( osg::Node &  node  )  [inline, virtual]

Definition at line 44 of file FindNodeVisitor.h.

References pResult, and strName.

virtual void FindNamedNodeVisitor::reset (  )  [inline, virtual]

Definition at line 42 of file FindNodeVisitor.h.

References pResult.


Member Data Documentation

Definition at line 49 of file FindNodeVisitor.h.

Referenced by apply(), FindNamedNode(), and reset().

const std::string FindNamedNodeVisitor::strName [protected]

Definition at line 52 of file FindNodeVisitor.h.

Referenced by apply().


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

Generated on Sun Jan 17 11:39:28 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9