OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MWRender::EffectManager Class Reference

#include <effectmanager.hpp>

Collaboration diagram for MWRender::EffectManager:

Classes

struct  Effect
 

Public Member Functions

 EffectManager (osg::ref_ptr< osg::Group > parent, Resource::ResourceSystem *resourceSystem)
 
 ~EffectManager ()
 
void addEffect (const std::string &model, const std::string &textureOverride, const osg::Vec3f &worldPosition, float scale, bool isMagicVFX=true)
 Add an effect. When it's finished playing, it will be removed automatically. More...
 
void update (float dt)
 
void clear ()
 Remove all effects. More...
 

Private Types

typedef std::map< osg::ref_ptr
< osg::PositionAttitudeTransform >
, Effect
EffectMap
 

Private Member Functions

 EffectManager (const EffectManager &)
 
void operator= (const EffectManager &)
 

Private Attributes

EffectMap mEffects
 
osg::ref_ptr< osg::Group > mParentNode
 
Resource::ResourceSystemmResourceSystem
 

Member Typedef Documentation

typedef std::map<osg::ref_ptr<osg::PositionAttitudeTransform>, Effect> MWRender::EffectManager::EffectMap
private

Constructor & Destructor Documentation

MWRender::EffectManager::EffectManager ( osg::ref_ptr< osg::Group >  parent,
Resource::ResourceSystem resourceSystem 
)
MWRender::EffectManager::~EffectManager ( )

Here is the call graph for this function:

MWRender::EffectManager::EffectManager ( const EffectManager )
private

Member Function Documentation

void MWRender::EffectManager::addEffect ( const std::string &  model,
const std::string &  textureOverride,
const osg::Vec3f &  worldPosition,
float  scale,
bool  isMagicVFX = true 
)

Add an effect. When it's finished playing, it will be removed automatically.

Here is the call graph for this function:

void MWRender::EffectManager::clear ( )

Remove all effects.

Here is the caller graph for this function:

void MWRender::EffectManager::operator= ( const EffectManager )
private
void MWRender::EffectManager::update ( float  dt)

Member Data Documentation

EffectMap MWRender::EffectManager::mEffects
private
osg::ref_ptr<osg::Group> MWRender::EffectManager::mParentNode
private
Resource::ResourceSystem* MWRender::EffectManager::mResourceSystem
private

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