Classes | Public Member Functions | Protected Attributes

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:
Inheritance graph
[legend]
Collaboration diagram for btGImpactMeshShapePart:
Collaboration graph
[legend]

List of all members.

Classes

class  TrimeshPrimitiveManager
 Trimesh primitive manager. More...

Public Member Functions

 btGImpactMeshShapePart ()
 btGImpactMeshShapePart (btStridingMeshInterface *meshInterface, int part)
virtual ~btGImpactMeshShapePart ()
virtual bool childrenHasTransform () const
 if true, then its children must get transforms.
virtual void lockChildShapes () const
 call when reading child shapes
virtual void unlockChildShapes () const
virtual int getNumChildShapes () const
 Gets the number of children.
virtual btCollisionShapegetChildShape (int index)
 Gets the children.
virtual const btCollisionShapegetChildShape (int index) const
 Gets the child.
virtual btTransform getChildTransform (int index) const
 Gets the children transform.
virtual void setChildTransform (int index, const btTransform &transform)
 Sets the children transform.
virtual const
btPrimitiveManagerBase
getPrimitiveManager () const
 Obtains the primitive manager.
TrimeshPrimitiveManagergetTrimeshPrimitiveManager ()
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual const char * getName () const
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType () const
 Subshape member functions.
virtual bool needsRetrieveTriangles () const
 Determines if this shape has triangles.
virtual bool needsRetrieveTetrahedrons () const
 Determines if this shape has tetrahedrons.
virtual void getBulletTriangle (int prim_index, btTriangleShapeEx &triangle) const
virtual void getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const
int getVertexCount () const
void getVertex (int vertex_index, btVector3 &vertex) const
void setMargin (btScalar margin)
btScalar getMargin () const
virtual void setLocalScaling (const btVector3 &scaling)
virtual const btVector3getLocalScaling () const
int getPart () const
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 Function for retrieve triangles.

Protected Attributes

TrimeshPrimitiveManager m_primitive_manager

Detailed Description

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

Definition at line 521 of file btGImpactShape.h.


Constructor & Destructor Documentation

btGImpactMeshShapePart::btGImpactMeshShapePart (  )  [inline]

Definition at line 710 of file btGImpactShape.h.

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

Definition at line 716 of file btGImpactShape.h.

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

Definition at line 723 of file btGImpactShape.h.


Member Function Documentation

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

Implements btCollisionShape.

Definition at line 72 of file btGImpactShape.cpp.

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

if true, then its children must get transforms.

Implements btGImpactShapeInterface.

Definition at line 728 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::getBulletTetrahedron ( int  prim_index,
btTetrahedronShapeEx tetrahedron 
) const [inline, virtual]

Implements btGImpactShapeInterface.

Definition at line 841 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::getBulletTriangle ( int  prim_index,
btTriangleShapeEx triangle 
) const [inline, virtual]

Implements btGImpactShapeInterface.

Definition at line 836 of file btGImpactShape.h.

virtual btCollisionShape* btGImpactMeshShapePart::getChildShape ( int  index  )  [inline, virtual]

Gets the children.

Implements btGImpactShapeInterface.

Definition at line 757 of file btGImpactShape.h.

virtual const btCollisionShape* btGImpactMeshShapePart::getChildShape ( int  index  )  const [inline, virtual]

Gets the child.

Implements btGImpactShapeInterface.

Definition at line 767 of file btGImpactShape.h.

virtual btTransform btGImpactMeshShapePart::getChildTransform ( int  index  )  const [inline, virtual]

Gets the children transform.

Implements btGImpactShapeInterface.

Definition at line 775 of file btGImpactShape.h.

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

Subshape member functions.

Base method for determinig which kind of GIMPACT shape we get

Implements btGImpactShapeInterface.

Definition at line 819 of file btGImpactShape.h.

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

Reimplemented from btGImpactShapeInterface.

Definition at line 877 of file btGImpactShape.h.

btScalar btGImpactMeshShapePart::getMargin (  )  const [inline, virtual]

Reimplemented from btConcaveShape.

Definition at line 866 of file btGImpactShape.h.

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

Implements btCollisionShape.

Definition at line 814 of file btGImpactShape.h.

virtual int btGImpactMeshShapePart::getNumChildShapes (  )  const [inline, virtual]

Gets the number of children.

Implements btGImpactShapeInterface.

Definition at line 750 of file btGImpactShape.h.

int btGImpactMeshShapePart::getPart (  )  const [inline]

Definition at line 882 of file btGImpactShape.h.

virtual const btPrimitiveManagerBase* btGImpactMeshShapePart::getPrimitiveManager (  )  const [inline, virtual]

Obtains the primitive manager.

Implements btGImpactShapeInterface.

Definition at line 795 of file btGImpactShape.h.

TrimeshPrimitiveManager* btGImpactMeshShapePart::getTrimeshPrimitiveManager (  )  [inline]

Definition at line 800 of file btGImpactShape.h.

void btGImpactMeshShapePart::getVertex ( int  vertex_index,
btVector3 vertex 
) const [inline]

Definition at line 855 of file btGImpactShape.h.

int btGImpactMeshShapePart::getVertexCount (  )  const [inline]

Definition at line 850 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::lockChildShapes (  )  const [inline, virtual]

call when reading child shapes

Reimplemented from btGImpactShapeInterface.

Definition at line 735 of file btGImpactShape.h.

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

Determines if this shape has tetrahedrons.

Implements btGImpactShapeInterface.

Definition at line 831 of file btGImpactShape.h.

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

Determines if this shape has triangles.

Implements btGImpactShapeInterface.

Definition at line 825 of file btGImpactShape.h.

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.

Definition at line 148 of file btGImpactShape.cpp.

virtual void btGImpactMeshShapePart::setChildTransform ( int  index,
const btTransform transform 
) [inline, virtual]

Sets the children transform.

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

Implements btGImpactShapeInterface.

Definition at line 786 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::setLocalScaling ( const btVector3 scaling  )  [inline, virtual]
Postcondition:
You must call updateBound() for update the box set.

Reimplemented from btGImpactShapeInterface.

Definition at line 871 of file btGImpactShape.h.

void btGImpactMeshShapePart::setMargin ( btScalar  margin  )  [inline, virtual]

Reimplemented from btGImpactShapeInterface.

Definition at line 860 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::unlockChildShapes (  )  const [inline, virtual]

Reimplemented from btGImpactShapeInterface.

Definition at line 742 of file btGImpactShape.h.


Member Data Documentation

Definition at line 707 of file btGImpactShape.h.


The documentation for this class was generated from the following files: