Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::PointEmitter Class Reference

The PointEmitter Class. More...

#include <PointEmitter.h>

Inheritance diagram for ParticleSystems::PointEmitter:

ParticleSystems::Emitter List of all members.

Public Member Functions

 PointEmitter (int SYSID, Solver *s, PARTICLETYPE type, GraphicsLib::Vector initVel, GraphicsLib::Colour initialColor, GLfloat pSize, GraphicsLib::Point3 initPos, GLfloat sweep)
 The Constructor.
 PointEmitter (int SYSID, Solver *s, PARTICLETYPE type, GraphicsLib::Vector initVel, GraphicsLib::Colour initialColor, GLfloat pSize, char *TexName, GraphicsLib::Point3 initPos, GLfloat sweep)
 The Constructor.
 ~PointEmitter ()
 The Destructor.
virtual ParticleemittParticles (void)
 An virtual Function.
virtual void reBirth (Particle *p)
 An virtual Function.
GraphicsLib::Vector withSweep ()
 A member Function.

Public Attributes

GraphicsLib::Point3 initPosition
 A public variable.
GLfloat sweep
 A public variable.

Detailed Description

The PointEmitter Class.

The PointEmitter is a sub class of the Emitter. It emits Particles form a specified Point in 3D space. It also has a sweep angle so a spherical shape can be accieved.

Author:
Hannes Ricklefs

Definition at line 32 of file PointEmitter.h.


Constructor & Destructor Documentation

PointEmitter::PointEmitter int  SYSID,
Solver s,
PARTICLETYPE  type,
GraphicsLib::Vector  initVel,
GraphicsLib::Colour  initialColor,
GLfloat  pSize,
GraphicsLib::Point3  initPos,
GLfloat  sweep
 

The Constructor.

Constructs a new Emitter

Parameters:
SYSID the ParticleSystemID
type the ParticleType
initVel the initial velocity for a particle
initalColor the inital Colour of a particle
pSize the inital Size
initPos the position in 3D space
sweep the sweep angle for emition

Definition at line 13 of file PointEmitter.cpp.

References initPosition, and sweep.

PointEmitter::PointEmitter int  SYSID,
Solver s,
PARTICLETYPE  type,
GraphicsLib::Vector  initVel,
GraphicsLib::Colour  initialColor,
GLfloat  pSize,
char *  TexName,
GraphicsLib::Point3  initPos,
GLfloat  sweep
 

The Constructor.

Constructs a new Emitter with a Texture

Parameters:
SYSID the ParticleSystemID
type the ParticleType
initVel the initial velocity for a particle
initalColor the inital Colour of a particle
pSize the inital Size
TexName a pointer to a texture
initPos the inital position in 3D
sweep the emition angle

Definition at line 25 of file PointEmitter.cpp.

References initPosition, and sweep.

PointEmitter::~PointEmitter  ) 
 

The Destructor.

Destructs this Emitter

Definition at line 38 of file PointEmitter.cpp.


Member Function Documentation

Particle * PointEmitter::emittParticles void   )  [virtual]
 

An virtual Function.

Emitts a new Particle according to the values

Returns:
A pointer to the new Particle

Implements ParticleSystems::Emitter.

Definition at line 42 of file PointEmitter.cpp.

References initPosition, and withSweep().

void PointEmitter::reBirth Particle p  )  [virtual]
 

An virtual Function.

Reinitialises the given Particle as it would be newly created

Parameters:
P a pointer to the Particle to be reborne

Implements ParticleSystems::Emitter.

Definition at line 103 of file PointEmitter.cpp.

References ParticleSystems::Particle::colour, ParticleSystems::Particle::dead, ParticleSystems::Particle::faded_colour, initPosition, ParticleSystems::Particle::life, ParticleSystems::Particle::position, ParticleSystems::Particle::size, ParticleSystems::Particle::velocity, and withSweep().

Vector PointEmitter::withSweep  ) 
 

A member Function.

Returns a vector with the emition angle added

Returns:
the vector

Definition at line 90 of file PointEmitter.cpp.

References sweep.

Referenced by emittParticles(), and reBirth().


Member Data Documentation

GraphicsLib::Point3 ParticleSystems::PointEmitter::initPosition
 

A public variable.

The emittion position

Definition at line 108 of file PointEmitter.h.

Referenced by emittParticles(), PointEmitter(), and reBirth().

GLfloat ParticleSystems::PointEmitter::sweep
 

A public variable.

The sweep emition angle

Definition at line 114 of file PointEmitter.h.

Referenced by PointEmitter(), and withSweep().


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:02 2005 for ParticleSystem by  doxygen 1.4.1