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

ParticlePosition Class Reference

#include <ParticlePosition.h>

Inheritance diagram for ParticlePosition:

Inheritance graph
[legend]
Collaboration diagram for ParticlePosition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

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

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

virtual gmVector3 getPosition (unsigned int i)
 this gives a calling convertion for children to get the position of index i

virtual void setPosition (unsigned int i, gmVector3 p)
 this gives a calling convertion for children to set the position of index i

virtual void clear ()
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 > x
 ParticlePosition.


Constructor & Destructor Documentation

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

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 ParticlePosition.cpp.

References Particles::size(), and x.


Member Function Documentation

void ParticlePosition::clear  )  [virtual]
 

Reimplemented from ParticleAttribute.

Reimplemented in ParticleMesh.

Definition at line 54 of file ParticlePosition.cpp.

References x.

gmVector3 ParticlePosition::getPosition unsigned int  i  )  [virtual]
 

this gives a calling convertion for children to get the position of index i

Reimplemented in ParticleMesh.

Definition at line 43 of file ParticlePosition.cpp.

References x.

Referenced by TopologyInterrogator::applyConstraint(), SurfaceDeformation::applyConstraint(), SurfaceAdhesion::applyConstraint(), ParticleBoundingBox::applyConstraint(), SingularityInterrogator::applyForce(), SilhouetteAdhesion::applyForce(), ParticleRepulsion::applyForce(), ParticleShader::applyTransformations(), SingularityAdhesion::cleanup(), SilhouetteFate::cleanup(), ParticleFate::cleanup(), ParticleShaderStroke::draw(), ParticleShaderLink::draw(), ParticleShaderChain::draw(), ParticleShaderDisk::drawShape(), ParticleShaderCurvature::drawShape(), SilhouetteFate::fiftyPercent(), ParticleLocalityGrid::findCell(), ParticleShaderStroke::findChains(), ParticleShaderChain::findChains(), getqpp(), VelocityIntegrator::integrate(), RBF::interpolate(), Implicit::interpolate(), SurfaceAdhesion::particleAdded(), ParticleRendererGL::render(), SingularityRepulsion::repelSelf(), SingularityRepulsion::repelTarget(), and ParFileManager::writePerParticle().

void ParticlePosition::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 63 of file ParticlePosition.cpp.

References getPosition().

ParticlePosition::MAKE_PARTICLESTUFF_NAME  ) 
 

Reimplemented in ParticleMesh.

void ParticlePosition::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 ParticlePosition.cpp.

References x.

void ParticlePosition::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 ParticlePosition.cpp.

References x.

int ParticlePosition::qlenpp  )  [virtual]
 

# of parameters per particle

Reimplemented from ParticleStuff.

Definition at line 59 of file ParticlePosition.cpp.

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

Get the names of the per-particle parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 75 of file ParticlePosition.cpp.

void ParticlePosition::setPosition unsigned int  i,
gmVector3  p
[virtual]
 

this gives a calling convertion for children to set the position of index i

Reimplemented in ParticleMesh.

Definition at line 49 of file ParticlePosition.cpp.

References x.

Referenced by SingularityAdhesion::cleanup(), SilhouetteFate::cleanup(), ParticleFate::cleanup(), ParticleCreation::cleanup(), CriticalPointInterrogator::cleanup(), ClusterMeshInterrogator::cleanup(), VelocityIntegrator::integrate(), RBFInterpolant::interpolate(), and SurfaceDeformation::loadParticles().

void ParticlePosition::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 69 of file ParticlePosition.cpp.

References x.


Member Data Documentation

std::vector<gmVector3> ParticlePosition::x
 

ParticlePosition.

Definition at line 22 of file ParticlePosition.h.

Referenced by RBFPropagation::adaptivity(), SurfacePropagation::applyConstraint(), clear(), getPosition(), RBFInterpolant::interpolate(), particleAdded(), ParticlePosition(), particleRemoved(), setPosition(), setqpp(), SurfacePropagation::speed(), and RBFPropagation::tune().


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