class OSGPARTICLE_EXPORT osgParticle::ParticleSystemUpdater

A useful node class for updating particle systems automatically.

Inheritance:


Public Methods

[more] ParticleSystemUpdater()
[more] ParticleSystemUpdater(const ParticleSystemUpdater &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
[more] META_Node(osgParticle, ParticleSystemUpdater)
[more]virtual void traverse(osg::NodeVisitor &nv)
[more]inline bool computeBound() const
[more]inline bool addParticleSystem(ParticleSystem* ps)
Add a particle system to the list
[more]inline bool removeParticleSystem(ParticleSystem* ps)
Remove a particle system from the list (by pointer)
[more]inline bool removeParticleSystem(unsigned int pos, unsigned int numParticleSystemsToRemove)
Remove a particle system(s) from the list (by index)
[more]inline bool replaceParticleSystem( ParticleSystem* origPS, ParticleSystem* newPS )
Replace ParticleSystem with another ParticleSystem
[more]inline bool setParticleSystem( unsigned int i, ParticleSystem* ps )
set a particle system by index
[more]inline unsigned int getNumParticleSystems() const
Return the number of particle systems on the list
[more]inline ParticleSystem* getParticleSystem(unsigned int i)
Get a particle system from the list
[more]inline const ParticleSystem* getParticleSystem(unsigned int i) const
Get a particle system from the list
[more]inline bool containsParticleSystem( const ParticleSystem* ps ) const
return true if ParticleSystem is contained within ParticlsSystemUpdater
[more]inline unsigned int getParticleSystemIndex( const ParticleSystem* ps ) const
get index number of ParticleSystem

Protected Methods

[more]virtual ~ParticleSystemUpdater()
[more]ParticleSystemUpdater& operator=(const ParticleSystemUpdater &)
[more]inline virtual bool computeBound() const


Documentation

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 AFTER other nodes like emitters and programs.
o ParticleSystemUpdater()

o ParticleSystemUpdater(const ParticleSystemUpdater &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)

o META_Node(osgParticle, ParticleSystemUpdater)

ovirtual void traverse(osg::NodeVisitor &nv)

ovirtual ~ParticleSystemUpdater()

oParticleSystemUpdater& operator=(const ParticleSystemUpdater &)

oinline virtual bool computeBound() const

oinline bool computeBound() const

oinline bool addParticleSystem(ParticleSystem* ps)
Add a particle system to the list

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

oinline bool removeParticleSystem(unsigned int pos, unsigned int numParticleSystemsToRemove)
Remove a particle system(s) from the list (by index)

oinline bool replaceParticleSystem( ParticleSystem* origPS, ParticleSystem* newPS )
Replace ParticleSystem with another ParticleSystem

oinline bool setParticleSystem( unsigned int i, ParticleSystem* ps )
set a particle system by index

oinline unsigned int getNumParticleSystems() const
Return the number of particle systems on the list

oinline ParticleSystem* getParticleSystem(unsigned int i)
Get a particle system from the list

oinline const ParticleSystem* getParticleSystem(unsigned int i) const
Get a particle system from the list

oinline bool containsParticleSystem( const ParticleSystem* ps ) const
return true if ParticleSystem is contained within ParticlsSystemUpdater

oinline unsigned int getParticleSystemIndex( const ParticleSystem* ps ) const
get index number of ParticleSystem


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.