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

ParticleSystems::StraightSolver Class Reference

The StraightSolver Class. More...

#include <StraightSolver.h>

Inheritance diagram for ParticleSystems::StraightSolver:

ParticleSystems::Solver List of all members.

Public Member Functions

 StraightSolver (Force *f)
 The Constructor.
 StraightSolver ()
 The default Constructor.
virtual ~StraightSolver ()
 The Destructor.
virtual void nextStep (GraphicsLib::Vector *direction)
 An abstract Function.
virtual void nextStep (GraphicsLib::Vector *direction, float *mass)
 An abstract Function.

Detailed Description

The StraightSolver Class.

The StraightSolver Class is a Subclass of the Solver Superclass. If no Force is added to the StraightSolver it evolves the direction passed in a straight line.

Author:
Hannes Ricklefs

Definition at line 29 of file StraightSolver.h.


Constructor & Destructor Documentation

StraightSolver::StraightSolver Force f  ) 
 

The Constructor.

The Constructor which adds the given Force to the forces vector.

Parameters:
f a pointer to the Force

Definition at line 11 of file StraightSolver.cpp.

StraightSolver::StraightSolver  ) 
 

The default Constructor.

The default Constructor

Definition at line 14 of file StraightSolver.cpp.

StraightSolver::~StraightSolver  )  [virtual]
 

The Destructor.

The Destructor

Definition at line 17 of file StraightSolver.cpp.


Member Function Documentation

void StraightSolver::nextStep GraphicsLib::Vector *  direction,
float *  mass
[virtual]
 

An abstract Function.

Evolves the given direction Vector by applying the Forces assigned to this Solver. This function also takes into consideration the mass passed.

Parameters:
direction a pointer to the direction Vector to change
mass the mass of the Particle

Implements ParticleSystems::Solver.

Definition at line 30 of file StraightSolver.cpp.

void StraightSolver::nextStep GraphicsLib::Vector *  direction  )  [virtual]
 

An abstract Function.

Evolves the given direction Vector by applying the Forces assigned to this Solver.

Parameters:
direction a pointer to the direction Vector to change

Implements ParticleSystems::Solver.

Definition at line 21 of file StraightSolver.cpp.


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