btGImpactMeshShapePart Class Reference

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

#include <btGImpactShape.h>

Inheritance diagram for btGImpactMeshShapePart:

btGImpactShapeInterface List of all members.

Public Member Functions

 btGImpactMeshShapePart ()
 btGImpactMeshShapePart (const btGImpactMeshShapePart &meshpart)
 btGImpactMeshShapePart (btStridingMeshInterface *meshInterface, int part)
virtual ~btGImpactMeshShapePart ()
SIMD_FORCE_INLINE const TrimeshPrimitiveManagergetPrimitiveManager () const
SIMD_FORCE_INLINE void lock () const
SIMD_FORCE_INLINE void unlock () const
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia)
SIMD_FORCE_INLINE 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.
SIMD_FORCE_INLINE GUINT getTriangleCount () const
SIMD_FORCE_INLINE void getTriangle (GUINT triangle_index, GIM_TRIANGLE &triangle) const
SIMD_FORCE_INLINE void getBulletTriangle (GUINT prim_index, btTriangleShapeEx &triangle) const
SIMD_FORCE_INLINE GUINT getVertexCount () const
SIMD_FORCE_INLINE void getVertex (GUINT vertex_index, btVector3 &vertex) const
SIMD_FORCE_INLINE void setMargin (btScalar margin)
SIMD_FORCE_INLINE btScalar getMargin () const
virtual void setLocalScaling (const btVector3 &scaling)
virtual const btVector3 & getLocalScaling () const
SIMD_FORCE_INLINE GUINT getPart () 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

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

Protected Attributes

BoxSetClass m_box_set

Classes

class  BoxSetClass
class  TrimeshPrimitiveManager
 Trimesh primitive manager. More...

Detailed Description

This class manages a sub part of a mesh supplied by the btStridingMeshInterface interface.


Constructor & Destructor Documentation

btGImpactMeshShapePart::btGImpactMeshShapePart (  )  [inline]

btGImpactMeshShapePart::btGImpactMeshShapePart ( const btGImpactMeshShapePart meshpart  )  [inline]

btGImpactMeshShapePart::btGImpactMeshShapePart ( btStridingMeshInterface *  meshInterface,
int  part 
) [inline]

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


Member Function Documentation

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

use this function for perfofm refit in bounding boxes

Implements btGImpactShapeInterface.

SIMD_FORCE_INLINE const TrimeshPrimitiveManager& btGImpactMeshShapePart::getPrimitiveManager (  )  const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::lock (  )  const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::unlock (  )  const [inline]

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

SIMD_FORCE_INLINE BoxSetClass* btGImpactMeshShapePart::getBoxSet (  )  [inline]

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

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

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

Implements btGImpactShapeInterface.

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

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

Implements btGImpactShapeInterface.

SIMD_FORCE_INLINE GUINT btGImpactMeshShapePart::getTriangleCount (  )  const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::getTriangle ( GUINT  triangle_index,
GIM_TRIANGLE triangle 
) const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::getBulletTriangle ( GUINT  prim_index,
btTriangleShapeEx triangle 
) const [inline]

SIMD_FORCE_INLINE GUINT btGImpactMeshShapePart::getVertexCount (  )  const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::getVertex ( GUINT  vertex_index,
btVector3 &  vertex 
) const [inline]

SIMD_FORCE_INLINE void btGImpactMeshShapePart::setMargin ( btScalar  margin  )  [inline]

SIMD_FORCE_INLINE btScalar btGImpactMeshShapePart::getMargin (  )  const [inline]

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

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

Reimplemented from btGImpactShapeInterface.

virtual const btVector3& btGImpactMeshShapePart::getLocalScaling (  )  const [inline, virtual]

Reimplemented from btGImpactShapeInterface.

SIMD_FORCE_INLINE GUINT btGImpactMeshShapePart::getPart (  )  const [inline]

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

virtual method for ray collision

Reimplemented from btGImpactShapeInterface.

virtual void btGImpactMeshShapePart::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

BoxSetClass btGImpactMeshShapePart::m_box_set [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