gz/rendering/ogre2/Ogre2ParticleEmitter.hh
Go to the documentation of this file.
A base implementation of the ParticleEmitter class.
Definition: gz/rendering/base/BaseParticleEmitter.hh:40
Class to manage a particle emitter.
Definition: gz/rendering/ogre2/Ogre2ParticleEmitter.hh:37
virtual void SetEmitterSize(const ignition::math::Vector3d &_size) override
Set the size of the emitter where the particles are sampled. Default value is (1, 1,...
static const uint32_t kParticleVisibilityFlags
Particle system visibility flags.
Definition: gz/rendering/ogre2/Ogre2ParticleEmitter.hh:90
virtual void SetLifetime(double _lifetime) override
Set the number of seconds each particle will ’live’ for before being destroyed. Default value is 5.
virtual void SetType(const EmitterType _type) override
Set the emitter type. Default value is EM_POINT.
virtual void SetColorRangeImage(const std::string &_image) override
Set the path to the color image used as an affector. This affector modifies the color of particles in...
virtual void SetVelocityRange(double _minVelocity, double _maxVelocity) override
Set a velocity range and each particle is emitted with a random velocity within this range (m/s)....
virtual void SetParticleSize(const ignition::math::Vector3d &_size) override
Set the particle dimensions (width, height, depth). Default value is {1, 1, 1}.
virtual void SetDuration(double _duration) override
Set the number of seconds the emitter is active. A value of 0 means infinite duration....
void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
virtual void SetRate(double _rate) override
Set how many particles per second should be emitted. Default value is 10.
virtual void SetColorRange(const ignition::math::Color &_colorStart, const ignition::math::Color &_colorEnd) override
Sets a color for all particle emitted. The actual color will be interpolated between these two colors...
virtual void SetMaterial(const MaterialPtr &_material) override
Sets the material which all particles in the emitter will use.
virtual void SetEmitting(bool _enable) override
This is used to turn on or off particle emission. Default value is false.
virtual void SetScaleRate(double _scaleRate) override
Set the amount by which to scale the particles in both x and y direction per second.
virtual ~Ogre2ParticleEmitter()
Destructor.
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:59
EmitterType
Enum for emitter types.
Definition: gz/rendering/ParticleEmitter.hh:37