#include <ParticleBehavior.h>
Inheritance diagram for ParticleBehavior:


Public Member Functions | |
| ParticleBehavior (Particles *ps=NULL, std::string &name=std::string("ParticleBehavior")) | |
| Default constructor Attach to a particle system. | |
| virtual void | addMeTo (Particles *new_ps) |
| Add the behavior to a particle system. | |
| virtual void | removeMe () |
| Removes a behavior from these particles. | |
| virtual void | attachAttributes () |
| Attach all the attributes needed by the behavior. | |
Behavior Application Members | |
| virtual void | applyForce () |
| Applies forces to all particles. | |
| virtual void | applyConstraint () |
| Constrains the current forces on all particles. | |
| virtual void | integrate () |
| Applies the forces to all particles. | |
| virtual void | cleanup () |
| Manages the number of particles. | |
Public Attributes | |
| ParticlePosition * | position |
| ParticleVelocity * | velocity |
| int | renderme |
| Is renderme is true, then this attribute's glyph is rendered. | |
|
||||||||||||
|
Default constructor Attach to a particle system.
Definition at line 14 of file ParticleBehavior.cpp. |
|
|
Add the behavior to a particle system. Clobbers any behavior in new_ps with the same name. Does not update the behaviors particle system pointer. Should use ParticleBehavior::setParticleSystem to integrate a behavior into a particle system. Implements ParticleStuff. Definition at line 22 of file ParticleBehavior.cpp. References attachAttributes(), Particles::behaviors, Particles::findBehavior(), and ParticleStuff::name. |
|
|
Constrains the current forces on all particles.
Reimplemented in MeshShape, ParticleBoundingBox, RBFPropagation, SingularityAdhesion, SurfaceAdhesion, SurfaceDeformation, SurfacePropagation, and TopologyInterrogator. Definition at line 59 of file ParticleBehavior.h. |
|
|
Applies forces to all particles.
Reimplemented in MeshShape, ParticleRepulsion, SilhouetteAdhesion, SingularityAdhesion, SingularityInterrogator, SingularityRepulsion, SkinMeshShape, and TopologyInterrogator. Definition at line 55 of file ParticleBehavior.h. |
|
|
|
Manages the number of particles.
Reimplemented in ClusterMeshInterrogator, CriticalPointInterrogator, MeshShape, ParticleCreation, ParticleFate, ParticleRepulsion, SilhouetteFate, SingularityAdhesion, SkinMeshShape, and TopologyInterrogator. Definition at line 67 of file ParticleBehavior.h. |
|
|
Applies the forces to all particles.
Reimplemented in ParticleRepulsion, RBFPropagation, SurfaceDeformation, SurfacePropagation, and VelocityIntegrator. Definition at line 63 of file ParticleBehavior.h. |
|
|
Removes a behavior from these particles.
Implements ParticleStuff. Definition at line 48 of file ParticleBehavior.cpp. References Particles::behaviors, ParticleStuff::name, and ParticleStuff::ps. |
|
|
|
Is renderme is true, then this attribute's glyph is rendered. Defaults to true. Definition at line 74 of file ParticleBehavior.h. |
|
1.3.4