Cyclone | Cyclone: cyclone::ParticleForceRegistry Class Reference |
#include <pfgen.h>
Public Member Functions | |
void | add (Particle *particle, ParticleForceGenerator *fg) |
Registers the given force generator to apply to the given particle. | |
void | remove (Particle *particle, ParticleForceGenerator *fg) |
Removes the given registered pair from the registry. | |
void | clear () |
Clears all registrations from the registry. | |
void | updateForces (real duration) |
Calls all the force generators to update the forces of their corresponding particles. | |
Protected Types | |
typedef std::vector< ParticleForceRegistration > | Registry |
Holds the list of registrations. | |
Protected Attributes | |
Registry | registrations |
Classes | |
struct | ParticleForceRegistration |
Keeps track of one force generator and the particle it applies to. More... |
|
Holds the list of registrations.
|
|
Registers the given force generator to apply to the given particle.
|
|
Clears all registrations from the registry. This will not delete the particles or the force generators themselves, just the records of their connection. |
|
Removes the given registered pair from the registry. If the pair is not registered, this method will have no effect. |
|
Calls all the force generators to update the forces of their corresponding particles.
|
|
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:27 2006). |