#include <Solver.h>
Inheritance diagram for ParticleSystems::Solver:
Public Member Functions | |
Solver (Force *f) | |
The Constructor. | |
Solver () | |
The default Constructor. | |
virtual | ~Solver () |
The Destructor. | |
void | addForce (Force *f) |
A public Function. | |
void | removeForce (Force *f) |
A public Function. | |
void | listForces () |
A public Function. | |
virtual void | nextStep (GraphicsLib::Vector *direction)=0 |
An abstract Function. | |
virtual void | nextStep (GraphicsLib::Vector *direction, float *mass)=0 |
An abstract Function. | |
Public Attributes | |
std::vector< Force * > | forces |
A public variable. | |
std::vector< Force * >::iterator | forcesItt |
A public variable. | |
int | duration |
A public variable. |
The Solver Class main functionality is to evolve a Particles direction accoriding to its specified rules. The Solver Class is the Super Class and all the inheriting classes need to implement the abstract methods. A Solver updates the particle movement using the given forces.
Definition at line 31 of file Solver.h.
|
The Constructor. The Constructor which adds the given Force to the forces vector.
Definition at line 12 of file Solver.cpp. References forces. |
|
The default Constructor. The default Constructor Definition at line 16 of file Solver.cpp. |
|
The Destructor. The Destructor Definition at line 19 of file Solver.cpp. |
|
A public Function. Adds a Force to this Solver to affect the Particle
Definition at line 31 of file Solver.cpp. References forces. Referenced by fire(), multiCollision(), and smoke(). |
|
A public Function. Prints all the Forces to stdout. Definition at line 22 of file Solver.cpp. |
|
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.
Implemented in ParticleSystems::StraightSolver. |
|
An abstract Function. Evolves the given direction Vector by applying the Forces assigned to this Solver.
Implemented in ParticleSystems::StraightSolver. Referenced by ParticleSystems::StrikeParticle::update(), ParticleSystems::PointParticle::update(), and ParticleSystems::ImgParticle::update(). |
|
A public Function. Removes a Force from this Solver
Definition at line 37 of file Solver.cpp. |
|
A public variable. The duration of this Solver |
|
A public variable. The Force affecting the Particle movement. Definition at line 97 of file Solver.h. Referenced by addForce(), listForces(), removeForce(), and Solver(). |
|
A public variable. An Itterator for the Forces Definition at line 103 of file Solver.h. Referenced by listForces(), and removeForce(). |