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

ani::Particle Class Reference

#include <Particle.h>

Inheritance diagram for ani::Particle:

ani::Memory List of all members.

Public Methods

 Particle ()
 Particle (const Particle &p)
virtual ~Particle ()
Particle & operator= (const Particle &p)
virtual void copy (const Particle &p)
virtual void computeDerivative (const Particle &currentState, const float &currentTime)
virtual void normalize ()
virtual void multiplyPhase (const Particle &a, float h)
virtual void multiplyPhase (float h)
virtual void addPhase (const Particle &a, const Particle &b)
virtual void addPhase (const Particle &a)
void setPosition (const gmtl::Vec3f &position)
void setVelocity (const gmtl::Vec3f &velocity)
void applyForce (const gmtl::Vec3f &force)
virtual void zeroForce ()
void setMass (const float &kilograms)
void setVolume (gmtl::Vec3f vol)
const gmtl::Vec3f & position () const
gmtl::Vec3f linearVelocity () const
gmtl::Vec3f linearMomentum () const
const gmtl::Vec3f & accumulatedForce () const
const float & mass () const
const gmtl::Vec3f & volume () const

Public Attributes

gmtl::Vec3f mPosition
gmtl::Vec3f mLinearMomentum
gmtl::Vec3f mForceAccumulator
float mMass
float mInvMass
gmtl::Vec3f mVolume
float mDragCoef

Constructor & Destructor Documentation

ani::Particle::Particle   [inline]
 

Definition at line 63 of file Particle.h.

References mDragCoef, mForceAccumulator, mInvMass, mLinearMomentum, mMass, mPosition, and mVolume.

ani::Particle::Particle const Particle &    p [inline]
 

Definition at line 72 of file Particle.h.

References copy().

virtual ani::Particle::~Particle   [inline, virtual]
 

Definition at line 77 of file Particle.h.


Member Function Documentation

Particle& ani::Particle::operator= const Particle &    p [inline]
 

Definition at line 84 of file Particle.h.

References copy().

virtual void ani::Particle::copy const Particle &    p [inline, virtual]
 

Definition at line 92 of file Particle.h.

References mDragCoef, mForceAccumulator, mInvMass, mLinearMomentum, mMass, mPosition, and mVolume.

Referenced by operator=(), and Particle().

virtual void ani::Particle::computeDerivative const Particle &    currentState,
const float &    currentTime
[inline, virtual]
 

Definition at line 119 of file Particle.h.

References linearVelocity(), mForceAccumulator, mLinearMomentum, and mPosition.

virtual void ani::Particle::normalize   [inline, virtual]
 

Definition at line 130 of file Particle.h.

virtual void ani::Particle::multiplyPhase const Particle &    a,
float    h
[inline, virtual]
 

Definition at line 136 of file Particle.h.

References mLinearMomentum, and mPosition.

virtual void ani::Particle::multiplyPhase float    h [inline, virtual]
 

Definition at line 144 of file Particle.h.

References mLinearMomentum, and mPosition.

virtual void ani::Particle::addPhase const Particle &    a,
const Particle &    b
[inline, virtual]
 

Definition at line 152 of file Particle.h.

References mLinearMomentum, and mPosition.

virtual void ani::Particle::addPhase const Particle &    a [inline, virtual]
 

Definition at line 160 of file Particle.h.

References mLinearMomentum, and mPosition.

void ani::Particle::setPosition const gmtl::Vec3f &    position [inline]
 

Definition at line 168 of file Particle.h.

References mPosition, and position().

void ani::Particle::setVelocity const gmtl::Vec3f &    velocity [inline]
 

Definition at line 169 of file Particle.h.

References mLinearMomentum, and mMass.

void ani::Particle::applyForce const gmtl::Vec3f &    force [inline]
 

Definition at line 175 of file Particle.h.

References mForceAccumulator.

virtual void ani::Particle::zeroForce   [inline, virtual]
 

Definition at line 180 of file Particle.h.

References mForceAccumulator.

void ani::Particle::setMass const float &    kilograms [inline]
 

Definition at line 187 of file Particle.h.

References mInvMass, and mMass.

void ani::Particle::setVolume gmtl::Vec3f    vol [inline]
 

Definition at line 195 of file Particle.h.

References mVolume.

const gmtl::Vec3f& ani::Particle::position   const [inline]
 

Definition at line 203 of file Particle.h.

References mPosition.

Referenced by setPosition().

gmtl::Vec3f ani::Particle::linearVelocity   const [inline]
 

Definition at line 206 of file Particle.h.

References mInvMass, and mLinearMomentum.

Referenced by computeDerivative().

gmtl::Vec3f ani::Particle::linearMomentum   const [inline]
 

Definition at line 211 of file Particle.h.

References mLinearMomentum.

const gmtl::Vec3f& ani::Particle::accumulatedForce   const [inline]
 

Definition at line 217 of file Particle.h.

References mForceAccumulator.

const float& ani::Particle::mass   const [inline]
 

Definition at line 218 of file Particle.h.

References mMass.

const gmtl::Vec3f& ani::Particle::volume   const [inline]
 

Definition at line 219 of file Particle.h.

References mVolume.


Member Data Documentation

gmtl::Vec3f ani::Particle::mPosition
 

Definition at line 224 of file Particle.h.

Referenced by addPhase(), computeDerivative(), copy(), multiplyPhase(), Particle(), position(), and setPosition().

gmtl::Vec3f ani::Particle::mLinearMomentum
 

Definition at line 225 of file Particle.h.

Referenced by addPhase(), computeDerivative(), copy(), linearMomentum(), linearVelocity(), multiplyPhase(), Particle(), and setVelocity().

gmtl::Vec3f ani::Particle::mForceAccumulator
 

Definition at line 234 of file Particle.h.

Referenced by accumulatedForce(), applyForce(), computeDerivative(), copy(), Particle(), and zeroForce().

float ani::Particle::mMass
 

Definition at line 237 of file Particle.h.

Referenced by copy(), mass(), Particle(), setMass(), and setVelocity().

float ani::Particle::mInvMass
 

Definition at line 237 of file Particle.h.

Referenced by copy(), linearVelocity(), Particle(), and setMass().

gmtl::Vec3f ani::Particle::mVolume
 

Definition at line 238 of file Particle.h.

Referenced by copy(), Particle(), setVolume(), and volume().

float ani::Particle::mDragCoef
 

Definition at line 241 of file Particle.h.

Referenced by copy(), and Particle().


The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:07 2002 for Animaniac by doxygen1.2.15