Blender V2.61 - r43446
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]

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
 Base method for determinig which kind of GIMPACT shape we get.
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.
SIMD_FORCE_INLINE
TrimeshPrimitiveManager
getTrimeshPrimitiveManager ()
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual const char * getName () const
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType () const
 Base method for determinig which kind of GIMPACT shape we get.
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
 Base method for determinig which kind of GIMPACT shape we get.
virtual void getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const
 Base method for determinig which kind of GIMPACT shape we get.
SIMD_FORCE_INLINE int getVertexCount () const
SIMD_FORCE_INLINE void getVertex (int 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 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]
btGImpactMeshShapePart::btGImpactMeshShapePart ( btStridingMeshInterface meshInterface,
int  part 
) [inline]
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]
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]

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

Subshape member functions

Implements btGImpactShapeInterface.

Definition at line 841 of file btGImpactShape.h.

References btAssert.

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

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

Subshape member functions

Implements btGImpactShapeInterface.

Definition at line 836 of file btGImpactShape.h.

References btGImpactMeshShapePart::TrimeshPrimitiveManager::get_bullet_triangle(), and m_primitive_manager.

Referenced by btGImpactCollisionAlgorithm::collide_gjk_triangles().

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

Gets the children.

Implements btGImpactShapeInterface.

Definition at line 757 of file btGImpactShape.h.

References btAssert, and NULL.

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

Gets the child.

Implements btGImpactShapeInterface.

Definition at line 767 of file btGImpactShape.h.

References btAssert, and NULL.

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

Gets the children transform.

Implements btGImpactShapeInterface.

Definition at line 775 of file btGImpactShape.h.

References btAssert.

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.

References CONST_GIMPACT_TRIMESH_SHAPE_PART.

virtual const btVector3& btGImpactMeshShapePart::getLocalScaling ( ) const [inline, virtual]
SIMD_FORCE_INLINE btScalar btGImpactMeshShapePart::getMargin ( ) const [inline, virtual]
virtual const char* btGImpactMeshShapePart::getName ( void  ) 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.

References btGImpactMeshShapePart::TrimeshPrimitiveManager::get_primitive_count(), and m_primitive_manager.

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

Obtains the primitive manager.

Implements btGImpactShapeInterface.

Definition at line 795 of file btGImpactShape.h.

References m_primitive_manager.

SIMD_FORCE_INLINE TrimeshPrimitiveManager* btGImpactMeshShapePart::getTrimeshPrimitiveManager ( ) [inline]

Definition at line 800 of file btGImpactShape.h.

References m_primitive_manager.

SIMD_FORCE_INLINE void btGImpactMeshShapePart::getVertex ( int  vertex_index,
btVector3 &  vertex 
) const [inline]
SIMD_FORCE_INLINE int btGImpactMeshShapePart::getVertexCount ( ) const [inline]
virtual void btGImpactMeshShapePart::lockChildShapes ( ) const [inline, virtual]
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]
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.

References btAssert.

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.

References m_primitive_manager, btGImpactMeshShapePart::TrimeshPrimitiveManager::m_scale, and btGImpactShapeInterface::postUpdate().

Referenced by btGImpactMeshShape::setLocalScaling().

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

Member Data Documentation


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