Classes | Public Member Functions | Protected Attributes
btGImpactCompoundShape Class Reference

btGImpactCompoundShape allows to handle multiple btCollisionShape objects at once More...

#include <btGImpactShape.h>

Inheritance diagram for btGImpactCompoundShape:
Inheritance graph
[legend]

List of all members.

Classes

class  CompoundPrimitiveManager
 compound primitive manager More...

Public Member Functions

void addChildShape (const btTransform &localTransform, btCollisionShape *shape)
 Use this method for adding children. Only Convex shapes are allowed.
void addChildShape (btCollisionShape *shape)
 Use this method for adding children. Only Convex shapes are allowed.
 btGImpactCompoundShape (bool children_has_transform=true)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 Calculates the exact inertia tensor for this shape.
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 children.
virtual btTransform getChildTransform (int index) const
 Gets the children transform.
SIMD_FORCE_INLINE
CompoundPrimitiveManager
getCompoundPrimitiveManager ()
 Obtains the compopund primitive manager.
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType () const
 Base method for determinig which kind of GIMPACT shape we get.
virtual const char * getName () const
virtual int getNumChildShapes () const
 Gets the number of children.
virtual const
btPrimitiveManagerBase
getPrimitiveManager () const
 Obtains the primitive manager.
virtual bool needsRetrieveTetrahedrons () const
 Determines if this shape has tetrahedrons.
virtual bool needsRetrieveTriangles () const
 Determines if this shape has triangles.
virtual void setChildTransform (int index, const btTransform &transform)
 Sets the children transform.
virtual ~btGImpactCompoundShape ()

Protected Attributes

btAlignedObjectArray
< btCollisionShape * > 
m_childShapes
btAlignedObjectArray< btTransformm_childTransforms
CompoundPrimitiveManager m_primitive_manager

Detailed Description

btGImpactCompoundShape allows to handle multiple btCollisionShape objects at once

This class only can manage Convex subshapes

Definition at line 300 of file btGImpactShape.h.


Constructor & Destructor Documentation

btGImpactCompoundShape::btGImpactCompoundShape ( bool  children_has_transform = true) [inline]

Definition at line 370 of file btGImpactShape.h.

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

Definition at line 377 of file btGImpactShape.h.


Member Function Documentation

void btGImpactCompoundShape::addChildShape ( const btTransform localTransform,
btCollisionShape shape 
) [inline]

Use this method for adding children. Only Convex shapes are allowed.

Definition at line 410 of file btGImpactShape.h.

Use this method for adding children. Only Convex shapes are allowed.

Definition at line 418 of file btGImpactShape.h.

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

Calculates the exact inertia tensor for this shape.

Implements btCollisionShape.

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

if true, then its children must get transforms.

Implements btGImpactShapeInterface.

Definition at line 383 of file btGImpactShape.h.

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

Implements btGImpactShapeInterface.

Definition at line 490 of file btGImpactShape.h.

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

Implements btGImpactShapeInterface.

Definition at line 484 of file btGImpactShape.h.

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

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

Gets the children.

Implements btGImpactShapeInterface.

Definition at line 425 of file btGImpactShape.h.

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

Gets the children.

Implements btGImpactShapeInterface.

Definition at line 431 of file btGImpactShape.h.

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

Gets the children transform.

Implements btGImpactShapeInterface.

Definition at line 454 of file btGImpactShape.h.

Obtains the compopund primitive manager.

Definition at line 397 of file btGImpactShape.h.

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

Subshape member functions

Implements btGImpactShapeInterface.

Definition at line 505 of file btGImpactShape.h.

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

Implements btCollisionShape.

Definition at line 500 of file btGImpactShape.h.

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

Gets the number of children.

Implements btGImpactShapeInterface.

Definition at line 403 of file btGImpactShape.h.

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

Obtains the primitive manager.

Implements btGImpactShapeInterface.

Definition at line 391 of file btGImpactShape.h.

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

Determines if this shape has tetrahedrons.

Implements btGImpactShapeInterface.

Definition at line 478 of file btGImpactShape.h.

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

Determines if this shape has triangles.

Implements btGImpactShapeInterface.

Definition at line 472 of file btGImpactShape.h.

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


Member Data Documentation

Definition at line 365 of file btGImpactShape.h.

Definition at line 364 of file btGImpactShape.h.

Definition at line 363 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