VolumeParticleEmitter2.hpp
Go to the documentation of this file.
void SetInitialVelocity(const Vector2D &newInitialVel)
Returns the initial velocity of the particles.
void SetLinearVelocity(const Vector2D &newLinearVel)
Sets the linear velocity of the emitter.
Vector2D GetLinearVelocity() const
Returns the linear velocity of the emitter.
void SetMaxRegion(const BoundingBox2D &newMaxRegion)
Sets the max particle generator region.
std::shared_ptr< VolumeParticleEmitter2 > VolumeParticleEmitter2Ptr
Shared pointer for the VolumeParticleEmitter2 type.
Definition: VolumeParticleEmitter2.hpp:184
size_t GetMaxNumberOfParticles() const
Returns max number of particles to be emitted.
void SetPointGenerator(const PointGenerator2Ptr &newPointsGen)
Sets the point generator.
std::shared_ptr< ParticleSystemData2 > ParticleSystemData2Ptr
Shared pointer type of ParticleSystemData2.
Definition: ParticleSystemData.hpp:281
Definition: Matrix.hpp:27
Vector2D GetInitialVelocity() const
Sets the initial velocity of the particles.
Definition: pybind11Utils.hpp:20
const BoundingBox2D & GetMaxRegion() const
Returns max particle generator region.
void SetSpacing(double newSpacing)
Sets the spacing between particles.
Definition: Array-Impl.hpp:19
VolumeParticleEmitter2(ImplicitSurface2Ptr implicitSurface, BoundingBox2D maxRegion, double spacing, const Vector2D &initialVel=Vector2D(), const Vector2D &linearVel=Vector2D(), double angularVel=0.0, size_t maxNumberOfParticles=std::numeric_limits< size_t >::max(), double jitter=0.0, bool isOneShot=true, bool allowOverlapping=false, uint32_t seed=0)
void SetJitter(double newJitter)
Sets jitter amount between 0 and 1.
Front-end to create VolumeParticleEmitter2 objects step by step.
Definition: VolumeParticleEmitter2.hpp:189
2-D volumetric particle emitter.
Definition: VolumeParticleEmitter2.hpp:27
std::shared_ptr< ImplicitSurface2 > ImplicitSurface2Ptr
Shared pointer type for the ImplicitSurface2.
Definition: ImplicitSurface.hpp:67
const ImplicitSurface2Ptr & GetSurface() const
Returns source surface.
double GetSpacing() const
Returns the spacing between particles.
void SetIsOneShot(bool newValue)
Sets the flag to true if particles are emitted just once.
void SetMaxNumberOfParticles(size_t newMaxNumberOfParticles)
Sets the max number of particles to be emitted.
double GetAngularVelocity() const
Returns the angular velocity of the emitter.
static Builder GetBuilder()
Returns builder fox VolumeParticleEmitter2.
bool GetIsOneShot() const
Returns true if particles should be emitted just once.
void SetSurface(const ImplicitSurface2Ptr &newSurface)
Sets the source surface.
std::shared_ptr< PointGenerator2 > PointGenerator2Ptr
Shared pointer for the PointGenerator2 type.
Definition: PointGenerator2.hpp:71
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition: Surface.hpp:144
Abstract base class for 2-D particle emitter.
Definition: ParticleEmitter2.hpp:21
void SetAllowOverlapping(bool newValue)
Sets the flag to true if particles can overlap each other.
bool GetAllowOverlapping() const
Returns true if particles can be overlapped.
void SetAngularVelocity(double newAngularVel)
Sets the linear velocity of the emitter.