btGImpactMeshShape Class Reference

This class manages a mesh supplied by the btStridingMeshInterface interface. More...

#include <btGImpactShape.h>

Inheritance diagram for btGImpactMeshShape:

btGImpactShapeInterface List of all members.

Public Member Functions

 btGImpactMeshShape (btStridingMeshInterface *meshInterface)
virtual ~btGImpactMeshShape ()
int getMeshPartCount ()
btGImpactMeshShapePartgetMeshPart (int index)
const btGImpactMeshShapePartgetMeshPart (int index) const
virtual void setLocalScaling (const btVector3 &scaling)
virtual void postUpdate ()
 Tells to this object that is needed to refit all the meshes.
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia)
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 char * getName () const
virtual void rayTest (const btVector3 &rayFrom, const btVector3 &rayTo, btCollisionWorld::RayResultCallback &resultCallback) const
 virtual method for ray collision
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 Function for retrieve triangles.

Protected Member Functions

void buildMeshParts (btStridingMeshInterface *meshInterface)
virtual void calcLocalAABB ()
 use this function for perfofm refit in bounding boxes

Protected Attributes

btAlignedObjectArray< btGImpactMeshShapePart * > m_mesh_parts

Detailed Description

This class manages a mesh supplied by the btStridingMeshInterface interface.

Set of btGImpactMeshShapePart parts


Constructor & Destructor Documentation

btGImpactMeshShape::btGImpactMeshShape ( btStridingMeshInterface *  meshInterface  )  [inline]

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


Member Function Documentation

void btGImpactMeshShape::buildMeshParts ( btStridingMeshInterface *  meshInterface  )  [inline, protected]

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

use this function for perfofm refit in bounding boxes

Implements btGImpactShapeInterface.

int btGImpactMeshShape::getMeshPartCount (  )  [inline]

btGImpactMeshShapePart* btGImpactMeshShape::getMeshPart ( int  index  )  [inline]

const btGImpactMeshShapePart* btGImpactMeshShape::getMeshPart ( int  index  )  const [inline]

virtual void btGImpactMeshShape::setLocalScaling ( const btVector3 &  scaling  )  [inline, virtual]

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

Reimplemented from btGImpactShapeInterface.

virtual void btGImpactMeshShape::postUpdate (  )  [inline, virtual]

Tells to this object that is needed to refit all the meshes.

Reimplemented from btGImpactShapeInterface.

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

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

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

Implements btGImpactShapeInterface.

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

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

Implements btGImpactShapeInterface.

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

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

virtual method for ray collision

Reimplemented from btGImpactShapeInterface.

virtual void btGImpactMeshShape::processAllTriangles ( btTriangleCallback *  callback,
const btVector3 &  aabbMin,
const btVector3 &  aabbMax 
) const [virtual]

Function for retrieve triangles.

It gives the triangles in local space

Reimplemented from btGImpactShapeInterface.


Member Data Documentation

btAlignedObjectArray<btGImpactMeshShapePart*> btGImpactMeshShape::m_mesh_parts [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