Public Member Functions | Protected Attributes
btCylinderShape Class Reference

The btCylinderShape class implements a cylinder shape primitive, centered around the origin. Its central axis aligned with the Y axis. btCylinderShapeX is aligned with the X axis and btCylinderShapeZ around the Z axis. More...

#include <btCylinderShape.h>

Inheritance diagram for btCylinderShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 btCylinderShape (const btVector3 &halfExtents)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual int calculateSerializeBufferSize () 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
btVector3 getHalfExtentsWithMargin () const
const btVector3 & getHalfExtentsWithoutMargin () const
virtual const char * getName () const
virtual btScalar getRadius () const
int getUpAxis () const
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
virtual const char * serialize (void *dataBuffer, btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure)
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar collisionMargin)

Protected Attributes

int m_upAxis

Detailed Description

The btCylinderShape class implements a cylinder shape primitive, centered around the origin. Its central axis aligned with the Y axis. btCylinderShapeX is aligned with the X axis and btCylinderShapeZ around the Z axis.

Definition at line 24 of file btCylinderShape.h.


Constructor & Destructor Documentation

btCylinderShape::btCylinderShape ( const btVector3 &  halfExtents)

Member Function Documentation

virtual void btCylinderShape::batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 *  vectors,
btVector3 *  supportVerticesOut,
int  numVectors 
) const [virtual]

Reimplemented in btCylinderShapeZ, and btCylinderShapeX.

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

Reimplemented from btConvexInternalShape.

Definition at line 180 of file btCylinderShape.h.

void btCylinderShape::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

Reimplemented from btConvexInternalShape.

btVector3 btCylinderShape::getHalfExtentsWithMargin ( ) const [inline]

Definition at line 34 of file btCylinderShape.h.

const btVector3& btCylinderShape::getHalfExtentsWithoutMargin ( ) const [inline]

Definition at line 42 of file btCylinderShape.h.

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

Reimplemented in btCylinderShapeZ, and btCylinderShapeX.

Definition at line 116 of file btCylinderShape.h.

virtual btScalar btCylinderShape::getRadius ( ) const [inline, virtual]

Reimplemented in btCylinderShapeZ, and btCylinderShapeX.

Definition at line 98 of file btCylinderShape.h.

int btCylinderShape::getUpAxis ( ) const [inline]

Definition at line 93 of file btCylinderShape.h.

virtual btVector3 btCylinderShape::localGetSupportingVertex ( const btVector3 &  vec) const [inline, virtual]

Reimplemented from btConvexInternalShape.

Definition at line 69 of file btCylinderShape.h.

virtual btVector3 btCylinderShape::localGetSupportingVertexWithoutMargin ( const btVector3 &  vec) const [virtual]

Reimplemented in btCylinderShapeZ, and btCylinderShapeX.

SIMD_FORCE_INLINE const char * btCylinderShape::serialize ( void *  dataBuffer,
btSerializer serializer 
) const [virtual]

fills the dataBuffer and returns the struct name (and 0 on failure)

Reimplemented from btConvexInternalShape.

Definition at line 186 of file btCylinderShape.h.

virtual void btCylinderShape::setLocalScaling ( const btVector3 &  scaling) [inline, virtual]

Reimplemented from btConvexInternalShape.

Definition at line 103 of file btCylinderShape.h.

virtual void btCylinderShape::setMargin ( btScalar  collisionMargin) [inline, virtual]

Reimplemented from btConvexInternalShape.

Definition at line 57 of file btCylinderShape.h.


Member Data Documentation

int btCylinderShape::m_upAxis [protected]

Definition at line 30 of file btCylinderShape.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