![]() |
VR-Forces Developer's Guide
|
Apply the same visitor to multiple models and it will merge all duplicate textures that refer to the same image file.

Public Types | |
| typedef DtOsgReferencedCollection < DtTextureCollection > | TextureMap |
Public Member Functions | |
| DtMergeDuplicateTextureVisitor (TextureMap &textureMap, const std::string &parentFilePath, bool replaceTexturesWithLoadOnDemandImages, bool compressTextures, bool followProxyNodes) | |
| virtual void | apply (osg::Geode &geode) |
| virtual void | apply (osg::Node &node) |
| virtual void | apply (osg::StateSet &stateset) |
| virtual void | apply (osg::ProxyNode &node) |
| void | clearTextures () |
Protected Member Functions | |
| osg::ref_ptr< osg::Texture > | findDuplicateTexture (osg::Texture *texture) |
Protected Attributes | |
| std::string | myFilePath |
| TextureMap & | myTextureCollection |
| bool | myUnloadImageDataFlag |
| bool | myCompressTextures |
| bool | myProcessProxyNodes |
| int | myTextureReplacementCount |
| typedef DtOsgReferencedCollection<DtTextureCollection> makVrv::DtMergeDuplicateTextureVisitor::TextureMap |
| makVrv::DtMergeDuplicateTextureVisitor::DtMergeDuplicateTextureVisitor | ( | TextureMap & | textureMap, |
| const std::string & | parentFilePath, | ||
| bool | replaceTexturesWithLoadOnDemandImages, | ||
| bool | compressTextures, | ||
| bool | followProxyNodes | ||
| ) |
CTOR.
|
virtual |
Apply to the geod.
|
virtual |
Apply to the node.
|
virtual |
Apply to the state set.
|
virtual |
Apply to the node.
| void makVrv::DtMergeDuplicateTextureVisitor::clearTextures | ( | ) |
Removes all current found textures.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
just used for debugging