CollisionWorldOctree Class Reference

#include <rimCollisionWorldOctree.h>

Inheritance diagram for CollisionWorldOctree:

Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

OctreeNoderoot

Private Member Functions

void update ()
void insertObject (OctreeObject *object)
void removeObject (OctreeObject *object)
void reappropriateObject (OctreeObject *object)
void testForCollisions (OctreeNode *node)

Private Attributes

HashMap< RigidObject *,
OctreeObject * > 
rigidObjectMap
 The rigid objects that are being tested for collisions in the octree-based collision world.
ArrayList< Particle * > particles
 The particles that are being tested for collisions in the octree-based collision world.


Constructor & Destructor Documentation

RIM_PHYSICS_NAMESPACE_START CollisionWorldOctree::CollisionWorldOctree (  ) 

Create a new empty octree-based collision world.


Member Function Documentation

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

Test for collisions between all objects in the octree-based collision world.

Implements CollisionWorld.

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

Test for collisions between all objects in the octree-based collision world.

Implements CollisionWorld.

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

Add a rigid object to the octree-based collision world.

Implements PhysicsSystem.

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

Remove a rigid object from the octree-based collision world.

Implements PhysicsSystem.

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

Get whether or not a rigid object is contained in the octree-based collision world.

Implements PhysicsSystem.

void CollisionWorldOctree::clearRigidObjects (  )  [virtual]

Clear all rigid objects from the octree-based collision world.

Implements PhysicsSystem.

int CollisionWorldOctree::getNumberOfRigidObjects (  )  const [virtual]

Get the number of rigid objects in the octree-based collision world.

Implements PhysicsSystem.

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

Add a particle to this octree-based collision world.

Implements PhysicsSystem.

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

Remove a particle from this octree-based collision world.

Implements PhysicsSystem.

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

Return whether or not a particle is contained in this octree-based collision world.

Implements PhysicsSystem.

void CollisionWorldOctree::clearParticles (  )  [virtual]

Clear all particles from the octree-based collision world.

Implements PhysicsSystem.

int CollisionWorldOctree::getNumberOfParticles (  )  const [virtual]

Get the number of particles in this octree-based collision world.

Implements PhysicsSystem.

void CollisionWorldOctree::update (  )  [private]

void CollisionWorldOctree::insertObject ( OctreeObject object  )  [private]

void CollisionWorldOctree::removeObject ( OctreeObject object  )  [private]

void CollisionWorldOctree::reappropriateObject ( OctreeObject object  )  [private]

void CollisionWorldOctree::testForCollisions ( OctreeNode node  )  [private]


Member Data Documentation

OctreeNode* CollisionWorldOctree::root

HashMap<RigidObject*,OctreeObject*> CollisionWorldOctree::rigidObjectMap [private]

The rigid objects that are being tested for collisions in the octree-based collision world.

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

The particles that are being tested for collisions in the octree-based 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