SPIN Framework
Public Member Functions

spin::SearchVisitor Class Reference

An OSG NodeVisitor class that allows us to search for a specific node name/type in the scene graph. More...

#include <nodeVisitors.h>

List of all members.

Public Member Functions

virtual void apply (osg::Node &searchNode)
virtual void apply (osg::Group &searchNode)
virtual void apply (osg::Geode &searchNode)
virtual void apply (osg::MatrixTransform &searchNode)
virtual void apply (osg::PositionAttitudeTransform &searchNode)
virtual void apply (osg::Switch &searchNode)
virtual void apply (osg::Sequence &searchNode)
void searchNode (osg::Node *searchFromMe, std::string searchName)
osg::ref_ptr< osg::Group > getGroup ()
osg::ref_ptr
< osg::MatrixTransform > 
getMT ()
osg::ref_ptr< osg::Geode > getGeode ()
osg::ref_ptr
< osg::PositionAttitudeTransform > 
getPAT ()
osg::ref_ptr< osg::Switch > getSwitchNode ()
osg::ref_ptr< osg::Sequence > getSequenceNode ()

Detailed Description

An OSG NodeVisitor class that allows us to search for a specific node name/type in the scene graph.

For example, this is used to find the switch & sequence nodes when loading an OSG model in the ModelNode class, so that we may discover animation features.


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