CollisionShapeContainer Class Reference

#include <rimCollisionShapeContainer.h>

Inheritance diagram for CollisionShapeContainer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CollisionShapeContainer ()
 CollisionShapeContainer (int shapeArrayCapacity)
 ~CollisionShapeContainer ()
void addShape (CollisionShape *newShape)
CollisionShapegetShape (int index) const
int getNumberOfShapes () const
virtual Matrix3 getInertiaTensor () const
 Get the inertia tensor of the shape in object space, relative to it's center of mass.
virtual Vector3 getCenterOfMass () const
 Get the center of mass of the shape in object space.
virtual CollisionShapeInstancegetInstance () const
 Create a new instance of this sphere shape.
virtual const CollisionShapeTypegetType () const
 Get a reference for the type of this shape.

Static Public Member Functions

static const CollisionShapeTypegetStaticType ()
 Get the static type object for this sphere shape class.

Private Member Functions

void updateDependentQuantities ()

Private Attributes

CollisionShape ** shapes
int numShapes
int shapeArraySize
Vector3 centerOfMass
Matrix3 inertiaTensor

Static Private Attributes

static const int DEFAULT_SHAPE_ARRAY_SIZE = 4
static const CollisionShapeType shapeType = "Container"
 The shape type object for all sphere collision shapes.


Constructor & Destructor Documentation

CollisionShapeContainer::CollisionShapeContainer (  ) 

CollisionShapeContainer::CollisionShapeContainer ( int  shapeArrayCapacity  ) 

CollisionShapeContainer::~CollisionShapeContainer (  ) 


Member Function Documentation

void CollisionShapeContainer::addShape ( CollisionShape newShape  ) 

CollisionShape* CollisionShapeContainer::getShape ( int  index  )  const [inline]

int CollisionShapeContainer::getNumberOfShapes (  )  const [inline]

virtual Matrix3 CollisionShapeContainer::getInertiaTensor (  )  const [inline, virtual]

Get the inertia tensor of the shape in object space, relative to it's center of mass.

Implements CollisionShape.

virtual Vector3 CollisionShapeContainer::getCenterOfMass (  )  const [inline, virtual]

Get the center of mass of the shape in object space.

Implements CollisionShape.

CollisionShapeInstance * CollisionShapeContainer::getInstance (  )  const [virtual]

Create a new instance of this sphere shape.

Implements CollisionShape.

virtual const CollisionShapeType& CollisionShapeContainer::getType (  )  const [inline, virtual]

Get a reference for the type of this shape.

Implements CollisionShape.

static const CollisionShapeType& CollisionShapeContainer::getStaticType (  )  [inline, static]

Get the static type object for this sphere shape class.

void CollisionShapeContainer::updateDependentQuantities (  )  [private]


Member Data Documentation

CollisionShape** CollisionShapeContainer::shapes [private]

int CollisionShapeContainer::numShapes [private]

int CollisionShapeContainer::shapeArraySize [private]

Vector3 CollisionShapeContainer::centerOfMass [private]

Matrix3 CollisionShapeContainer::inertiaTensor [private]

const int CollisionShapeContainer::DEFAULT_SHAPE_ARRAY_SIZE = 4 [static, private]

RIM_PHYSICS_NAMESPACE_START const CollisionShapeType CollisionShapeContainer::shapeType = "Container" [static, private]

The shape type object for all sphere collision shapes.


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