![]() |
VR-Forces 4.3 Class Documentation
|
Apply the same visitor to multiple models and it will merge all duplicate textures that refer to the same image file. More...

Public Types | |
| typedef boost::unordered_map < std::string, osg::ref_ptr < DtOsgFileCache::TextureCollection > > | TextureMap |
| typedef std::vector< std::pair < std::string, DtOsgFileCache::TextureCollection * > > | TextureList |
Public Member Functions | |
| DtMergeDuplicateTextureVisitor (TextureMap &textureMap, TextureList &textureList, const std::string &parentFilePath, bool replaceTexturesWithLoadOnDemandImages, bool compressTextures, bool followProxyNodes) | |
| CTOR. | |
| virtual void | apply (osg::Geode &geode) |
| Apply to the geod. | |
| virtual void | apply (osg::Node &node) |
| Apply to the node. | |
| virtual void | apply (osg::StateSet &stateset) |
| Apply to the state set. | |
| virtual void | apply (osg::ProxyNode &node) |
| Apply to the node. | |
| void | clearTextures () |
| Removes all current found textures. | |
Protected Member Functions | |
| osg::ref_ptr< osg::Texture > | findDuplicateTexture (osg::Texture &texture) |
| void | processTexture (osg::Texture &texture, const osg::Image *img) |
Protected Attributes | |
| std::string | myFilePath |
| TextureMap & | myTextureMapRef |
| TextureList & | myTextureList |
| bool | myUnloadImageDataFlag |
| bool | myCompressTextures |
| bool | myProcessProxyNodes |
Apply the same visitor to multiple models and it will merge all duplicate textures that refer to the same image file.
| typedef boost::unordered_map<std::string,osg::ref_ptr<DtOsgFileCache::TextureCollection> > makVrv::DtMergeDuplicateTextureVisitor::TextureMap |
| typedef std::vector<std::pair<std::string,DtOsgFileCache::TextureCollection* > > makVrv::DtMergeDuplicateTextureVisitor::TextureList |
| makVrv::DtMergeDuplicateTextureVisitor::DtMergeDuplicateTextureVisitor | ( | TextureMap & | textureMap, |
| TextureList & | textureList, | ||
| 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 |
|
protected |