btScaledBvhTriangleMeshShape Class Reference

The btScaledBvhTriangleMeshShape allows to instance a scaled version of an existing btBvhTriangleMeshShape. More...

#include <btScaledBvhTriangleMeshShape.h>

Inheritance diagram for btScaledBvhTriangleMeshShape:
Inheritance graph
[legend]
Collaboration diagram for btScaledBvhTriangleMeshShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 btScaledBvhTriangleMeshShape (btBvhTriangleMeshShape *childShape, const btVector3 &localScaling)
virtual ~btScaledBvhTriangleMeshShape ()
virtual void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
virtual void setLocalScaling (const btVector3 &scaling)
virtual const btVector3getLocalScaling () const
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
btBvhTriangleMeshShapegetChildShape ()
const btBvhTriangleMeshShapegetChildShape () const
virtual const char * getName () const

Private Attributes

btVector3 m_localScaling
btBvhTriangleMeshShapem_bvhTriMeshShape

Detailed Description

The btScaledBvhTriangleMeshShape allows to instance a scaled version of an existing btBvhTriangleMeshShape.

Note that each btBvhTriangleMeshShape still can have its own local scaling, independent from this btScaledBvhTriangleMeshShape 'localScaling'

Definition at line 24 of file btScaledBvhTriangleMeshShape.h.


Constructor & Destructor Documentation

btScaledBvhTriangleMeshShape::btScaledBvhTriangleMeshShape ( btBvhTriangleMeshShape childShape,
const btVector3 localScaling 
)

Definition at line 19 of file btScaledBvhTriangleMeshShape.cpp.

btScaledBvhTriangleMeshShape::~btScaledBvhTriangleMeshShape (  )  [virtual]

Definition at line 25 of file btScaledBvhTriangleMeshShape.cpp.


Member Function Documentation

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

don't make this a movable object!

Implements btCollisionShape.

Definition at line 117 of file btScaledBvhTriangleMeshShape.cpp.

void btScaledBvhTriangleMeshShape::getAabb ( const btTransform t,
btVector3 aabbMin,
btVector3 aabbMax 
) const [virtual]

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.

Implements btCollisionShape.

Definition at line 75 of file btScaledBvhTriangleMeshShape.cpp.

const btBvhTriangleMeshShape* btScaledBvhTriangleMeshShape::getChildShape (  )  const [inline]

Definition at line 52 of file btScaledBvhTriangleMeshShape.h.

btBvhTriangleMeshShape* btScaledBvhTriangleMeshShape::getChildShape (  )  [inline]

Definition at line 47 of file btScaledBvhTriangleMeshShape.h.

const btVector3 & btScaledBvhTriangleMeshShape::getLocalScaling (  )  const [virtual]

Implements btCollisionShape.

Definition at line 112 of file btScaledBvhTriangleMeshShape.cpp.

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

Implements btCollisionShape.

Definition at line 58 of file btScaledBvhTriangleMeshShape.h.

void btScaledBvhTriangleMeshShape::processAllTriangles ( btTriangleCallback callback,
const btVector3 aabbMin,
const btVector3 aabbMax 
) const [virtual]

support negative scaling

Implements btConcaveShape.

Definition at line 54 of file btScaledBvhTriangleMeshShape.cpp.

void btScaledBvhTriangleMeshShape::setLocalScaling ( const btVector3 scaling  )  [virtual]

Implements btCollisionShape.

Definition at line 107 of file btScaledBvhTriangleMeshShape.cpp.


Member Data Documentation

Definition at line 30 of file btScaledBvhTriangleMeshShape.h.

Definition at line 28 of file btScaledBvhTriangleMeshShape.h.


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

Generated on Mon Feb 15 22:23:36 2010 for Bullet Collision Detection & Physics Library by  doxygen 1.6.1