This class manages a sub part of a mesh supplied by the btStridingMeshInterface interface. More...
#include <btGImpactShape.h>
Classes | |
class | TrimeshPrimitiveManager |
Trimesh primitive manager. More... | |
Public Member Functions | |
btGImpactMeshShapePart () | |
btGImpactMeshShapePart (btStridingMeshInterface *meshInterface, int part) | |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) 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 btCollisionShape * | getChildShape (int index) |
Gets the children. | |
virtual const btCollisionShape * | getChildShape (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. | |
virtual const btVector3 & | getLocalScaling () const |
SIMD_FORCE_INLINE btScalar | getMargin () const |
virtual const char * | getName () const |
virtual int | getNumChildShapes () const |
Gets the number of children. | |
SIMD_FORCE_INLINE int | getPart () const |
virtual const btPrimitiveManagerBase * | getPrimitiveManager () const |
Obtains the primitive manager. | |
SIMD_FORCE_INLINE TrimeshPrimitiveManager * | getTrimeshPrimitiveManager () |
SIMD_FORCE_INLINE void | getVertex (int vertex_index, btVector3 &vertex) const |
SIMD_FORCE_INLINE int | getVertexCount () const |
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 | processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const |
Function for retrieve triangles. | |
virtual void | setChildTransform (int index, const btTransform &transform) |
Sets the children transform. | |
virtual void | setLocalScaling (const btVector3 &scaling) |
SIMD_FORCE_INLINE void | setMargin (btScalar margin) |
virtual void | unlockChildShapes () const |
virtual | ~btGImpactMeshShapePart () |
Protected Attributes | |
TrimeshPrimitiveManager | m_primitive_manager |
This class manages a sub part of a mesh supplied by the btStridingMeshInterface interface.
Definition at line 521 of file btGImpactShape.h.
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.
virtual void btGImpactMeshShapePart::calculateLocalInertia | ( | btScalar | mass, |
btVector3 & | inertia | ||
) | const [virtual] |
Implements btCollisionShape.
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] |
Base method for determinig which kind of GIMPACT shape we get.
Subshape member functions
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.
SIMD_FORCE_INLINE 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.
SIMD_FORCE_INLINE 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.
SIMD_FORCE_INLINE TrimeshPrimitiveManager* btGImpactMeshShapePart::getTrimeshPrimitiveManager | ( | ) | [inline] |
Definition at line 800 of file btGImpactShape.h.
SIMD_FORCE_INLINE void btGImpactMeshShapePart::getVertex | ( | int | vertex_index, |
btVector3 & | vertex | ||
) | const [inline] |
Definition at line 855 of file btGImpactShape.h.
SIMD_FORCE_INLINE 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.
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.
virtual void btGImpactMeshShapePart::setChildTransform | ( | int | index, |
const btTransform & | transform | ||
) | [inline, virtual] |
Sets the children transform.
Implements btGImpactShapeInterface.
Definition at line 786 of file btGImpactShape.h.
virtual void btGImpactMeshShapePart::setLocalScaling | ( | const btVector3 & | scaling | ) | [inline, virtual] |
Reimplemented from btGImpactShapeInterface.
Definition at line 871 of file btGImpactShape.h.
SIMD_FORCE_INLINE 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.
Definition at line 707 of file btGImpactShape.h.