#include <VectorDS.h>
Inheritance diagram for ParticleSystems::VectorDS:

Public Member Functions | |
| VectorDS () | |
| The Constructor. | |
| virtual | ~VectorDS () |
| The Destructor. | |
| virtual void | addParticles (Particle *particle) |
| A virtual Function. | |
| virtual void | killParticles () |
| A virtual Function. | |
| virtual void | evolve () |
| A virtual Function. | |
| virtual bool | positionCheck (GraphicsLib::Point3 pos) |
| A virtual Function. | |
| virtual void | draw () |
| A virtual Function. | |
| virtual int | numParticles () |
| A virtual Function. | |
| virtual bool | hasDead () |
| A virtual Function. | |
| virtual Particle * | getDead () |
| A virtual Function. | |
| virtual void | addCollisionObject (CollisionObject *co) |
| A virtual Function. | |
| virtual void | deleteCollisionObject (CollisionObject *co) |
| A virtual Function. | |
Public Attributes | |
| allP | particles |
| The typdef definition. | |
| dead | deadParticles |
| The typdef definition. | |
| cObjects | collisionObjects |
| The typdef definition. | |
The VectorDS Class extends the DataStructure Class. The VectorDS Class uses the vector container Class to store all the Particles and CollisionObjects.
Definition at line 53 of file VectorDS.h.
|
|
The Constructor. Constructs a new VectorDS Definition at line 12 of file VectorDS.cpp. |
|
|
The Destructor. Destructs a VectorDS Definition at line 15 of file VectorDS.cpp. |
|
|
A virtual Function. Add a new CollisionObject to the VectorDS
Implements ParticleSystems::DataStructure. Definition at line 129 of file VectorDS.cpp. References collisionObjects. |
|
|
A virtual Function. Adds a new Particle.
Implements ParticleSystems::DataStructure. Definition at line 18 of file VectorDS.cpp. References particles. |
|
|
A virtual Function. Deletes the given CollisionObject
Implements ParticleSystems::DataStructure. Definition at line 133 of file VectorDS.cpp. |
|
|
A virtual Function. Draws all the Particle and CollisionObjects within this VectorDS Implements ParticleSystems::DataStructure. Definition at line 71 of file VectorDS.cpp. References collisionObjects, and particles. |
|
|
A virtual Function. Evolves the Particles within the VectorDS Implements ParticleSystems::DataStructure. Definition at line 26 of file VectorDS.cpp. References collisionObjects, deadParticles, and particles. |
|
|
A virtual Function. Returns a pointer to a dead Particle !! Should only be used if hasDead returns True !! Otherwise NULL will be returned.
Implements ParticleSystems::DataStructure. Definition at line 110 of file VectorDS.cpp. References deadParticles. |
|
|
A virtual Function. Returns true if the VectorDS contains any dead Particles
Implements ParticleSystems::DataStructure. Definition at line 106 of file VectorDS.cpp. References deadParticles. |
|
|
A virtual Function. Removes all Particles Implements ParticleSystems::DataStructure. Definition at line 22 of file VectorDS.cpp. References particles. |
|
|
A virtual Function. Return the number of Particles within this VectorDS as an int.
Implements ParticleSystems::DataStructure. Definition at line 102 of file VectorDS.cpp. References particles. |
|
|
A virtual Function. Checks is the given point is colliding with any of the CollisionObjects.
Implements ParticleSystems::DataStructure. Definition at line 67 of file VectorDS.cpp. |
|
|
The typdef definition. Stores all the CollisionObjects Definition at line 159 of file VectorDS.h. Referenced by addCollisionObject(), draw(), and evolve(). |
|
|
The typdef definition. Stores all the dead Particles Definition at line 153 of file VectorDS.h. |
|
|
The typdef definition. Stores all the Particles Definition at line 147 of file VectorDS.h. Referenced by addParticles(), draw(), evolve(), killParticles(), and numParticles(). |
1.4.1