CollisionWorldSimple Class Reference

#include <rimCollisionWorldSimple.h>

Inheritance diagram for CollisionWorldSimple:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CollisionWorldSimple ()
 Create a new empty simple collision world.
virtual void testForCollisions (Real dt)
 Test for collisions between all objects in the simple collision world.
virtual void testForCollisions (Real dt, CollisionResultSet &resultSet)
 Test for collisions between all objects in the simple collision world.
virtual bool addRigidObject (RigidObject *newRigidObject)
 Add a rigid object to the simple collision world.
virtual bool removeRigidObject (RigidObject *newRigidObject)
 Remove a rigid object from the simple collision world.
virtual bool containsRigidObject (RigidObject *newRigidObject) const
 Get whether or not a rigid object is contained in the simple collision world.
virtual void clearRigidObjects ()
 Clear all rigid objects from the simple collision world.
virtual int getNumberOfRigidObjects () const
 Get the number of rigid objects in the simple collision world.
virtual bool addParticle (Particle *newParticle)
 Add a particle to this simple collision world.
virtual bool removeParticle (Particle *newParticle)
 Remove a particle from this simple collision world.
virtual bool containsParticle (Particle *newParticle) const
 Return whether or not a particle is contained in this simple collision world.
virtual void clearParticles ()
 Clear all particles from the simple collision world.
virtual int getNumberOfParticles () const
 Get the number of particles in this simple collision world.

Private Attributes

ArrayList< RigidObject * > rigidObjects
 The rigid objects that are being tested for collisions in the simple collision world.
ArrayList< Particle * > particles
 The particles that are being tested for collisions in the simple collision world.


Constructor & Destructor Documentation

RIM_PHYSICS_NAMESPACE_START CollisionWorldSimple::CollisionWorldSimple (  ) 

Create a new empty simple collision world.


Member Function Documentation

void CollisionWorldSimple::testForCollisions ( Real  dt  )  [virtual]

Test for collisions between all objects in the simple collision world.

Implements CollisionWorld.

void CollisionWorldSimple::testForCollisions ( Real  dt,
CollisionResultSet resultSet 
) [virtual]

Test for collisions between all objects in the simple collision world.

Implements CollisionWorld.

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

Add a rigid object to the simple collision world.

Implements PhysicsSystem.

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

Remove a rigid object from the simple collision world.

Implements PhysicsSystem.

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

Get whether or not a rigid object is contained in the simple collision world.

Implements PhysicsSystem.

void CollisionWorldSimple::clearRigidObjects (  )  [virtual]

Clear all rigid objects from the simple collision world.

Implements PhysicsSystem.

int CollisionWorldSimple::getNumberOfRigidObjects (  )  const [virtual]

Get the number of rigid objects in the simple collision world.

Implements PhysicsSystem.

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

Add a particle to this simple collision world.

Implements PhysicsSystem.

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

Remove a particle from this simple collision world.

Implements PhysicsSystem.

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

Return whether or not a particle is contained in this simple collision world.

Implements PhysicsSystem.

void CollisionWorldSimple::clearParticles (  )  [virtual]

Clear all particles from the simple collision world.

Implements PhysicsSystem.

int CollisionWorldSimple::getNumberOfParticles (  )  const [virtual]

Get the number of particles in this simple collision world.

Implements PhysicsSystem.


Member Data Documentation

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

The rigid objects that are being tested for collisions in the simple collision world.

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

The particles that are being tested for collisions in the simple collision world.


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