VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Public Types

typedef std::unordered_map
< int, std::string > 
TextureMap
 

Public Member Functions

 DtTextureVisitor ()
 
virtual ~DtTextureVisitor ()
 
virtual void apply (osg::Node &node)
 
virtual void apply (osg::Geode &geode)
 
virtual const TextureMapfoundTextures () const
 

Protected Member Functions

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

Protected Attributes

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

Member Typedef Documentation

typedef std::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
std::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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)