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

Public Types | |
| typedef std::pair< std::string, std::string > | RegLowFileNames |
Public Member Functions | |
| DtOsgEffectTextureVisitor (DtOsgFileCache &fileCache, const osgDB::Options *options) | |
| 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. | |
| virtual bool | checkAndSetIgnoreHint (osg::Object *obj, bool val) |
| Set the state of the ignore hint for a node Updated to be threadsafe and check the current value and set it in one call. | |
| virtual void | setIgnoreHint (osg::Object *obj, bool val) |
| Set the state of the ignore hint for a node Updated to be threadsafe Use this to mark nodes as ignored for future texture finding traversals. | |
| void | apply (osg::Node &node) |
| void | apply (osg::Geode &geode) |
Static Public Attributes | |
| static const char * | IgnoreHint |
| static boost::mutex | s_visitorMutex |
| static boost::unordered_map < std::string, std::vector < std::pair< std::string, std::string > > > | myDirFileList |
Protected Types | |
| typedef std::vector < osg::ref_ptr < DtOsgEffectTextureController > > | Controllers |
Protected Member Functions | |
| virtual 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 |
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.
| typedef std::pair<std::string, std::string> makVrv::DtOsgEffectTextureVisitor::RegLowFileNames |
|
protected |
| makVrv::DtOsgEffectTextureVisitor::DtOsgEffectTextureVisitor | ( | DtOsgFileCache & | fileCache, |
| const osgDB::Options * | options | ||
| ) |
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.
|
virtual |
Set the state of the ignore hint for a node Updated to be threadsafe and check the current value and set it in one call.
It returns the previous value of the ignore flag and changes it to be val. Use this to mark nodes as ignored for future texture finding traversals
|
virtual |
Set the state of the ignore hint for a node Updated to be threadsafe 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 | ) |
|
protectedvirtual |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |