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

Installs and control emissivity mapping effects. More...

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

Public Member Functions

 DtOsgEmissivityMapController (const DtOsgFileCache &fileCache)
 CTOR.
virtual ~DtOsgEmissivityMapController ()
 DTOR.
virtual std::string getEffectTypeCode () const
 The type code string for this effect.
virtual osg::Texture * installEffectTexture (osg::Texture *baseTexture, int texUnit, osg::StateSet *stateSet, const osgDB::Options *dbOptions, const FilenameMap &possibleFilenames)
 Install the normal map texture + shaders on a state set.
virtual bool generateShaders (int baseUnit, int effectUnit, osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName)
 Generates shaders for a stateset if required by this effect.
- Public Member Functions inherited from makVrv::DtOsgEffectTextureController
 DtOsgEffectTextureController (const DtOsgFileCache &fileCache)
 CTOR.
virtual void findEffectTexture (const std::string &baseTextureName, const osgDB::Options *dbOptions, const FilenameMap &possibleFilenames, const osg::Texture *baseTexture, osg::ref_ptr< osg::Texture > &effectTexture)
 Find the effect texture for this effect, if one exists.
virtual bool isEffectTexture (osg::Texture *tex) const
 \brief True if the provided texture is an effect texture of this object's type.
virtual bool effectTextureInstalled (const std::string &baseTextureName, osg::StateSet *stateSet) const
 True if there's already an effect texture installed on the given stateset that corresponds to the given base texture.
std::string getExtendedFileName (const std::string &baseFileName) const
void getPossibleEffectTextureFileNames (const std::string &baseFileName, std::vector< std::string > &output) const

Static Public Member Functions

static osg::Uniform * createLightRampUniform ()
 Creates a new light ramp uniform you can apply to a higher-up state set in OVERRIDE mode.
static osg::Uniform * getLightRampUniform (osg::StateSet *stateSet)
 Access the uniform that controls how many emissive surfaces are active.
- Static Public Member Functions inherited from makVrv::DtOsgEffectTextureController
static std::string getTextureFilePath (osg::Texture *texture)

Additional Inherited Members

- Public Types inherited from makVrv::DtOsgEffectTextureController
typedef std::map< std::string,
std::string > 
FilenameMap
- Protected Member Functions inherited from makVrv::DtOsgEffectTextureController
virtual ~DtOsgEffectTextureController ()
 DTOR.
void applyDefaultShaderLODRanges (osgEarth::VirtualProgram *vp, const std::string &function) const
- Protected Attributes inherited from makVrv::DtOsgEffectTextureController
std::string myVertSource
std::string myFragSource
float myDefaultMaxRange
const DtOsgFileCachemyFileCache
const std::string myShaderFolderPath
- Static Protected Attributes inherited from makVrv::DtOsgEffectTextureController
static boost::mutex s_controllerMutex

Detailed Description

Installs and control emissivity mapping effects.

Constructor & Destructor Documentation

makVrv::DtOsgEmissivityMapController::DtOsgEmissivityMapController ( const DtOsgFileCache fileCache)

CTOR.

virtual makVrv::DtOsgEmissivityMapController::~DtOsgEmissivityMapController ( )
virtual

DTOR.

Member Function Documentation

static osg::Uniform* makVrv::DtOsgEmissivityMapController::createLightRampUniform ( )
static

Creates a new light ramp uniform you can apply to a higher-up state set in OVERRIDE mode.

float[0..1]. The value specifies the amount of light currently in the scene - so smaller values turn on more lights.

static osg::Uniform* makVrv::DtOsgEmissivityMapController::getLightRampUniform ( osg::StateSet *  stateSet)
static

Access the uniform that controls how many emissive surfaces are active.

float[0..1]

virtual std::string makVrv::DtOsgEmissivityMapController::getEffectTypeCode ( ) const
inlinevirtual

The type code string for this effect.

Implements makVrv::DtOsgEffectTextureController.

virtual osg::Texture* makVrv::DtOsgEmissivityMapController::installEffectTexture ( osg::Texture *  baseTexture,
int  texUnit,
osg::StateSet *  stateSet,
const osgDB::Options *  dbOptions,
const FilenameMap possibleFilenames 
)
virtual

Install the normal map texture + shaders on a state set.

Reimplemented from makVrv::DtOsgEffectTextureController.

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

Generates shaders for a stateset if required by this effect.

Reimplemented from makVrv::DtOsgEffectTextureController.


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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)