DtTextureVisitor walks the scene graph and collects the names of all textures found on nodes and drawables.
More...
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 TextureMap & | foundTextures () const |
| | Returns the list of (unique) found textures.
|
Detailed Description
DtTextureVisitor walks the scene graph and collects the names of all textures found on nodes and drawables.
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtTextureVisitor::DtTextureVisitor |
( |
| ) |
|
| virtual makVrv::DtTextureVisitor::~DtTextureVisitor |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void makVrv::DtTextureVisitor::apply |
( |
osg::Node & |
node | ) |
|
|
virtual |
The visitor apply method used to traverse the scene-graph.
- Parameters
-
- 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] | geode | is 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:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-6-branch/include/vrvOsg/DtTextureVisitor.h