![]() |
VR-Forces Developer's Guide
|
For all textures in the model: A texture will be replaced if there exists another texture with the same name in directory replaceDir.

Public Member Functions | |
| DtTextureReplaceVisitor (DtDe &de) | |
| virtual | ~DtTextureReplaceVisitor () |
| virtual void | apply (osg::Node &node) |
| virtual void | apply (osg::Geode &geode) |
| virtual void | setReplaceLocation (const std::string &replaceDir) |
| virtual void | setBaseLocation (const std::string &baseLocation) |
Protected Member Functions | |
| virtual void | replaceTextureIfFoundReplacement (osg::StateSet &ss, osg::Node &node) |
Protected Attributes | |
| std::string | myReplaceLocation |
| std::string | myBaseLocation |
| DtOsgFileCache & | myOsgFileCache |
| DtDe & | myDe |
| makVrv::DtTextureReplaceVisitor::DtTextureReplaceVisitor | ( | DtDe & | de | ) |
Default CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
The visitor apply method used to traverse the scene-graph.
| [in] | node | is the osg::Node being visited. |
|
virtual |
The Visitor apply method used to traverse the scene-graph.
| [in] | geode | is the osg::Geode being visited. |
|
virtual |
A texture will be replaced if there exists another texture with the same name in directory replaceDir.
|
virtual |
base location of the model(node)
|
protectedvirtual |
replace if condition met
|
protected |
|
protected |
|
protected |
|
protected |