VR-Forces 5.0.2 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::DtMergeDuplicateTextureVisitor Class Reference

Apply the same visitor to multiple models and it will merge all duplicate textures that refer to the same image file.

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

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
 
TextureMapmyTextureCollection
 
bool myUnloadImageDataFlag
 
bool myCompressTextures
 
bool myProcessProxyNodes
 
int myTextureReplacementCount
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtMergeDuplicateTextureVisitor::DtMergeDuplicateTextureVisitor ( TextureMap textureMap,
const std::string &  parentFilePath,
bool  replaceTexturesWithLoadOnDemandImages,
bool  compressTextures,
bool  followProxyNodes 
)

CTOR.

Member Function Documentation

virtual void makVrv::DtMergeDuplicateTextureVisitor::apply ( osg::Geode &  geode)
virtual

Apply to the geod.

virtual void makVrv::DtMergeDuplicateTextureVisitor::apply ( osg::Node &  node)
virtual

Apply to the node.

virtual void makVrv::DtMergeDuplicateTextureVisitor::apply ( osg::StateSet &  stateset)
virtual

Apply to the state set.

virtual void makVrv::DtMergeDuplicateTextureVisitor::apply ( osg::ProxyNode &  node)
virtual

Apply to the node.

void makVrv::DtMergeDuplicateTextureVisitor::clearTextures ( )

Removes all current found textures.

osg::ref_ptr<osg::Texture> makVrv::DtMergeDuplicateTextureVisitor::findDuplicateTexture ( osg::Texture *  texture)
protected

Member Data Documentation

std::string makVrv::DtMergeDuplicateTextureVisitor::myFilePath
protected
TextureMap& makVrv::DtMergeDuplicateTextureVisitor::myTextureCollection
protected
bool makVrv::DtMergeDuplicateTextureVisitor::myUnloadImageDataFlag
protected
bool makVrv::DtMergeDuplicateTextureVisitor::myCompressTextures
protected
bool makVrv::DtMergeDuplicateTextureVisitor::myProcessProxyNodes
protected
int makVrv::DtMergeDuplicateTextureVisitor::myTextureReplacementCount
protected

just used for debugging


The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)