class OSGPARTICLE_EXPORT osgParticle::ModularEmitter

An emitter class that holds three objects to control the creation of particles.

Inheritance:


Public Methods

[more] ModularEmitter()
[more] ModularEmitter(const ModularEmitter &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
[more] META_Node(osgParticle, ModularEmitter)
[more]inline Counter* getCounter()
Get the counter object
[more]inline const Counter* getCounter() const
Get the const Counter object
[more]inline void setCounter(Counter* c)
Set the Counter object
[more]inline Placer* getPlacer()
Get the Placer object
[more]inline const Placer* getPlacer() const
Get the const Placer object.
[more]inline void setPlacer(Placer* p)
Set the Placer object
[more]inline Shooter* getShooter()
Get the Shooter object
[more]inline const Shooter* getShooter() const
Get the const Shooter object
[more]inline void setShooter(Shooter* s)
Set the Shooter object

Protected Methods

[more]virtual ~ModularEmitter()
[more]ModularEmitter& operator=(const ModularEmitter &)
[more]void emit(double dt)


Inherited from Emitter:

Public Methods

ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual bool isSameKindAs(const osg::Object* obj) const
ovirtual void accept(osg::NodeVisitor& nv)
oinline const Particle& getParticleTemplate() const
oinline void setParticleTemplate(const Particle &p)
oinline bool getUseDefaultTemplate() const
oinline void setUseDefaultTemplate(bool v)
oinline void process(double dt)


Inherited from ParticleProcessor:

Public Methods

oinline ReferenceFrame getReferenceFrame() const
ovoid traverse(osg::NodeVisitor &nv)
oinline ParticleProcessor::ReferenceFrame getReferenceFrame() const
oinline void setReferenceFrame(ReferenceFrame rf)
oinline bool isEnabled() const
oinline void setEnabled(bool v)
oinline ParticleSystem* getParticleSystem()
oinline const ParticleSystem* getParticleSystem() const
oinline void setParticleSystem(ParticleSystem* ps)
oinline const bool computeBound() const
oinline const osg::Matrix& getLocalToWorldMatrix()
oinline const osg::Matrix& getWorldToLocalMatrix()
oinline osg::Vec3 transformLocalToWorld(const osg::Vec3 &P)
oinline osg::Vec3 transformWorldToLocal(const osg::Vec3 &P)
oinline osg::Vec3 rotateLocalToWorld(const osg::Vec3 &P)
oinline osg::Vec3 rotateWorldToLocal(const osg::Vec3 &P)

Public Members

oenum ReferenceFrame


Documentation

An emitter class that holds three objects to control the creation of particles. These objects are a counter, a placer and a shooter. The counter controls the number of particles to be emitted at each frame; the placer must initialize the particle's position vector, while the shooter initializes its velocity vector. You can use the predefined counter/placer/shooter classes, or you can create your own.
o ModularEmitter()

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

o META_Node(osgParticle, ModularEmitter)

ovirtual ~ModularEmitter()

oModularEmitter& operator=(const ModularEmitter &)

ovoid emit(double dt)

oinline Counter* getCounter()
Get the counter object

oinline const Counter* getCounter() const
Get the const Counter object

oinline void setCounter(Counter* c)
Set the Counter object

oinline Placer* getPlacer()
Get the Placer object

oinline const Placer* getPlacer() const
Get the const Placer object.

oinline void setPlacer(Placer* p)
Set the Placer object

oinline Shooter* getShooter()
Get the Shooter object

oinline const Shooter* getShooter() const
Get the const Shooter object

oinline void setShooter(Shooter* s)
Set the Shooter object


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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