VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes
makVrv::DtOsgConfigurableEffectController Class Reference

Installs and control configurable mapping effects. More...

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

Public Member Functions

 DtOsgConfigurableEffectController (const DtOsgFileCache &fileCache)
 CTOR.
virtual ~DtOsgConfigurableEffectController ()
 DTOR.
virtual bool installShaders (int baseUnit, int effectUnit, const osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName) const
 install shaders for a stateset if required by this effect.
virtual void findEffectTexture (const std::string &baseTextureName, const osgDB::Options *dbOptions, const DtPossibleFileNamesCache &possibleFilenames, const osg::Texture *baseTexture, osg::ref_ptr< osg::Texture > &effectTexture) const
 Find the effect texture for this effect, if one exists.
virtual bool isEffectTexture (const osg::Texture *tex, const std::string &texName) const
 \brief True if the provided texture is an effect texture of this object's type.
- Public Member Functions inherited from makVrv::DtOsgEffectTextureController
 DtOsgEffectTextureController (const DtOsgFileCache &fileCache, int type, const std::string &effectTypeCode)
 CTOR.
virtual const std::string & effectTypeCode () const
 The type code string for this effect.
virtual int effectTextureType () const
 return the effect texture type
virtual osg::Texture * installEffectTexture (osg::Texture *baseTexture, int baseTexUnit, osg::StateSet *stateSet, const osgDB::Options *dbOptions, const DtPossibleFileNamesCache &possibleFilenames) const
 Install the effect texture from a list of possible effect texture names.

Static Public Member Functions

static bool isConfigurableMapTexture (const std::string &textureName)
static std::vector< std::string > parseSuffix (const std::string &baseTextureName, const std::string &effectTextureName)

Static Protected Member Functions

static std::set< std::string > initChannelIds ()

Static Protected Attributes

static const std::set
< std::string > 
theChannelIds

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtOsgEffectTextureController
virtual ~DtOsgEffectTextureController ()
 DTOR.
virtual osgEarth::VirtualProgram * installVirtualProgram (int baseUnit, int effectUnit, const osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName, const DtVirtualProgramParams &params) const
 installer helper function
virtual void applyDefaultShaderLODRanges (osgEarth::VirtualProgram *vp, const std::string &function) const
- Protected Attributes inherited from makVrv::DtOsgEffectTextureController
const int myEffectTextureType
const std::string myEffectTypeCode
float myDefaultMaxRange
const DtOsgFileCachemyFileCache

Detailed Description

Installs and control configurable mapping effects.

Constructor & Destructor Documentation

makVrv::DtOsgConfigurableEffectController::DtOsgConfigurableEffectController ( const DtOsgFileCache fileCache)

CTOR.

virtual makVrv::DtOsgConfigurableEffectController::~DtOsgConfigurableEffectController ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtOsgConfigurableEffectController::installShaders ( int  baseUnit,
int  effectUnit,
const osg::Texture *  tex,
osg::StateSet *  stateSet,
const std::string &  baseTextureName 
) const
virtual

install shaders for a stateset if required by this effect.

Reimplemented from makVrv::DtOsgEffectTextureController.

virtual void makVrv::DtOsgConfigurableEffectController::findEffectTexture ( const std::string &  baseTextureName,
const osgDB::Options *  dbOptions,
const DtPossibleFileNamesCache possibleFilenames,
const osg::Texture *  baseTexture,
osg::ref_ptr< osg::Texture > &  effectTexture 
) const
virtual

Find the effect texture for this effect, if one exists.

Reimplemented from makVrv::DtOsgEffectTextureController.

virtual bool makVrv::DtOsgConfigurableEffectController::isEffectTexture ( const osg::Texture *  tex,
const std::string &  texName 
) const
virtual

\brief True if the provided texture is an effect texture of this object's type.

static bool makVrv::DtOsgConfigurableEffectController::isConfigurableMapTexture ( const std::string &  textureName)
static
static std::vector<std::string> makVrv::DtOsgConfigurableEffectController::parseSuffix ( const std::string &  baseTextureName,
const std::string &  effectTextureName 
)
static
static std::set<std::string> makVrv::DtOsgConfigurableEffectController::initChannelIds ( )
staticprotected

Member Data Documentation

const std::set<std::string> makVrv::DtOsgConfigurableEffectController::theChannelIds
staticprotected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)