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

Public Member Functions | |
| DtOsgEffectTextureVisitor (DtOsgFileCache &fileCache, DtOsgShaderManager &shaderMgr, const osgDB::Options *options, DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgEffectTextureVisitor () |
| DTOR. | |
| void | reset () |
| Resets the visitor to its initial state. | |
| unsigned | getNumEffectTexturesInstalled () const |
| After visiting, call this to see how many effect textures the visitor installed. | |
| bool | isEffectTexture (osg::Texture *tex) const |
| Checks whether a texture is an effect texture. | |
| void | apply (osg::Node &node) |
| void | apply (osg::Geode &geode) |
Static Public Member Functions | |
| static void | setIgnoreHint (osg::Object *obj, bool val) |
| Set the state of the ignore hint for a node. | |
Static Public Attributes | |
| static const char * | IgnoreHint |
Protected Types | |
| typedef std::vector < osg::ref_ptr < DtOsgEffectTextureController > > | Controllers |
Protected Member Functions | |
| bool | ignore (osg::Object *obj) |
| void | apply (osg::StateSet *stateSet) |
| bool | installEffectTextures (osg::Texture *tex, int texUnit, osg::StateSet *stateSet) |
Protected Attributes | |
| unsigned | myCount |
| Controllers | myControllers |
| osg::ref_ptr< const osgDB::Options > | myDbOptions |
| DtOsgFileCache & | myFileCache |
| DtOsgShaderManager & | myShaderMgr |
| DtDe & | myDe |
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.
|
protected |
| makVrv::DtOsgEffectTextureVisitor::DtOsgEffectTextureVisitor | ( | DtOsgFileCache & | fileCache, |
| DtOsgShaderManager & | shaderMgr, | ||
| const osgDB::Options * | options, | ||
| DtDe & | de | ||
| ) |
CTOR.
|
virtual |
DTOR.
| void makVrv::DtOsgEffectTextureVisitor::reset | ( | ) |
Resets the visitor to its initial state.
If you plan to use the same instance more than once, call reset() before each use.
| unsigned makVrv::DtOsgEffectTextureVisitor::getNumEffectTexturesInstalled | ( | ) | const |
After visiting, call this to see how many effect textures the visitor installed.
Calling reset() will reset this to zero.
| bool makVrv::DtOsgEffectTextureVisitor::isEffectTexture | ( | osg::Texture * | tex | ) | const |
Checks whether a texture is an effect texture.
|
static |
Set the state of the ignore hint for a node.
Use this to mark nodes as ignored for future texture finding traversals
| void makVrv::DtOsgEffectTextureVisitor::apply | ( | osg::Node & | node | ) |
| void makVrv::DtOsgEffectTextureVisitor::apply | ( | osg::Geode & | geode | ) |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |