VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtTextureVisitor Class Reference

DtTextureVisitor walks the scene graph and collects the names of all textures found on nodes and drawables. More...

Inheritance diagram for makVrv::DtTextureVisitor:
Inheritance graph
[legend]

Public Types

typedef boost::unordered_map
< int, std::string > 
TextureMap
 typdef a map of textures

Public Member Functions

 DtTextureVisitor ()
 Default CTOR.
virtual ~DtTextureVisitor ()
 Virtual DTOR.
virtual void apply (osg::Node &node)
 The visitor apply method used to traverse the scene-graph.
virtual void apply (osg::Geode &geode)
 The Visitor apply method used to traverse the scene-graph.
virtual const TextureMapfoundTextures () const
 Returns the list of (unique) found textures.

Protected Member Functions

virtual void checkTextures (osg::StateSet &ss, osg::Node &node)
virtual void addTextureKeyToNode (osg::Node &node, int key)

Protected Attributes

TextureMap myFoundTextures
boost::unordered_map
< std::string, int
myFoundTextureNames
int myTextureKey

Detailed Description

DtTextureVisitor walks the scene graph and collects the names of all textures found on nodes and drawables.

Member Typedef Documentation

typedef boost::unordered_map<int, std::string> makVrv::DtTextureVisitor::TextureMap

typdef a map of textures

Constructor & Destructor Documentation

makVrv::DtTextureVisitor::DtTextureVisitor ( )

Default CTOR.

virtual makVrv::DtTextureVisitor::~DtTextureVisitor ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtTextureVisitor::apply ( osg::Node &  node)
virtual

The visitor apply method used to traverse the scene-graph.

Parameters
[in]nodeis the osg::Node being visited.
Note
Called during scene-graph traversal, do not directly call this function.
virtual void makVrv::DtTextureVisitor::apply ( osg::Geode &  geode)
virtual

The Visitor apply method used to traverse the scene-graph.

Parameters
[in]geodeis the osg::Geode being visited.
Note
Called during scene-graph traversal, do not directly call this function.
virtual const TextureMap& makVrv::DtTextureVisitor::foundTextures ( ) const
virtual

Returns the list of (unique) found textures.

virtual void makVrv::DtTextureVisitor::checkTextures ( osg::StateSet &  ss,
osg::Node &  node 
)
protectedvirtual
virtual void makVrv::DtTextureVisitor::addTextureKeyToNode ( osg::Node &  node,
int  key 
)
protectedvirtual

Member Data Documentation

TextureMap makVrv::DtTextureVisitor::myFoundTextures
protected
boost::unordered_map<std::string, int> makVrv::DtTextureVisitor::myFoundTextureNames
protected
int makVrv::DtTextureVisitor::myTextureKey
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)