gz/rendering/ParticleEmitter.hh
STL class.
virtual bool Emitting() const =0
Is the particle emitter enabled?
virtual void SetParticleSize(const ignition::math::Vector3d &_size)=0
Set the particle dimensions (width, height, depth). Default value is {1, 1, 1}.
virtual ignition::math::Vector3d EmitterSize() const =0
Get the size of the emitter where the particles are sampled.
virtual ignition::math::Color ColorEnd() const =0
Get the end color of the particles.
virtual void SetType(const EmitterType _type)=0
Set the emitter type. Default value is EM_POINT.
virtual void SetColorRangeImage(const std::string &_image)=0
Set the path to the color image used as an affector. This affector modifies the color of particles in...
virtual double Duration() const =0
Get the number of seconds the emitter is active. A value of 0 means infinite duration.
virtual void SetParticleScatterRatio(float _ratio)=0
Set the particle scatter ratio.
virtual double Lifetime() const =0
Get the number of seconds each particle will ’live’ for before being destroyed.
virtual double MinVelocity() const =0
Get the minimum velocity each particle is emitted (m/s).
virtual std::string ColorRangeImage() const =0
Get the path to the color image used as an affector.
virtual void SetEmitting(bool _enable)=0
This is used to turn on or off particle emission. Default value is false.
virtual float ParticleScatterRatio() const =0
Get the particle scatter ratio.
virtual ~ParticleEmitter()
Destructor.
Definition: gz/rendering/ParticleEmitter.hh:62
virtual void SetLifetime(double _lifetime)=0
Set the number of seconds each particle will ’live’ for before being destroyed. Default value is 5.
@ EM_CYLINDER
Cylinder emitter.
Definition: gz/rendering/ParticleEmitter.hh:45
@ EM_NUM_EMITTERS
Total number of emitters (keep always at the end).
Definition: gz/rendering/ParticleEmitter.hh:51
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: gz/rendering/Visual.hh:33
virtual void SetDuration(double _duration)=0
Set the number of seconds the emitter is active. A value of 0 means infinite duration....
virtual void SetColorRange(const ignition::math::Color &_colorStart, const ignition::math::Color &_colorEnd)=0
Sets a color for all particle emitted. The actual color will be interpolated between these two colors...
virtual MaterialPtr Material() const =0
Get the material which all particles in the emitter will use.
virtual void SetEmitterSize(const ignition::math::Vector3d &_size)=0
Set the size of the emitter where the particles are sampled. Default value is (1, 1,...
virtual void SetVelocityRange(double _minVelocity, double _maxVelocity)=0
Set a velocity range and each particle is emitted with a random velocity within this range (m/s)....
virtual double Rate() const =0
Get how many particles per second should be emitted.
@ EM_ELLIPSOID
Ellipsoid emitter.
Definition: gz/rendering/ParticleEmitter.hh:48
virtual void SetScaleRate(double _scaleRate)=0
Set the amount by which to scale the particles in both x and y direction per second.
virtual void SetMaterial(const MaterialPtr &_material)=0
Sets the material which all particles in the emitter will use.
Class to manage a particle emitter.
Definition: gz/rendering/ParticleEmitter.hh:58
virtual double MaxVelocity() const =0
Get the maximum velocity each particle is emitted (m/s).
virtual ignition::math::Vector3d ParticleSize() const =0
Get the particle dimensions (width, height, depth).
virtual ignition::math::Color ColorStart() const =0
Get the starting color of the particles.
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
EmitterType
Enum for emitter types.
Definition: gz/rendering/ParticleEmitter.hh:36
virtual void SetRate(double _rate)=0
Set how many particles per second should be emitted. Default value is 10.
virtual double ScaleRate() const =0
Get the amount by which to scale the particles in both x and y direction per second....