gz/rendering/base/BaseParticleEmitter.hh
BaseParticleEmitter()
Constructor.
Definition: gz/rendering/base/BaseParticleEmitter.hh:206
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)....
Definition: gz/rendering/base/BaseParticleEmitter.hh:365
virtual void Reset()
Reset the particle emitter visual state.
Definition: gz/rendering/base/BaseParticleEmitter.hh:225
virtual void SetType(const EmitterType _type) override
Set the emitter type. Default value is EM_POINT.
Definition: gz/rendering/base/BaseParticleEmitter.hh:244
virtual EmitterType Type() const override
Get the emitter type.
Definition: gz/rendering/base/BaseParticleEmitter.hh:237
virtual void SetLifetime(double _lifetime) override
Set the number of seconds each particle will ’live’ for before being destroyed. Default value is 5.
Definition: gz/rendering/base/BaseParticleEmitter.hh:330
ignition::math::Color colorEnd
The end color of a particle to choose from.
Definition: gz/rendering/base/BaseParticleEmitter.hh:182
STL class.
virtual void SetRate(double _rate) override
Set how many particles per second should be emitted. Default value is 10.
Definition: gz/rendering/base/BaseParticleEmitter.hh:273
double lifetime
Particle lifetime.
Definition: gz/rendering/base/BaseParticleEmitter.hh:166
double scaleRate
The scale rate.
Definition: gz/rendering/base/BaseParticleEmitter.hh:186
virtual float ParticleScatterRatio() const override
Get the particle scatter ratio.
Definition: gz/rendering/base/BaseParticleEmitter.hh:426
virtual MaterialPtr Material() const override
Get the material which all particles in the emitter will use.
Definition: gz/rendering/base/BaseParticleEmitter.hh:337
double minVelocity
The minimum velocity of each particle.
Definition: gz/rendering/base/BaseParticleEmitter.hh:172
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...
Definition: gz/rendering/base/BaseParticleEmitter.hh:388
ignition::math::Vector3d emitterSize
Emitter size.
Definition: gz/rendering/base/BaseParticleEmitter.hh:150
virtual ~BaseParticleEmitter()
Destructor.
Definition: gz/rendering/base/BaseParticleEmitter.hh:212
virtual void SetDuration(double _duration) override
Set the number of seconds the emitter is active. A value of 0 means infinite duration....
Definition: gz/rendering/base/BaseParticleEmitter.hh:287
static const Vector3 One
virtual void SetScaleRate(double _scaleRate) override
Set the amount by which to scale the particles in both x and y direction per second.
Definition: gz/rendering/base/BaseParticleEmitter.hh:405
ignition::math::Vector3d particleSize
Particle size.
Definition: gz/rendering/base/BaseParticleEmitter.hh:163
virtual void SetMaterial(const MaterialPtr &_material) override
Sets the material which all particles in the emitter will use.
Definition: gz/rendering/base/BaseParticleEmitter.hh:344
float particleScatterRatio
The particle scatter ratio. This is used to determine the ratio of particles that will be detected by...
Definition: gz/rendering/base/BaseParticleEmitter.hh:198
virtual void SetParticleScatterRatio(float _ratio) override
Set the particle scatter ratio.
Definition: gz/rendering/base/BaseParticleEmitter.hh:433
virtual ignition::math::Color ColorStart() const override
Get the starting color of the particles.
Definition: gz/rendering/base/BaseParticleEmitter.hh:374
virtual void SetParticleSize(const ignition::math::Vector3d &_size) override
Set the particle dimensions (width, height, depth). Default value is {1, 1, 1}.
Definition: gz/rendering/base/BaseParticleEmitter.hh:315
virtual double ScaleRate() const override
Get the amount by which to scale the particles in both x and y direction per second....
Definition: gz/rendering/base/BaseParticleEmitter.hh:398
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...
Definition: gz/rendering/base/BaseParticleEmitter.hh:419
virtual ignition::math::Vector3d EmitterSize() const override
Get the size of the emitter where the particles are sampled.
Definition: gz/rendering/base/BaseParticleEmitter.hh:251
virtual bool Emitting() const override
Is the particle emitter enabled?
Definition: gz/rendering/base/BaseParticleEmitter.hh:294
A base implementation of the ParticleEmitter class.
Definition: gz/rendering/base/BaseParticleEmitter.hh:37
virtual double Duration() const override
Get the number of seconds the emitter is active. A value of 0 means infinite duration.
Definition: gz/rendering/base/BaseParticleEmitter.hh:280
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,...
Definition: gz/rendering/base/BaseParticleEmitter.hh:258
double maxVelocity
The maximum velocity of each particle.
Definition: gz/rendering/base/BaseParticleEmitter.hh:175
virtual double Lifetime() const override
Get the number of seconds each particle will ’live’ for before being destroyed.
Definition: gz/rendering/base/BaseParticleEmitter.hh:323
virtual std::string ColorRangeImage() const override
Get the path to the color image used as an affector.
Definition: gz/rendering/base/BaseParticleEmitter.hh:412
EmitterType type
Emitter type.
Definition: gz/rendering/base/BaseParticleEmitter.hh:147
virtual double MinVelocity() const override
Get the minimum velocity each particle is emitted (m/s).
Definition: gz/rendering/base/BaseParticleEmitter.hh:351
virtual ignition::math::Color ColorEnd() const override
Get the end color of the particles.
Definition: gz/rendering/base/BaseParticleEmitter.hh:381
double duration
Duration of the emitter.
Definition: gz/rendering/base/BaseParticleEmitter.hh:157
virtual ignition::math::Vector3d ParticleSize() const override
Get the particle dimensions (width, height, depth).
Definition: gz/rendering/base/BaseParticleEmitter.hh:308
Definition: gz/rendering/base/BaseScene.hh:37
virtual void Init() override
Definition: gz/rendering/base/BaseParticleEmitter.hh:218
std::string colorRangeImage
The color image.
Definition: gz/rendering/base/BaseParticleEmitter.hh:189
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseParticleEmitter.hh:231
Class to manage a particle emitter.
Definition: gz/rendering/ParticleEmitter.hh:58
virtual double Rate() const override
Get how many particles per second should be emitted.
Definition: gz/rendering/base/BaseParticleEmitter.hh:266
ignition::math::Color colorStart
The start color of a particle to choose from.
Definition: gz/rendering/base/BaseParticleEmitter.hh:178
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
bool emitting
Whether particle emitter is enabled or not.
Definition: gz/rendering/base/BaseParticleEmitter.hh:160
virtual void SetEmitting(bool _enable) override
This is used to turn on or off particle emission. Default value is false.
Definition: gz/rendering/base/BaseParticleEmitter.hh:301
EmitterType
Enum for emitter types.
Definition: gz/rendering/ParticleEmitter.hh:36
double rate
Rate of emission.
Definition: gz/rendering/base/BaseParticleEmitter.hh:154
MaterialPtr material
Particle material.
Definition: gz/rendering/base/BaseParticleEmitter.hh:169
static const Color White
virtual double MaxVelocity() const override
Get the maximum velocity each particle is emitted (m/s).
Definition: gz/rendering/base/BaseParticleEmitter.hh:358