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)


Inherited from ParticleProcessor:

Public Classes

oenum ReferenceFrame

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 void setEndless(bool type)
oinline bool isEndless() const
oinline void setLifeTime(double t)
oinline double getLifeTime() const
oinline void setStartTime(double t)
oinline double getStartTime() const
oinline void setCurrentTime(double t)
oinline double getCurrentTime() const
oinline void setResetTime(double t)
oinline double getResetTime() const
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)
oinline bool isAlive() const


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)

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++.