Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgParticle::ParticleSystemUpdater Class Reference

A useful node class for updating particle systems automatically. More...

Inheritance diagram for osgParticle::ParticleSystemUpdater:

Inheritance graph
[legend]
List of all members.

Public Methods

 ParticleSystemUpdater ()
 ParticleSystemUpdater (const ParticleSystemUpdater &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgParticle, ParticleSystemUpdater)
int numParticleSystems () const
 Return the number of particle systems on the list.

void addParticleSystem (ParticleSystem *ps)
 Add a particle system to the list.

const ParticleSystemgetParticleSystem (int i) const
 Get a const particle system from the list.

ParticleSystemgetParticleSystem (int i)
 Get a particle system from the list.

int findParticleSystem (ParticleSystem *ps) const
 Find a particle system.

void removeParticleSystem (int i)
 Remove a particle system from the list (by index).

bool removeParticleSystem (ParticleSystem *ps)
 Remove a particle system from the list (by pointer).

virtual void traverse (osg::NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.


Protected Methods

virtual ~ParticleSystemUpdater ()
ParticleSystemUpdater & operator= (const ParticleSystemUpdater &)
virtual const bool computeBound () const
 Compute the bounding sphere around Node's geometry or children.


Detailed Description

A useful node class for updating particle systems automatically.

When a ParticleSystemUpdater is traversed by a cull visitor, it calls the update() method on the specified particle systems. You should place this updater <U>AFTER</U> other nodes like emitters and programs.


Constructor & Destructor Documentation

osgParticle::ParticleSystemUpdater::ParticleSystemUpdater  
 

osgParticle::ParticleSystemUpdater::ParticleSystemUpdater const ParticleSystemUpdater &    copy,
const osg::CopyOp   copyop = osg::CopyOp::SHALLOW_COPY
 

virtual osgParticle::ParticleSystemUpdater::~ParticleSystemUpdater   [inline, protected, virtual]
 


Member Function Documentation

void osgParticle::ParticleSystemUpdater::addParticleSystem ParticleSystem   ps [inline]
 

Add a particle system to the list.

const bool osgParticle::ParticleSystemUpdater::computeBound   const [inline, protected, virtual]
 

Compute the bounding sphere around Node's geometry or children.

This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().

Reimplemented from osg::Node.

int osgParticle::ParticleSystemUpdater::findParticleSystem ParticleSystem   ps const [inline]
 

Find a particle system.

ParticleSystem * osgParticle::ParticleSystemUpdater::getParticleSystem int    i [inline]
 

Get a particle system from the list.

const ParticleSystem * osgParticle::ParticleSystemUpdater::getParticleSystem int    i const [inline]
 

Get a const particle system from the list.

osgParticle::ParticleSystemUpdater::META_Node osgParticle   ,
ParticleSystemUpdater   
 

int osgParticle::ParticleSystemUpdater::numParticleSystems   const [inline]
 

Return the number of particle systems on the list.

ParticleSystemUpdater& osgParticle::ParticleSystemUpdater::operator= const ParticleSystemUpdater &    [inline, protected]
 

bool osgParticle::ParticleSystemUpdater::removeParticleSystem ParticleSystem   ps [inline]
 

Remove a particle system from the list (by pointer).

void osgParticle::ParticleSystemUpdater::removeParticleSystem int    i [inline]
 

Remove a particle system from the list (by index).

virtual void osgParticle::ParticleSystemUpdater::traverse osg::NodeVisitor   nv [virtual]
 

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Node.


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:53 2002 for the Open Scene Graph by doxygen 1.2.16.