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

ParticleSystems::Force Class Reference

The Force Class. More...

#include <Force.h>

Inheritance diagram for ParticleSystems::Force:

ParticleSystems::GravityForce ParticleSystems::RandomForce ParticleSystems::UniformForce List of all members.

Public Member Functions

 Force (GraphicsLib::Vector *f, float a)
 The Constructor.
virtual ~Force ()
 The Destructor.
virtual void applyForce (GraphicsLib::Vector *direction)=0
 An abstract Function.
virtual void applyForce (GraphicsLib::Vector *direction, float *mass)=0
 An abstract Function.

Public Attributes

GraphicsLib::Vector * force
 A public Variable.
float attenuation
 A public Variable.

Detailed Description

The Force Class.

The Force Class is the Superclass for all Forces. Forces influence the movement of the Particles in a per Force specific way.

Author:
Hannes Ricklefs

Definition at line 22 of file Force.h.


Constructor & Destructor Documentation

Force::Force GraphicsLib::Vector *  f,
float  a
 

The Constructor.

The Force Constructor takes a Vector that defines the direction on how to influence the Particle accoriding to a given attenuation. If the attenuation is set to 1 the Force will be fully applied

Parameters:
f a pointer to a direction Vector
a the attenuation

Definition at line 11 of file Force.cpp.

References attenuation, and force.

Force::~Force  )  [virtual]
 

The Destructor.

Destructs the Force

Definition at line 16 of file Force.cpp.

References force.


Member Function Documentation

virtual void ParticleSystems::Force::applyForce GraphicsLib::Vector *  direction,
float *  mass
[pure virtual]
 

An abstract Function.

Applies this Force to the given direction Vector taking into consideration a given Mass.

Parameters:
direction The direction Vector to be affected by this Force
mass a pointer to the mass

Implemented in ParticleSystems::GravityForce, ParticleSystems::RandomForce, and ParticleSystems::UniformForce.

virtual void ParticleSystems::Force::applyForce GraphicsLib::Vector *  direction  )  [pure virtual]
 

An abstract Function.

Applies this Force to the given direction Vector.

Parameters:
direction The direction Vector to be affected by this Force

Implemented in ParticleSystems::GravityForce, ParticleSystems::RandomForce, and ParticleSystems::UniformForce.


Member Data Documentation

float ParticleSystems::Force::attenuation
 

A public Variable.

The attenuation of the Force

Definition at line 66 of file Force.h.

Referenced by Force().

GraphicsLib::Vector* ParticleSystems::Force::force
 

A public Variable.

The direction of this Force

Definition at line 60 of file Force.h.

Referenced by Force(), and ~Force().


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