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

#include <ripplesimulation.hpp>

Collaboration diagram for MWRender::RippleSimulation:

Public Member Functions

 RippleSimulation (osg::Group *parent, Resource::ResourceSystem *resourceSystem, const Fallback::Map *fallback)
 
 ~RippleSimulation ()
 
void update (float dt)
 
void addEmitter (const MWWorld::ConstPtr &ptr, float scale=1.f, float force=1.f)
 adds an emitter, position will be tracked automatically More...
 
void removeEmitter (const MWWorld::ConstPtr &ptr)
 
void updateEmitterPtr (const MWWorld::ConstPtr &old, const MWWorld::ConstPtr &ptr)
 
void removeCell (const MWWorld::CellStore *store)
 
void emitRipple (const osg::Vec3f &pos)
 
void setWaterHeight (float height)
 Change the height of the water surface, thus moving all ripples with it. More...
 
void clear ()
 Remove all active ripples. More...
 

Private Attributes

osg::ref_ptr< osg::Group > mParent
 
osg::ref_ptr
< osgParticle::ParticleSystem > 
mParticleSystem
 
osg::ref_ptr
< osg::PositionAttitudeTransform > 
mParticleNode
 
std::vector< EmittermEmitters
 

Constructor & Destructor Documentation

MWRender::RippleSimulation::RippleSimulation ( osg::Group *  parent,
Resource::ResourceSystem resourceSystem,
const Fallback::Map fallback 
)

Here is the call graph for this function:

MWRender::RippleSimulation::~RippleSimulation ( )

Member Function Documentation

void MWRender::RippleSimulation::addEmitter ( const MWWorld::ConstPtr ptr,
float  scale = 1.f,
float  force = 1.f 
)

adds an emitter, position will be tracked automatically

void MWRender::RippleSimulation::clear ( )

Remove all active ripples.

void MWRender::RippleSimulation::emitRipple ( const osg::Vec3f &  pos)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::RippleSimulation::removeCell ( const MWWorld::CellStore store)

Here is the call graph for this function:

void MWRender::RippleSimulation::removeEmitter ( const MWWorld::ConstPtr ptr)
void MWRender::RippleSimulation::setWaterHeight ( float  height)

Change the height of the water surface, thus moving all ripples with it.

void MWRender::RippleSimulation::update ( float  dt)
Parameters
dtTime since the last frame

Here is the call graph for this function:

void MWRender::RippleSimulation::updateEmitterPtr ( const MWWorld::ConstPtr old,
const MWWorld::ConstPtr ptr 
)

Member Data Documentation

std::vector<Emitter> MWRender::RippleSimulation::mEmitters
private
osg::ref_ptr<osg::Group> MWRender::RippleSimulation::mParent
private
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::RippleSimulation::mParticleNode
private
osg::ref_ptr<osgParticle::ParticleSystem> MWRender::RippleSimulation::mParticleSystem
private

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