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

ParticleSystems::PointParticle Class Reference

The PointParticle Class. More...

#include <PointParticle.h>

Inheritance diagram for ParticleSystems::PointParticle:

ParticleSystems::Particle List of all members.

Public Member Functions

 PointParticle (int sysId, Solver *sol)
 The minimal Constructor.
 PointParticle (int sysId, Solver *sol, GraphicsLib::Point3 pos, GraphicsLib::Vector vel, GraphicsLib::Colour c, GraphicsLib::Colour fc, GLfloat size, GLfloat fs, GLfloat maxLife)
 The main Constructor.
virtual ~PointParticle ()
 The Destructor.
virtual void draw (void)
 A virtual Function.
virtual void update (void)
 A virtual Function.
virtual bool isDead (void)
 A virtual Function.

Detailed Description

The PointParticle Class.

The PointParticle Class is a Subclass of the Particle Class. It extends the Particle Class in order to be able to draw a Sphere.

See also:
Particle
Author:
Hannes Ricklefs

Definition at line 32 of file PointParticle.h.


Constructor & Destructor Documentation

PointParticle::PointParticle int  sysId,
Solver sol
 

The minimal Constructor.

This Constructor only takes the ParticleSystem ID and the Solver.

Parameters:
sysId the ParticleSystem ID this PointParticle belongs to
sol a pointer to the Solver

Definition at line 14 of file PointParticle.cpp.

PointParticle::PointParticle int  sysId,
Solver sol,
GraphicsLib::Point3  pos,
GraphicsLib::Vector  vel,
GraphicsLib::Colour  c,
GraphicsLib::Colour  fc,
GLfloat  size,
GLfloat  fs,
GLfloat  maxLife
 

The main Constructor.

This Constructor is the main Constructor for a PointParticle. It sets the most important attributes of a PointParticle.

Parameters:
sysId the ParticleSystem ID this Particle belongs to
sol a pointer to the Solver
pos the initial Position
vel the inital Velocity
c the initial Colour
fc the fade Colour
size the inital Size
fsize the fade Size
maxLife the maximum Lifespan of the Particle

Definition at line 20 of file PointParticle.cpp.

PointParticle::~PointParticle  )  [virtual]
 

The Destructor.

Destructs the PointParticle

Definition at line 66 of file PointParticle.cpp.


Member Function Documentation

void PointParticle::draw void   )  [virtual]
 

A virtual Function.

Draws the PointParticle

Implements ParticleSystems::Particle.

Definition at line 32 of file PointParticle.cpp.

bool PointParticle::isDead void   )  [virtual]
 

A virtual Function.

Returns true if the PointParticle is dead

Returns:
the value if the PointParticle is dead

Implements ParticleSystems::Particle.

Definition at line 62 of file PointParticle.cpp.

void PointParticle::update void   )  [virtual]
 

A virtual Function.

Updates the PointParticles attributes

Implements ParticleSystems::Particle.

Definition at line 43 of file PointParticle.cpp.

References ParticleSystems::Solver::nextStep().


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