btGImpactCompoundShape Class Reference

btGIMPACTCompoundShape allows to handle multiple btCollisionShape objects at once More...

#include <btGImpactShape.h>

Inheritance diagram for btGImpactCompoundShape:

btGImpactShapeInterface List of all members.

Public Member Functions

 btGImpactCompoundShape ()
virtual ~btGImpactCompoundShape ()
SIMD_FORCE_INLINE const CompoundPrimitiveManagergetPrimitiveManager () const
 Obtains the primitive manager.
void addChildShape (const btTransform &localTransform, btCollisionShape *shape)
 Use this method for adding children.
int getNumChildShapes () const
 Gets the number of children.
btCollisionShape * getChildShape (int index)
 Gets the children.
const btCollisionShape * getChildShape (int index) const
 Gets the children.
btTransform getChildTransform (int index) const
 Gets the children transform.
void setChildTransform (int index, const btTransform &transform)
 Sets the children transform.
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia)
 Calculates the exact inertia tensor for this shape.
BoxSetClassgetBoxSet ()
virtual char * getName () const
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType ()
 Base method for determinig which kind of GIMPACT shape we get.
virtual bool hasBoxSet () const
 Determines if this class has a hierarchy structure for sorting its primitives.
virtual void rayTest (const btVector3 &rayFrom, const btVector3 &rayTo, btCollisionWorld::RayResultCallback &resultCallback) const
 virtual method for ray collision

Protected Member Functions

virtual void calcLocalAABB ()
 use this function for perfofm refit in bounding boxes

Protected Attributes

BoxSetClass m_box_set
btAlignedObjectArray< btTransform > m_childTransforms
btAlignedObjectArray< btCollisionShape * > m_childShapes

Classes

class  BoxSetClass
class  CompoundPrimitiveManager
 compound primitive manager More...

Detailed Description

btGIMPACTCompoundShape allows to handle multiple btCollisionShape objects at once

This allows for concave collision objects. This is more general then the Static Concave btTriangleMeshShape.


Constructor & Destructor Documentation

btGImpactCompoundShape::btGImpactCompoundShape (  )  [inline]

virtual btGImpactCompoundShape::~btGImpactCompoundShape (  )  [inline, virtual]


Member Function Documentation

virtual void btGImpactCompoundShape::calcLocalAABB (  )  [inline, protected, virtual]

use this function for perfofm refit in bounding boxes

Implements btGImpactShapeInterface.

SIMD_FORCE_INLINE const CompoundPrimitiveManager& btGImpactCompoundShape::getPrimitiveManager (  )  const [inline]

Obtains the primitive manager.

void btGImpactCompoundShape::addChildShape ( const btTransform &  localTransform,
btCollisionShape *  shape 
) [inline]

Use this method for adding children.

int btGImpactCompoundShape::getNumChildShapes (  )  const [inline]

Gets the number of children.

btCollisionShape* btGImpactCompoundShape::getChildShape ( int  index  )  [inline]

Gets the children.

const btCollisionShape* btGImpactCompoundShape::getChildShape ( int  index  )  const [inline]

Gets the children.

btTransform btGImpactCompoundShape::getChildTransform ( int  index  )  const [inline]

Gets the children transform.

void btGImpactCompoundShape::setChildTransform ( int  index,
const btTransform &  transform 
) [inline]

Sets the children transform.

Postcondition:
You must call updateBound() for update the box set.

virtual void btGImpactCompoundShape::calculateLocalInertia ( btScalar  mass,
btVector3 &  inertia 
) [virtual]

Calculates the exact inertia tensor for this shape.

BoxSetClass* btGImpactCompoundShape::getBoxSet (  )  [inline]

virtual char* btGImpactCompoundShape::getName (  )  const [inline, virtual]

virtual eGIMPACT_SHAPE_TYPE btGImpactCompoundShape::getGImpactShapeType (  )  [inline, virtual]

Base method for determinig which kind of GIMPACT shape we get.

Implements btGImpactShapeInterface.

virtual bool btGImpactCompoundShape::hasBoxSet (  )  const [inline, virtual]

Determines if this class has a hierarchy structure for sorting its primitives.

Implements btGImpactShapeInterface.

virtual void btGImpactCompoundShape::rayTest ( const btVector3 &  rayFrom,
const btVector3 &  rayTo,
btCollisionWorld::RayResultCallback &  resultCallback 
) const [virtual]

virtual method for ray collision

Reimplemented from btGImpactShapeInterface.


Member Data Documentation

BoxSetClass btGImpactCompoundShape::m_box_set [protected]

btAlignedObjectArray<btTransform> btGImpactCompoundShape::m_childTransforms [protected]

btAlignedObjectArray<btCollisionShape*> btGImpactCompoundShape::m_childShapes [protected]


The documentation for this class was generated from the following file:
Generated on Wed Jun 13 16:58:22 2007 for GIMPACT by  doxygen 1.5.2