Public Member Functions | Private Attributes
btUniformScalingShape Class Reference

#include <btUniformScalingShape.h>

List of all members.

Public Member Functions

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 btUniformScalingShape (btConvexShape *convexChildShape, btScalar uniformScalingFactor)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
virtual void getAabbSlow (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
btConvexShape * getChildShape ()
const btConvexShape * getChildShape () const
virtual const btVector3 & getLocalScaling () const
virtual btScalar getMargin () const
virtual const char * getName () const
virtual int getNumPreferredPenetrationDirections () const
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
btScalar getUniformScalingFactor () const
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar margin)
virtual ~btUniformScalingShape ()

Private Attributes

btConvexShape * m_childConvexShape
btScalar m_uniformScalingFactor

Detailed Description

The btUniformScalingShape allows to re-use uniform scaled instances of btConvexShape in a memory efficient way. Istead of using btUniformScalingShape, it is better to use the non-uniform setLocalScaling method on convex shapes that implement it.

Definition at line 24 of file btUniformScalingShape.h.


Constructor & Destructor Documentation

btUniformScalingShape::btUniformScalingShape ( btConvexShape *  convexChildShape,
btScalar  uniformScalingFactor 
)

Member Function Documentation

virtual void btUniformScalingShape::batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 *  vectors,
btVector3 *  supportVerticesOut,
int  numVectors 
) const [virtual]
virtual void btUniformScalingShape::calculateLocalInertia ( btScalar  mass,
btVector3 &  inertia 
) const [virtual]
void btUniformScalingShape::getAabb ( const btTransform t,
btVector3 &  aabbMin,
btVector3 &  aabbMax 
) const

getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version

virtual void btUniformScalingShape::getAabbSlow ( const btTransform t,
btVector3 &  aabbMin,
btVector3 &  aabbMax 
) const [virtual]
btConvexShape* btUniformScalingShape::getChildShape ( ) [inline]

Definition at line 49 of file btUniformScalingShape.h.

const btConvexShape* btUniformScalingShape::getChildShape ( ) const [inline]

Definition at line 54 of file btUniformScalingShape.h.

virtual const btVector3& btUniformScalingShape::getLocalScaling ( ) const [virtual]
virtual btScalar btUniformScalingShape::getMargin ( ) const [virtual]
virtual const char* btUniformScalingShape::getName ( ) const [inline, virtual]

Definition at line 59 of file btUniformScalingShape.h.

virtual void btUniformScalingShape::getPreferredPenetrationDirection ( int  index,
btVector3 &  penetrationVector 
) const [virtual]

Definition at line 44 of file btUniformScalingShape.h.

virtual btVector3 btUniformScalingShape::localGetSupportingVertex ( const btVector3 &  vec) const [virtual]
virtual btVector3 btUniformScalingShape::localGetSupportingVertexWithoutMargin ( const btVector3 &  vec) const [virtual]
virtual void btUniformScalingShape::setLocalScaling ( const btVector3 &  scaling) [virtual]
virtual void btUniformScalingShape::setMargin ( btScalar  margin) [virtual]

Member Data Documentation

Definition at line 26 of file btUniformScalingShape.h.

Definition at line 28 of file btUniformScalingShape.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:33