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

Installs and control ambient occlusion effects. More...

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

Public Member Functions

 DtOsgAmbientOcclusionMapController (DtOsgFileCache &fileCache, DtOsgShaderManager &shaderMgr)
 CTOR.
virtual ~DtOsgAmbientOcclusionMapController ()
 DTOR.
std::string getEffectTypeCode () const
 The type code string for this effect.
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 (DtOsgFileCache &fileCache, DtOsgShaderManager &shaderMgr)
 CTOR.
virtual osg::Texture * installEffectTexture (osg::Texture *baseTexture, int texUnit, osg::StateSet *stateSet, const osgDB::Options *dbOptions, const FilenameSet &possibleFilenames)
 Install the normal map texture + shaders on a state set.
virtual osg::Texture * findEffectTexture (const std::string &baseTextureName, const osgDB::Options *dbOptions, const FilenameSet &possibleFilenames, osg::Texture *baseTexture)
 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 (osg::Texture *baseTexture, 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

Additional Inherited Members

- Public Types inherited from makVrv::DtOsgEffectTextureController
typedef std::set< std::string > FilenameSet
- Static Public Member Functions inherited from makVrv::DtOsgEffectTextureController
static std::string getTextureFilePath (osg::Texture *texture)
- 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
DtOsgFileCachemyFileCache
DtOsgShaderManagermyShaderMgr
std::string myShaderFolderPath

Detailed Description

Installs and control ambient occlusion effects.

Constructor & Destructor Documentation

makVrv::DtOsgAmbientOcclusionMapController::DtOsgAmbientOcclusionMapController ( DtOsgFileCache fileCache,
DtOsgShaderManager shaderMgr 
)

CTOR.

virtual makVrv::DtOsgAmbientOcclusionMapController::~DtOsgAmbientOcclusionMapController ( )
virtual

DTOR.

Member Function Documentation

std::string makVrv::DtOsgAmbientOcclusionMapController::getEffectTypeCode ( ) const
inlinevirtual

The type code string for this effect.

Implements makVrv::DtOsgEffectTextureController.

bool makVrv::DtOsgAmbientOcclusionMapController::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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)