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

The effect manager provides a way of creating and sharing effects. More...

Public Member Functions

 DtEffectManager ()
 CTOR.
 ~DtEffectManager ()
 DTOR.
void releaseResources ()
 Release all resources.
DtEffectcreateEffect (const std::string &effectName, DtEffectCreator::CreateParameters *params=0) const
 Attempts to create a new effect using the given effect name.
DtEffectfindSharedEffect (const std::string &effectName, DtEffectCreator::CreateParameters *params=0)
 Attempts to find a shared effect, if the shared effect is not yet created, it will attempt to create the effect.
void registerEffectCreator (const std::string &effectName, DtEffectCreator *creator)
 Register an effect creator.

Protected Types

typedef boost::unordered_map
< std::string, DtEffectCreator * > 
CreatorMap
typedef boost::unordered_map
< std::string, DtEffect * > 
EffectMap

Protected Attributes

CreatorMap myEffectCreators
EffectMap mySharedEffects

Detailed Description

The effect manager provides a way of creating and sharing effects.

Member Typedef Documentation

typedef boost::unordered_map<std::string,DtEffectCreator*> makVrv::DtEffectManager::CreatorMap
protected
typedef boost::unordered_map<std::string,DtEffect*> makVrv::DtEffectManager::EffectMap
protected

Constructor & Destructor Documentation

makVrv::DtEffectManager::DtEffectManager ( )

CTOR.

makVrv::DtEffectManager::~DtEffectManager ( )

DTOR.

Member Function Documentation

void makVrv::DtEffectManager::releaseResources ( )

Release all resources.

DtEffect* makVrv::DtEffectManager::createEffect ( const std::string &  effectName,
DtEffectCreator::CreateParameters params = 0 
) const

Attempts to create a new effect using the given effect name.

The effect object is not shared, and must be deallocated by the owner.

Returns
NULL if no effect creator for the given effect name is registered.
DtEffect* makVrv::DtEffectManager::findSharedEffect ( const std::string &  effectName,
DtEffectCreator::CreateParameters params = 0 
)

Attempts to find a shared effect, if the shared effect is not yet created, it will attempt to create the effect.

The returned effect is shared and should not be deallocated.

Returns
NULL if no effect creator for the given effect name is registered.
void makVrv::DtEffectManager::registerEffectCreator ( const std::string &  effectName,
DtEffectCreator creator 
)

Register an effect creator.

If an effect creator was previously registered with the same name, it is first deleted.

Member Data Documentation

CreatorMap makVrv::DtEffectManager::myEffectCreators
protected
EffectMap makVrv::DtEffectManager::mySharedEffects
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)