Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
btGImpactMeshShape Class Reference

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

#include <btGImpactShape.h>

Inheritance diagram for btGImpactMeshShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 btGImpactMeshShape (btStridingMeshInterface *meshInterface)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual int calculateSerializeBufferSize () const
virtual bool childrenHasTransform () const
 if true, then its children must get transforms.
virtual void getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const
virtual void getBulletTriangle (int prim_index, btTriangleShapeEx &triangle) const
virtual void getChildAabb (int child_index, const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 Retrieves the bound from a child.
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 eGIMPACT_SHAPE_TYPE getGImpactShapeType () const
 Base method for determinig which kind of GIMPACT shape we get.
btStridingMeshInterfacegetMeshInterface ()
const btStridingMeshInterfacegetMeshInterface () const
btGImpactMeshShapePartgetMeshPart (int index)
const btGImpactMeshShapePartgetMeshPart (int index) const
int getMeshPartCount () const
virtual const char * getName () const
virtual int getNumChildShapes () const
 Gets the number of children.
virtual const
btPrimitiveManagerBase
getPrimitiveManager () const
 Obtains the primitive manager.
virtual void lockChildShapes () const
 call when reading child shapes
virtual bool needsRetrieveTetrahedrons () const
 Determines if this shape has tetrahedrons.
virtual bool needsRetrieveTriangles () const
 Determines if this shape has triangles.
virtual void postUpdate ()
 Tells to this object that is needed to refit all the meshes.
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 Function for retrieve triangles.
virtual void rayTest (const btVector3 &rayFrom, const btVector3 &rayTo, btCollisionWorld::RayResultCallback &resultCallback) const
 virtual method for ray collision
virtual const char * serialize (void *dataBuffer, btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure)
virtual void setChildTransform (int index, const btTransform &transform)
 Sets the children transform.
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar margin)
virtual void unlockChildShapes () const
virtual ~btGImpactMeshShape ()

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

Private Attributes

btStridingMeshInterfacem_meshInterface

Detailed Description

This class manages a mesh supplied by the btStridingMeshInterface interface.

Set of btGImpactMeshShapePart parts

Definition at line 899 of file btGImpactShape.h.


Constructor & Destructor Documentation

Definition at line 927 of file btGImpactShape.h.

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

Definition at line 933 of file btGImpactShape.h.


Member Function Documentation

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

Definition at line 905 of file btGImpactShape.h.

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

use this function for perfofm refit in bounding boxes

Reimplemented from btGImpactShapeInterface.

Definition at line 915 of file btGImpactShape.h.

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

Implements btCollisionShape.

Reimplemented from btCollisionShape.

Definition at line 1165 of file btGImpactShape.h.

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

if true, then its children must get transforms.

Implements btGImpactShapeInterface.

Definition at line 1034 of file btGImpactShape.h.

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

Implements btGImpactShapeInterface.

Definition at line 1060 of file btGImpactShape.h.

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

Implements btGImpactShapeInterface.

Definition at line 1054 of file btGImpactShape.h.

virtual void btGImpactMeshShape::getChildAabb ( int  child_index,
const btTransform t,
btVector3 &  aabbMin,
btVector3 &  aabbMax 
) const [inline, virtual]

Retrieves the bound from a child.

Reimplemented from btGImpactShapeInterface.

Definition at line 1083 of file btGImpactShape.h.

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

Gets the children.

Implements btGImpactShapeInterface.

Definition at line 1090 of file btGImpactShape.h.

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

Gets the child.

Implements btGImpactShapeInterface.

Definition at line 1099 of file btGImpactShape.h.

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

Gets the children transform.

Implements btGImpactShapeInterface.

Definition at line 1107 of file btGImpactShape.h.

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

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

Subshape member functions

Implements btGImpactShapeInterface.

Definition at line 1125 of file btGImpactShape.h.

Definition at line 945 of file btGImpactShape.h.

Definition at line 950 of file btGImpactShape.h.

Definition at line 960 of file btGImpactShape.h.

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

Definition at line 967 of file btGImpactShape.h.

int btGImpactMeshShape::getMeshPartCount ( ) const [inline]

Definition at line 955 of file btGImpactShape.h.

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

Implements btCollisionShape.

Definition at line 1131 of file btGImpactShape.h.

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

Gets the number of children.

Implements btGImpactShapeInterface.

Definition at line 1026 of file btGImpactShape.h.

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

Obtains the primitive manager.

Implements btGImpactShapeInterface.

Definition at line 1018 of file btGImpactShape.h.

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

call when reading child shapes

Reimplemented from btGImpactShapeInterface.

Definition at line 1067 of file btGImpactShape.h.

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

Determines if this shape has tetrahedrons.

Implements btGImpactShapeInterface.

Definition at line 1048 of file btGImpactShape.h.

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

Determines if this shape has triangles.

Implements btGImpactShapeInterface.

Definition at line 1041 of file btGImpactShape.h.

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

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

Reimplemented from btGImpactShapeInterface.

Definition at line 1002 of file btGImpactShape.h.

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.

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

virtual method for ray collision

Reimplemented from btGImpactShapeInterface.

virtual const char* btGImpactMeshShape::serialize ( void *  dataBuffer,
btSerializer serializer 
) const [virtual]

fills the dataBuffer and returns the struct name (and 0 on failure)

Reimplemented from btCollisionShape.

virtual void btGImpactMeshShape::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 1118 of file btGImpactShape.h.

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

Reimplemented from btGImpactShapeInterface.

Definition at line 973 of file btGImpactShape.h.

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

Reimplemented from btGImpactShapeInterface.

Definition at line 987 of file btGImpactShape.h.

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

Reimplemented from btGImpactShapeInterface.

Definition at line 1072 of file btGImpactShape.h.


Member Data Documentation

Definition at line 904 of file btGImpactShape.h.

Definition at line 901 of file btGImpactShape.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32