class OSGPARTICLE_EXPORT osgParticle::Emitter

An abstract base class for particle emitters.

Inheritance:


Public Methods

[more] Emitter()
[more] Emitter(const Emitter &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]virtual bool isSameKindAs(const osg::Object* obj) const
[more]virtual void accept(osg::NodeVisitor& nv)
[more]inline const Particle& getParticleTemplate() const
Get the particle template
[more]inline void setParticleTemplate(const Particle &p)
Set the particle template (particle is copied)
[more]inline bool getUseDefaultTemplate() const
Return whether the particle system's default template should be used
[more]inline void setUseDefaultTemplate(bool v)
Set whether the default particle template should be used.
[more]inline void process(double dt)

Protected Methods

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


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 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 abstract base class for particle emitters. Descendant classes must override the emit() method to generate new particles by calling the ParticleSystem::createParticle() method on the particle system associated to the emitter.
o Emitter()

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

ovirtual const char* libraryName() const

ovirtual const char* className() const

ovirtual bool isSameKindAs(const osg::Object* obj) const

ovirtual void accept(osg::NodeVisitor& nv)

ovirtual ~Emitter()

oEmitter& operator=(const Emitter &)

ovirtual void emit(double dt) = 0

oinline const Particle& getParticleTemplate() const
Get the particle template

oinline void setParticleTemplate(const Particle &p)
Set the particle template (particle is copied)

oinline bool getUseDefaultTemplate() const
Return whether the particle system's default template should be used

oinline void setUseDefaultTemplate(bool v)
Set whether the default particle template should be used. When this flag is true, the particle template is ignored, and the particle system's default template is used instead.

oinline void process(double dt)


Direct child classes:
ModularEmitter

Alphabetic index HTML hierarchy of classes or Java



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