CollisionShapeBox Class Reference

#include <rimCollisionShapeBox.h>

Inheritance diagram for CollisionShapeBox:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CollisionShapeBox (Real width, Real height, Real depth)
 CollisionShapeBox (Real width, Real height, Real depth, const CollisionShapeMaterial &material)
 CollisionShapeBox (Real width, Real height, Real depth, const Vector3 &position)
 CollisionShapeBox (Real width, Real height, Real depth, const Vector3 &position, const CollisionShapeMaterial &material)
 CollisionShapeBox (Real width, Real height, Real depth, const Vector3 &position, const Matrix3 &orientation)
 CollisionShapeBox (Real width, Real height, Real depth, const Vector3 &position, const Matrix3 &orientation, const CollisionShapeMaterial &material)
const Vector3getPosition () const
void setPosition (const Vector3 &newPosition)
const Matrix3getOrientation () const
void setOrientation (const Matrix3 &newOrientation)
Real getWidth () const
void setWidth (Real newWidth)
Real getHeight () const
void setHeight (Real newHeight)
Real getDepth () const
void setDepth (Real newDepth)
const Vector3getSize () const
void setSize (const Vector3 &newSize)
virtual Matrix3 getInertiaTensor () const
 Get the inertia tensor of the shape in it's parent coordinate system (object space).
virtual Vector3 getCenterOfMass () const
 Get the center of mass of the shape in it's parent coordinate system (object space).
virtual CollisionShapeInstancegetInstance () const
 Create a new instance of this base collision shape polymorphically.
virtual const CollisionShapeTypegetType () const
 Get the polymorphic type of the collision shape.

Static Public Member Functions

static const CollisionShapeTypegetStaticType ()

Private Attributes

Vector3 position
 The position of the box in object space.
Matrix3 orientation
 The rotation matrix defining the box's orientation in object space.
Vector3 size
 The width (x), heigth (y), and depth (z) of the box in object space.

Static Private Attributes

static const CollisionShapeType shapeType = "Box"


Constructor & Destructor Documentation

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth 
)

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth,
const CollisionShapeMaterial material 
)

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth,
const Vector3 position 
)

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth,
const Vector3 position,
const CollisionShapeMaterial material 
)

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth,
const Vector3 position,
const Matrix3 orientation 
)

CollisionShapeBox::CollisionShapeBox ( Real  width,
Real  height,
Real  depth,
const Vector3 position,
const Matrix3 orientation,
const CollisionShapeMaterial material 
)


Member Function Documentation

const Vector3& CollisionShapeBox::getPosition (  )  const [inline]

void CollisionShapeBox::setPosition ( const Vector3 newPosition  )  [inline]

const Matrix3& CollisionShapeBox::getOrientation (  )  const [inline]

void CollisionShapeBox::setOrientation ( const Matrix3 newOrientation  )  [inline]

Real CollisionShapeBox::getWidth (  )  const [inline]

void CollisionShapeBox::setWidth ( Real  newWidth  )  [inline]

Real CollisionShapeBox::getHeight (  )  const [inline]

void CollisionShapeBox::setHeight ( Real  newHeight  )  [inline]

Real CollisionShapeBox::getDepth (  )  const [inline]

void CollisionShapeBox::setDepth ( Real  newDepth  )  [inline]

const Vector3& CollisionShapeBox::getSize (  )  const [inline]

void CollisionShapeBox::setSize ( const Vector3 newSize  )  [inline]

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

Get the inertia tensor of the shape in it's parent coordinate system (object space).

Implements CollisionShape.

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

Get the center of mass of the shape in it's parent coordinate system (object space).

Implements CollisionShape.

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

Create a new instance of this base collision shape polymorphically.

Implements CollisionShape.

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

Get the polymorphic type of the collision shape.

Implements CollisionShape.

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


Member Data Documentation

Vector3 CollisionShapeBox::position [private]

The position of the box in object space.

Matrix3 CollisionShapeBox::orientation [private]

The rotation matrix defining the box's orientation in object space.

Vector3 CollisionShapeBox::size [private]

The width (x), heigth (y), and depth (z) of the box in object space.

RIM_PHYSICS_NAMESPACE_START const CollisionShapeType CollisionShapeBox::shapeType = "Box" [static, private]


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