Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ParticleVelocity Class Reference

#include <ParticleVelocity.h>

Inheritance diagram for ParticleVelocity:

Inheritance graph
[legend]
Collaboration diagram for ParticleVelocity:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MAKE_PARTICLESTUFF_NAME ()
 ParticleVelocity (Particles *ps=NULL, std::string name=std::string("ParticleVelocity"))
 Add paritcle orientation to a system of particles.

virtual void particleAdded (unsigned int i)
 Callback for particle addition.

virtual void particleRemoved (unsigned int i)
 Callback for particle removal.

int qlenpp ()
 # of parameters per particle

void getqpp (double *q, int i)
 Get the per-particle parameters.

void setqpp (double *q, int i)
 Set per-particle parameters.

void qnamepp (char **qn)
 Get the names of the per-particle parameters.


Public Attributes

std::vector< gmVector3 > v
 ParticleVelocity.


Constructor & Destructor Documentation

ParticleVelocity::ParticleVelocity Particles ps = NULL,
std::string  name = std::string("ParticleVelocity")
 

Add paritcle orientation to a system of particles.

Parameters:
ps The owning particle system.
name The name of this object.

Definition at line 15 of file ParticleVelocity.cpp.

References Particles::size(), and v.


Member Function Documentation

void ParticleVelocity::getqpp double *  q,
int  i
[virtual]
 

Get the per-particle parameters.

Defaults to no parameters. Second parameter is the particle index

Reimplemented from ParticleStuff.

Definition at line 46 of file ParticleVelocity.cpp.

References v.

ParticleVelocity::MAKE_PARTICLESTUFF_NAME  ) 
 

void ParticleVelocity::particleAdded unsigned int  i  )  [virtual]
 

Callback for particle addition.

Parameters:
i Index of the new particle.

Reimplemented from ParticleStuff.

Definition at line 26 of file ParticleVelocity.cpp.

References v.

void ParticleVelocity::particleRemoved unsigned int  i  )  [virtual]
 

Callback for particle removal.

Parameters:
i Index of particle to be removed.
See also:
Particles::particleRemoved

Reimplemented from ParticleStuff.

Definition at line 36 of file ParticleVelocity.cpp.

References v.

int ParticleVelocity::qlenpp  )  [virtual]
 

# of parameters per particle

Reimplemented from ParticleStuff.

Definition at line 42 of file ParticleVelocity.cpp.

void ParticleVelocity::qnamepp char **  qn  )  [virtual]
 

Get the names of the per-particle parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 58 of file ParticleVelocity.cpp.

void ParticleVelocity::setqpp double *  q,
int  i
[virtual]
 

Set per-particle parameters.

Defaults to no parameters. Second parameter is the particle index

Reimplemented from ParticleStuff.

Definition at line 52 of file ParticleVelocity.cpp.

References v.


Member Data Documentation

std::vector<gmVector3> ParticleVelocity::v
 

ParticleVelocity.

Definition at line 20 of file ParticleVelocity.h.

Referenced by TopologyInterrogator::applyConstraint(), SurfaceAdhesion::applyConstraint(), SingularityAdhesion::applyConstraint(), ParticleBoundingBox::applyConstraint(), SkinMeshShape::applyForce(), SingularityInterrogator::applyForce(), SilhouetteAdhesion::applyForce(), ParticleRepulsion::applyForce(), MeshShape::applyForce(), SilhouetteFate::cleanup(), ParticleFate::cleanup(), getqpp(), VelocityIntegrator::integrate(), Implicit::interpolate(), particleAdded(), particleRemoved(), ParticleVelocity(), SingularityRepulsion::repelSelf(), SingularityRepulsion::repelTarget(), and setqpp().


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:59 2004 for Advanced Surface Library by doxygen 1.3.4