TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
CircleParticleEmitterPlaneVelocity Class Referencefinal

Circle particle emitter with velocity that lives in plane only. More...

#include <tdme/engine/subsystems/particlesystem/CircleParticleEmitterPlaneVelocity.h>

Inheritance diagram for CircleParticleEmitterPlaneVelocity:
Inheritance graph
Collaboration diagram for CircleParticleEmitterPlaneVelocity:
Collaboration graph

Public Member Functions

 CircleParticleEmitterPlaneVelocity (int32_t count, int64_t lifeTime, int64_t lifeTimeRnd, const Vector3 &axis0, const Vector3 &axis1, const Vector3 &center, float radius, float mass, float massRnd, float velocity, float velocityRnd, const Color4 &colorStart, const Color4 &colorEnd)
 Public constructor. More...
 
const Vector3getCenter () const override
 
int32_t getCount () const override
 
float getVelocity () const
 
float getVelocityRnd () const
 
const Color4getColorStart () const override
 
void setColorStart (const Color4 &colorStart) override
 Set start color. More...
 
const Color4getColorEnd () const override
 
void setColorEnd (const Color4 &colorEnd) override
 Set end color. More...
 
void emit (Particle *particle) override
 Emits particles. More...
 
void fromTransformations (const Transformations &transformations) override
 Update transformation with given transformations. More...
 
- Public Member Functions inherited from ParticleEmitter
virtual const Vector3getCenter () const =0
 
virtual int32_t getCount () const =0
 
virtual const Color4getColorStart () const =0
 
virtual void setColorStart (const Color4 &colorStart)=0
 Set start color. More...
 
virtual const Color4getColorEnd () const =0
 
virtual void setColorEnd (const Color4 &colorEnd)=0
 Set end color. More...
 
virtual void emit (Particle *particle)=0
 Emits particles. More...
 
virtual void fromTransformations (const Transformations &transformations)=0
 Update transformation with given transformations. More...
 
virtual ~ParticleEmitter ()
 Destructor. More...
 

Private Attributes

int32_t count
 
int64_t lifeTime
 
int64_t lifeTimeRnd
 
Vector3 axis0
 
Vector3 axis1
 
Vector3 center
 
float radius
 
float mass
 
float massRnd
 
float velocity
 
float velocityRnd
 
Color4 colorStart
 
Color4 colorEnd
 
Vector3 centerTransformed
 
float radiusTransformed
 
Vector3 axis0Transformed
 
Vector3 axis1Transformed
 

Detailed Description

Circle particle emitter with velocity that lives in plane only.

Author
Andreas Drewke
Version
$Id$

Definition at line 24 of file CircleParticleEmitterPlaneVelocity.h.

Constructor & Destructor Documentation

◆ CircleParticleEmitterPlaneVelocity()

CircleParticleEmitterPlaneVelocity ( int32_t  count,
int64_t  lifeTime,
int64_t  lifeTimeRnd,
const Vector3 axis0,
const Vector3 axis1,
const Vector3 center,
float  radius,
float  mass,
float  massRnd,
float  velocity,
float  velocityRnd,
const Color4 colorStart,
const Color4 colorEnd 
)

Public constructor.

Parameters
countparticles to emit in one second
lifeTimelife time
lifeTimeRndlife time rnd
axis0axis 0
axis1axis 1
centercenter
radiusradius
massmass
massRndmass rnd
velocityvelocity
velocityRndvelocity rnd
colorStartcolor start
colorEndcolor end

Definition at line 21 of file CircleParticleEmitterPlaneVelocity.cpp.

Member Function Documentation

◆ emit()

void emit ( Particle particle)
overridevirtual

Emits particles.

Parameters
particleparticle

Implements ParticleEmitter.

Definition at line 42 of file CircleParticleEmitterPlaneVelocity.cpp.

◆ fromTransformations()

void fromTransformations ( const Transformations transformations)
overridevirtual

Update transformation with given transformations.

Parameters
transformationstransformations

Implements ParticleEmitter.

Definition at line 72 of file CircleParticleEmitterPlaneVelocity.cpp.

