![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.

Public Member Functions | |
| DtOsgEffectTextureVisitor (DtDe &de, DtOsgFileCache &fileCache) | |
| DtOsgEffectTextureVisitor (DtDe &de, DtOsgFileCache &, const osgDB::Options *options) | |
| virtual void | setDbOptions (const osgDB::Options *options) |
| virtual | ~DtOsgEffectTextureVisitor () |
| virtual void | reset () |
| virtual unsigned | numEffectTexturesInstalled () const |
| void | apply (osg::Node &node) |
| void | apply (osg::Geode &geode) |
Static Public Member Functions | |
| static const char * | ignoreHint (void) |
Protected Member Functions | |
| void | initialize () |
| void | apply (osg::StateSet *stateSet) |
| virtual bool | isEffectTexture (osg::Texture *tex, const std::string &texName) const |
| 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) |
| virtual bool | installPostfixEffectTexturesFromFileSystem (const DtOsgEffectTextureController *controller, osg::Texture *baseTex, int baseTexUnit, osg::StateSet *stateSet) |
| virtual bool | checkForGlassMaterial (osg::StateSet *stateSet) |
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 |
| 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 |