osgEarth 2.1.1
|
Public Member Functions | |
FindTopMostNodeOfTypeVisitor () | |
void | apply (osg::Node &node) |
Public Attributes | |
T * | _foundNode |
Visitor that locates a node by its type
osgEarth::FindTopMostNodeOfTypeVisitor< T >::FindTopMostNodeOfTypeVisitor | ( | ) | [inline] |
Definition at line 32 of file FindNode.
: osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), _foundNode(0) {}
void osgEarth::FindTopMostNodeOfTypeVisitor< T >::apply | ( | osg::Node & | node | ) | [inline] |
Definition at line 37 of file FindNode.
{ T* result = dynamic_cast<T*>(&node); if (result) { _foundNode = result; } else { traverse(node); } }
T* osgEarth::FindTopMostNodeOfTypeVisitor< T >::_foundNode |