IntegratorEuler Class Reference

#include <rimPhysicsIntegratorEuler.h>

Inheritance diagram for IntegratorEuler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 IntegratorEuler ()
 Create a new euler integrator with no damping.
 IntegratorEuler (Real linearVelocityDamping, Real angularVelocityDamping)
 Create a new euler integrator with the specified damping factors.
virtual ~IntegratorEuler ()
 Destroy a euler integrator.
virtual void integrateForces (Real dt)
 Integrate the forces of all objects in an integrator.
virtual void integrateVelocities (Real dt)
 Integrate the velocities of all objects in an integrator.
virtual Real getLinearVelocityDamping () const
 Get the amount of linear damping performed during integration.
virtual void setLinearVelocityDamping (Real newLinearVelocityDamping)
 Set the amount of linear damping performed during integration.
virtual Real getAngularVelocityDamping () const
 Get the amount of angular damping performed during integration.
virtual void setAngularVelocityDamping (Real newAngularVelocityDamping)
 Set the amount of angular damping performed during integration.
virtual bool getIsPerformingDamping () const
 Get whether or not the integerator is currently dampening object motion.
virtual void setIsPerformingDamping (bool newIsPerformingDamping)
 Set whether or not the integerator is currently dampening object motion.
virtual bool addRigidObject (RigidObject *newRigidObject)
 Add a rigid object to the euler integrator.
virtual bool removeRigidObject (RigidObject *newRigidObject)
 Remove a rigid object from the euler integrator.
virtual bool containsRigidObject (RigidObject *newRigidObject) const
 Return whether or not a rigid object is contained in the euler integrator.
virtual void clearRigidObjects ()
 Clear all rigid objects from the euler integrator.
virtual int getNumberOfRigidObjects () const
 Get the number of rigid objects in the euler integrator.
virtual bool addParticle (Particle *newParticle)
 Add a particle to the euler integrator.
virtual bool removeParticle (Particle *newParticle)
 Remove a particle from the euler integrator.
virtual bool containsParticle (Particle *newParticle) const
 Return whether or not a particle is contained in the euler integrator.
virtual void clearParticles ()
 Clear all particles from the euler integrator.
virtual int getNumberOfParticles () const
 Get the number of particles in the euler integrator.

Private Attributes

ArrayList< RigidObject * > rigidObjects
 The rigid objects that the integrator is integrating.
ArrayList< Particle * > particles
 The particles that the integrator is integrating.
Real linearVelocityDamping
 The linear damping factor of the integrator.
Real angularVelocityDamping
 The angular damping factor of the integrator.
bool isPerformingDamping
 Whether or not the integrator is dampening object motion.


Constructor & Destructor Documentation

RIM_PHYSICS_NAMESPACE_START IntegratorEuler::IntegratorEuler (  ) 

Create a new euler integrator with no damping.

IntegratorEuler::IntegratorEuler ( Real  linearVelocityDamping,
Real  angularVelocityDamping 
)

Create a new euler integrator with the specified damping factors.

IntegratorEuler::~IntegratorEuler (  )  [virtual]

Destroy a euler integrator.


Member Function Documentation

void IntegratorEuler::integrateForces ( Real  dt  )  [virtual]

Integrate the forces of all objects in an integrator.

Implements Integrator.

void IntegratorEuler::integrateVelocities ( Real  dt  )  [virtual]

Integrate the velocities of all objects in an integrator.

Implements Integrator.

Real IntegratorEuler::getLinearVelocityDamping (  )  const [virtual]

Get the amount of linear damping performed during integration.

Implements Integrator.

void IntegratorEuler::setLinearVelocityDamping ( Real  newLinearVelocityDamping  )  [virtual]

Set the amount of linear damping performed during integration.

Implements Integrator.

Real IntegratorEuler::getAngularVelocityDamping (  )  const [virtual]

Get the amount of angular damping performed during integration.

Implements Integrator.

void IntegratorEuler::setAngularVelocityDamping ( Real  newAngularVelocityDamping  )  [virtual]

Set the amount of angular damping performed during integration.

Implements Integrator.

bool IntegratorEuler::getIsPerformingDamping (  )  const [virtual]

Get whether or not the integerator is currently dampening object motion.

Implements Integrator.

void IntegratorEuler::setIsPerformingDamping ( bool  newIsPerformingDamping  )  [virtual]

Set whether or not the integerator is currently dampening object motion.

Implements Integrator.

bool IntegratorEuler::addRigidObject ( RigidObject newRigidObject  )  [virtual]

Add a rigid object to the euler integrator.

Implements PhysicsSystem.

bool IntegratorEuler::removeRigidObject ( RigidObject newRigidObject  )  [virtual]

Remove a rigid object from the euler integrator.

Implements PhysicsSystem.

bool IntegratorEuler::containsRigidObject ( RigidObject newRigidObject  )  const [virtual]

Return whether or not a rigid object is contained in the euler integrator.

Implements PhysicsSystem.

void IntegratorEuler::clearRigidObjects (  )  [virtual]

Clear all rigid objects from the euler integrator.

Implements PhysicsSystem.

int IntegratorEuler::getNumberOfRigidObjects (  )  const [virtual]

Get the number of rigid objects in the euler integrator.

Implements PhysicsSystem.

bool IntegratorEuler::addParticle ( Particle newParticle  )  [virtual]

Add a particle to the euler integrator.

Implements PhysicsSystem.

bool IntegratorEuler::removeParticle ( Particle newParticle  )  [virtual]

Remove a particle from the euler integrator.

Implements PhysicsSystem.

bool IntegratorEuler::containsParticle ( Particle newParticle  )  const [virtual]

Return whether or not a particle is contained in the euler integrator.

Implements PhysicsSystem.

void IntegratorEuler::clearParticles (  )  [virtual]

Clear all particles from the euler integrator.

Implements PhysicsSystem.

int IntegratorEuler::getNumberOfParticles (  )  const [virtual]

Get the number of particles in the euler integrator.

Implements PhysicsSystem.


Member Data Documentation

ArrayList<RigidObject*> IntegratorEuler::rigidObjects [private]

The rigid objects that the integrator is integrating.

ArrayList<Particle*> IntegratorEuler::particles [private]

The particles that the integrator is integrating.

Real IntegratorEuler::linearVelocityDamping [private]

The linear damping factor of the integrator.

Real IntegratorEuler::angularVelocityDamping [private]

The angular damping factor of the integrator.

bool IntegratorEuler::isPerformingDamping [private]

Whether or not the integrator is dampening object motion.


The documentation for this class was generated from the following files:
Generated on Tue Aug 26 00:03:20 2008 for Rim Physics by  doxygen 1.5.4