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

Circle particle emitter. More...

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

Inheritance diagram for CircleParticleEmitter:
Inheritance graph
Collaboration diagram for CircleParticleEmitter:
Collaboration graph

Public Member Functions

 CircleParticleEmitter (int32_t count, int64_t lifeTime, int64_t lifeTimeRnd, const Vector3 &axis0, const Vector3 &axis1, const Vector3 &center, float radius, float mass, float massRnd, const Vector3 &velocity, const Vector3 &velocityRnd, const Color4 &colorStart, const Color4 &colorEnd)
 Public constructor. More...
 
const Vector3getCenter () const override
 
int32_t getCount () const override
 
const Vector3getVelocity () const
 
const Vector3getVelocityRnd () 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
 
Vector3 axis0Transformed
 
Vector3 axis1Transformed
 
Vector3 centerTransformed
 
float radiusTransformed
 
float mass
 
float massRnd
 
Vector3 velocity
 
Vector3 velocityRnd
 
Color4 colorStart
 
Color4 colorEnd
 

Detailed Description

Circle particle emitter.

Author
Andreas Drewke
Version
$Id$

Definition at line 23 of file CircleParticleEmitter.h.

Constructor & Destructor Documentation

◆ CircleParticleEmitter()

CircleParticleEmitter ( int32_t  count,
int64_t  lifeTime,
int64_t  lifeTimeRnd,
const Vector3 axis0,
const Vector3 axis1,
const Vector3 center,
float  radius,
float  mass,
float  massRnd,
const Vector3 velocity,
const Vector3 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 CircleParticleEmitter.cpp.

Member Function Documentation

◆ emit()

void emit ( Particle particle)
overridevirtual

Emits particles.

Parameters
particleparticle

Implements ParticleEmitter.

Definition at line 42 of file CircleParticleEmitter.cpp.

◆ fromTransformations()

void fromTransformations ( const Transformations transformations)
overridevirtual

Update transformation with given transformations.

Parameters
transformationstransformations

Implements ParticleEmitter.

Definition at line 77 of file CircleParticleEmitter.cpp.

◆ getCenter()

const Vector3 & getCenter ( ) const
inlineoverridevirtual
Returns
center

Implements ParticleEmitter.

Definition at line 64 of file CircleParticleEmitter.h.

◆ getColorEnd()

const Color4 & getColorEnd ( ) const
inlineoverridevirtual
Returns
color end

Implements ParticleEmitter.

Definition at line 88 of file CircleParticleEmitter.h.

◆ getColorStart()

const Color4 & getColorStart ( ) const
inlineoverridevirtual
Returns
color start

Implements ParticleEmitter.

Definition at line 80 of file CircleParticleEmitter.h.

◆ getCount()

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

Implements ParticleEmitter.

Definition at line 68 of file CircleParticleEmitter.h.

◆ getVelocity()

const Vector3 & getVelocity ( ) const
inline

Definition at line 72 of file CircleParticleEmitter.h.

◆ getVelocityRnd()

const Vector3 & getVelocityRnd ( ) const
inline

Definition at line 76 of file CircleParticleEmitter.h.

◆ setColorEnd()

void setColorEnd ( const Color4 colorEnd)
inlineoverridevirtual

Set end color.

Parameters
colorEndcolor end

Implements ParticleEmitter.

Definition at line 92 of file CircleParticleEmitter.h.

◆ setColorStart()

void setColorStart ( const Color4 colorStart)
inlineoverridevirtual

Set start color.

Parameters
colorStartcolor start

Implements ParticleEmitter.

Definition at line 84 of file CircleParticleEmitter.h.

Member Data Documentation

◆ axis0

Vector3 axis0
private

Definition at line 30 of file CircleParticleEmitter.h.

◆ axis0Transformed

Vector3 axis0Transformed
private

Definition at line 34 of file CircleParticleEmitter.h.

◆ axis1

Vector3 axis1
private

Definition at line 31 of file CircleParticleEmitter.h.

◆ axis1Transformed

Vector3 axis1Transformed
private

Definition at line 35 of file CircleParticleEmitter.h.

◆ center

Vector3 center
private

Definition at line 32 of file CircleParticleEmitter.h.

◆ centerTransformed

Vector3 centerTransformed
private

Definition at line 36 of file CircleParticleEmitter.h.

◆ colorEnd

Color4 colorEnd
private

Definition at line 43 of file CircleParticleEmitter.h.

◆ colorStart

Color4 colorStart
private

Definition at line 42 of file CircleParticleEmitter.h.

◆ count

int32_t count
private

Definition at line 27 of file CircleParticleEmitter.h.

◆ lifeTime

int64_t lifeTime
private

Definition at line 28 of file CircleParticleEmitter.h.

◆ lifeTimeRnd

int64_t lifeTimeRnd
private

Definition at line 29 of file CircleParticleEmitter.h.

◆ mass

float mass
private

Definition at line 38 of file CircleParticleEmitter.h.

◆ massRnd

float massRnd
private

Definition at line 39 of file CircleParticleEmitter.h.

◆ radius

float radius
private

Definition at line 33 of file CircleParticleEmitter.h.

◆ radiusTransformed

float radiusTransformed
private

Definition at line 37 of file CircleParticleEmitter.h.

◆ velocity

Vector3 velocity
private

Definition at line 40 of file CircleParticleEmitter.h.

◆ velocityRnd

Vector3 velocityRnd
private

Definition at line 41 of file CircleParticleEmitter.h.


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