gz/rendering/base/BaseParticleEmitter.hh
Go to the documentation of this file.
static const Color White
static const Vector3 One
A base implementation of the ParticleEmitter class.
Definition: gz/rendering/base/BaseParticleEmitter.hh:40
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 MaterialPtr Material() const override
Get the material which all particles in the emitter will use.
Definition: gz/rendering/base/BaseParticleEmitter.hh:337
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
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
virtual void SetType(const EmitterType _type) override
Set the emitter type. Default value is EM_POINT.
Definition: gz/rendering/base/BaseParticleEmitter.hh:244
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 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
virtual void SetParticleScatterRatio(float _ratio) override
Set the particle scatter ratio.
Definition: gz/rendering/base/BaseParticleEmitter.hh:433
virtual void Reset()
Reset the particle emitter visual state.
Definition: gz/rendering/base/BaseParticleEmitter.hh:225
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
virtual double MaxVelocity() const override
Get the maximum velocity each particle is emitted (m/s).
Definition: gz/rendering/base/BaseParticleEmitter.hh:358
virtual void Init() override
Definition: gz/rendering/base/BaseParticleEmitter.hh:218
virtual ignition::math::Color ColorEnd() const override
Get the end color of the particles.
Definition: gz/rendering/base/BaseParticleEmitter.hh:381
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 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
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 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
BaseParticleEmitter()
Constructor.
Definition: gz/rendering/base/BaseParticleEmitter.hh:206
virtual std::string ColorRangeImage() const override
Get the path to the color image used as an affector.
Definition: gz/rendering/base/BaseParticleEmitter.hh:412
virtual ignition::math::Vector3d ParticleSize() const override
Get the particle dimensions (width, height, depth).
Definition: gz/rendering/base/BaseParticleEmitter.hh:308
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 double MinVelocity() const override
Get the minimum velocity each particle is emitted (m/s).
Definition: gz/rendering/base/BaseParticleEmitter.hh:351
virtual ~BaseParticleEmitter()
Destructor.
Definition: gz/rendering/base/BaseParticleEmitter.hh:212
virtual ignition::math::Color ColorStart() const override
Get the starting color of the particles.
Definition: gz/rendering/base/BaseParticleEmitter.hh:374
virtual float ParticleScatterRatio() const override
Get the particle scatter ratio.
Definition: gz/rendering/base/BaseParticleEmitter.hh:426
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
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
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 EmitterType Type() const override
Get the emitter type.
Definition: gz/rendering/base/BaseParticleEmitter.hh:237
virtual bool Emitting() const override
Is the particle emitter enabled?
Definition: gz/rendering/base/BaseParticleEmitter.hh:294
virtual double Rate() const override
Get how many particles per second should be emitted.
Definition: gz/rendering/base/BaseParticleEmitter.hh:266
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
Definition: gz/rendering/base/BaseScene.hh:42
Class to manage a particle emitter.
Definition: gz/rendering/ParticleEmitter.hh:60
EmitterType
Enum for emitter types.
Definition: gz/rendering/ParticleEmitter.hh:37