◆ getCenter()

const Vector3 & getCenter ( ) const
inlineoverridevirtual
Returns
center

Implements ParticleEmitter.

Definition at line 66 of file CircleParticleEmitterPlaneVelocity.h.

◆ getColorEnd()

const Color4 & getColorEnd ( ) const
inlineoverridevirtual
Returns
color end

Implements ParticleEmitter.

Definition at line 90 of file CircleParticleEmitterPlaneVelocity.h.

◆ getColorStart()

const Color4 & getColorStart ( ) const
inlineoverridevirtual
Returns
color start

Implements ParticleEmitter.

Definition at line 82 of file CircleParticleEmitterPlaneVelocity.h.

◆ getCount()

int32_t getCount ( ) const
inlineoverridevirtual
Returns
number of particles to emit in one second

Implements ParticleEmitter.

Definition at line 70 of file CircleParticleEmitterPlaneVelocity.h.

◆ getVelocity()

float getVelocity ( ) const
inline

Definition at line 74 of file CircleParticleEmitterPlaneVelocity.h.

◆ getVelocityRnd()

float getVelocityRnd ( ) const
inline

Definition at line 78 of file CircleParticleEmitterPlaneVelocity.h.

◆ setColorEnd()

void setColorEnd ( const Color4 colorEnd)
inlineoverridevirtual

Set end color.

Parameters
colorEndcolor end

Implements ParticleEmitter.

Definition at line 94 of file CircleParticleEmitterPlaneVelocity.h.

◆ setColorStart()

void setColorStart ( const Color4 colorStart)
inlineoverridevirtual

Set start color.

Parameters
colorStartcolor start

Implements ParticleEmitter.

Definition at line 86 of file CircleParticleEmitterPlaneVelocity.h.

Member Data Documentation

◆ axis0

Vector3 axis0
private

Definition at line 31 of file CircleParticleEmitterPlaneVelocity.h.

◆ axis0Transformed

Vector3 axis0Transformed
private

Definition at line 43 of file CircleParticleEmitterPlaneVelocity.h.

◆ axis1

Vector3 axis1
private

Definition at line 32 of file CircleParticleEmitterPlaneVelocity.h.

◆ axis1Transformed

Vector3 axis1Transformed
private

Definition at line 44 of file CircleParticleEmitterPlaneVelocity.h.

◆ center

Vector3 center
private

Definition at line 33 of file CircleParticleEmitterPlaneVelocity.h.

◆ centerTransformed

Vector3 centerTransformed
private

Definition at line 41 of file CircleParticleEmitterPlaneVelocity.h.

◆ colorEnd

Color4 colorEnd
private

Definition at line 40 of file CircleParticleEmitterPlaneVelocity.h.

◆ colorStart

Color4 colorStart
private

Definition at line 39 of file CircleParticleEmitterPlaneVelocity.h.

◆ count

int32_t count
private

Definition at line 28 of file CircleParticleEmitterPlaneVelocity.h.

◆ lifeTime

int64_t lifeTime
private

Definition at line 29 of file CircleParticleEmitterPlaneVelocity.h.

◆ lifeTimeRnd

int64_t lifeTimeRnd
private

Definition at line 30 of file CircleParticleEmitterPlaneVelocity.h.

◆ mass

float mass
private

Definition at line 35 of file CircleParticleEmitterPlaneVelocity.h.

◆ massRnd

float massRnd
private

Definition at line 36 of file CircleParticleEmitterPlaneVelocity.h.

◆ radius

float radius
private

Definition at line 34 of file CircleParticleEmitterPlaneVelocity.h.

◆ radiusTransformed

float radiusTransformed
private

Definition at line 42 of file CircleParticleEmitterPlaneVelocity.h.

◆ velocity

float velocity
private

Definition at line 37 of file CircleParticleEmitterPlaneVelocity.h.

◆ velocityRnd

float velocityRnd
private

Definition at line 38 of file CircleParticleEmitterPlaneVelocity.h.


The documentation for this class was generated from the following files: