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

ParticleSystems::PlanarEmitter Class Reference

The Planar Class. More...

#include <PlanarEmitter.h>

Inheritance diagram for ParticleSystems::PlanarEmitter:

ParticleSystems::Emitter List of all members.

Public Member Functions

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

Public Attributes

GraphicsLib::Vector dimension1
 A public Variable.
GraphicsLib::Vector dimension2
 A public Variable.

Detailed Description

The Planar Class.

The PlanarEmitter is a Subclass of the Emitter Class. It emits Particles randomly from anywhere on the specified Plane.

Author:
Hannes Ricklefs

Definition at line 29 of file PlanarEmitter.h.


Constructor & Destructor Documentation

PlanarEmitter::PlanarEmitter int  SYSID,
Solver s,
PARTICLETYPE  type,
GraphicsLib::Vector  initVel,
GraphicsLib::Colour  initialColor,
GLfloat  pSize,
GraphicsLib::Vector  dim1,
GraphicsLib::Vector  dim2
 

The Constructor.

Constructs a new PlanarEmitter

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
dim1 the first Vector to define the plane
dim2 the second Vector to define the plane

Definition at line 12 of file PlanarEmitter.cpp.

References dimension1, and dimension2.

PlanarEmitter::PlanarEmitter int  SYSID,
Solver s,
PARTICLETYPE  type,
GraphicsLib::Vector  initVel,
GraphicsLib::Colour  initialColor,
GLfloat  pSize,
char *  TexName,
GraphicsLib::Vector  dim1,
GraphicsLib::Vector  dim2
 

The Constructor.

Constructs a new PlanarEmitter

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 the texture
dim1 the first Vector to define the plane
dim2 the second Vector to define the plane

Definition at line 24 of file PlanarEmitter.cpp.

References dimension1, and dimension2.

PlanarEmitter::~PlanarEmitter  ) 
 

The Destructor.

Destructs this PlanarEmitter

Definition at line 37 of file PlanarEmitter.cpp.


Member Function Documentation

Particle * PlanarEmitter::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 40 of file PlanarEmitter.cpp.

References pointOnPlane().

Point3 PlanarEmitter::pointOnPlane  ) 
 

A member Function.

Returns a random Point3 on the Plane

Returns:
Point3 the random Point on the Plane

Definition at line 101 of file PlanarEmitter.cpp.

References dimension1, and dimension2.

Referenced by emittParticles(), and reBirth().

void PlanarEmitter::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 90 of file PlanarEmitter.cpp.

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


Member Data Documentation

GraphicsLib::Vector ParticleSystems::PlanarEmitter::dimension1
 

A public Variable.

The first dimension

Definition at line 103 of file PlanarEmitter.h.

Referenced by PlanarEmitter(), and pointOnPlane().

GraphicsLib::Vector ParticleSystems::PlanarEmitter::dimension2
 

A public Variable.

The second dimension

Definition at line 109 of file PlanarEmitter.h.

Referenced by PlanarEmitter(), and pointOnPlane().


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