![]() |
VR-Forces 4.8 Class Documentation
|
Visitor that locates effect textures and installs them into the scene graph. More...

Public Member Functions | |
| DtOsgEffectTextureVisitor (DtDe &de, DtOsgFileCache &fileCache) | |
| CTOR. More... | |
| DtOsgEffectTextureVisitor (DtDe &de, DtOsgFileCache &, const osgDB::Options *options) | |
| CTOR. More... | |
| virtual void | setDbOptions (const osgDB::Options *options) |
| Set the database options. More... | |
| virtual | ~DtOsgEffectTextureVisitor () |
| DTOR. More... | |
| virtual void | reset () |
| Resets the visitor to its initial state. More... | |
| virtual unsigned | numEffectTexturesInstalled () const |
| After visiting, call this to see how many effect textures the visitor installed. More... | |
| void | apply (osg::Node &node) |
| void | apply (osg::Geode &geode) |
Static Public Member Functions | |
| static const char * | ignoreHint (void) |
Protected Member Functions | |
| void | initialize () |
| Non-virtual, called in the CTOR. More... | |
| void | apply (osg::StateSet *stateSet) |
| scan a stateset and apply effect textures as necessary. More... | |
| virtual bool | isEffectTexture (osg::Texture *tex, const std::string &texName) const |
| Checks whether a texture is an effect texture. More... | |
| virtual bool | checkIfAlreadyVisited (osg::StateSet *stateSet, osg::ExtendedMaterial *extendedMaterial) |
| virtual void | installEffectTexture (osg::StateSet *stateSet, osg::Texture *baseTexture, int baseUnit, osg::ExtendedMaterial *extendedMaterial) |
| virtual bool | installExtendedEffectTexture (const DtOsgEffectTextureController *controller, osg::StateSet *stateSet, osg::Texture *baseTexture, osg::Texture *effectTexture, int baseUnit, int effectUnit) |
| virtual bool | installExtendedEffectTexture (const DtOsgEffectTextureController *controller, osg::StateSet *stateSet, osg::Texture *baseTexture, int baseUnit, osg::ExtendedMaterial *extendedMaterial) |
| virtual bool | installPostfixEffectTexturesFromTextureLayers (const DtOsgEffectTextureController *controller, osg::Texture *baseTex, int baseTexUnit, osg::StateSet *stateSet) |
| Install the effect texture from the postfix way, it will try find the suffix texture in the texture layers in the stateSet itself. More... | |
| virtual bool | installPostfixEffectTexturesFromFileSystem (const DtOsgEffectTextureController *controller, osg::Texture *baseTex, int baseTexUnit, osg::StateSet *stateSet) |
| Install the effect texture from the postfix way, it will try find the suffix texture in the file system. More... | |
| virtual bool | checkForGlassMaterial (osg::StateSet *stateSet) |
| Checks if the stateSet has any texture contains "GlassMat", if so, we treate this object as glass. More... | |
Protected Attributes | |
| unsigned | myCount |
| osg::ref_ptr< const osgDB::Options > | myDbOptions |
| DtOsgFileCache & | myFileCache |
| DtPossibleFileNamesCache | myPossibleFileNamesCache |
| DtEffectControllerContainer & | myEffectControllerContainer |
| DtDe & | myDe |
Static Protected Attributes | |
| static const char * | theIgnoreHint |
Visitor that locates effect textures and installs them into the scene graph.
Run this prior to running the Shader Generator to pick up normal maps, reflectivity maps, specular maps, ambient occlusion maps, and emissivity maps.
| makVrv::DtOsgEffectTextureVisitor::DtOsgEffectTextureVisitor | ( | DtDe & | de, |
| DtOsgFileCache & | fileCache | ||
| ) |
CTOR.
| makVrv::DtOsgEffectTextureVisitor::DtOsgEffectTextureVisitor | ( | DtDe & | de, |
| DtOsgFileCache & | , | ||
| const osgDB::Options * | options | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the database options.
|
virtual |
Resets the visitor to its initial state.
If you plan to use the same instance more than once, call reset() before each use.
|
virtual |
After visiting, call this to see how many effect textures the visitor installed.
Calling reset() will reset this to zero.
|
static |
| void makVrv::DtOsgEffectTextureVisitor::apply | ( | osg::Node & | node | ) |
| void makVrv::DtOsgEffectTextureVisitor::apply | ( | osg::Geode & | geode | ) |
|
protected |
Non-virtual, called in the CTOR.
|
protected |
scan a stateset and apply effect textures as necessary.
|
protectedvirtual |
Checks whether a texture is an effect texture.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Install the effect texture from the postfix way, it will try find the suffix texture in the texture layers in the stateSet itself.
| controller | The controller we are trying to apply. |
| baseTex | The pointer to the base texture. |
| baseTexUnit | The texture unit of the base texture. |
| stateSet | The osg::StateSet that the base texture resides in. |
|
protectedvirtual |
Install the effect texture from the postfix way, it will try find the suffix texture in the file system.
| controller | The controller we are trying to apply. |
| baseTex | The pointer to the base texture. |
| baseTexUnit | The texture unit of the base texture. |
| stateSet | The osg::StateSet that the base texture resides in. |
|
protectedvirtual |
Checks if the stateSet has any texture contains "GlassMat", if so, we treate this object as glass.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |