opal::CapsuleShapeData Class Reference

#include <CapsuleShapeData.h>

Inheritance diagram for opal::CapsuleShapeData:

opal::ShapeData List of all members.

Public Member Functions

OPAL_DECL CapsuleShapeData ()
OPAL_DECL CapsuleShapeData (const CapsuleShapeData &data)
virtual OPAL_DECL ~CapsuleShapeData ()
virtual OPAL_DECL void OPAL_CALL operator= (const CapsuleShapeData &data)
virtual OPAL_DECL void OPAL_CALL getLocalAABB (real aabb[6])

Public Attributes

real radius
real length

Detailed Description

A data structure describing a capsule Shape. Capsules start out aligned along their local Z axis.

Definition at line 38 of file CapsuleShapeData.h.


Constructor & Destructor Documentation

OPAL_DECL opal::CapsuleShapeData::CapsuleShapeData  )  [inline]
 

Definition at line 41 of file CapsuleShapeData.h.

References opal::CAPSULE_SHAPE, opal::defaults::shape::capsuleLength, opal::defaults::shape::capsuleRadius, length, opal::ShapeData::mType, and radius.

OPAL_DECL opal::CapsuleShapeData::CapsuleShapeData const CapsuleShapeData data  )  [inline]
 

Copy constructor.

Definition at line 50 of file CapsuleShapeData.h.

virtual OPAL_DECL opal::CapsuleShapeData::~CapsuleShapeData  )  [inline, virtual]
 

Definition at line 55 of file CapsuleShapeData.h.


Member Function Documentation

virtual OPAL_DECL void OPAL_CALL opal::CapsuleShapeData::getLocalAABB real  aabb[6]  )  [inline, virtual]
 

Returns the axis-aligned bounding box of the ShapeData relative to its center. The 'aabb' array stores data in the following order: min x, max x, min y, max y, min z, max z.

Implements opal::ShapeData.

Definition at line 71 of file CapsuleShapeData.h.

References length, and radius.

virtual OPAL_DECL void OPAL_CALL opal::CapsuleShapeData::operator= const CapsuleShapeData data  )  [inline, virtual]
 

Makes a deep copy.

Definition at line 60 of file CapsuleShapeData.h.

References opal::ShapeData::contactGroup, length, opal::ShapeData::material, opal::ShapeData::mType, opal::ShapeData::offset, and radius.


Member Data Documentation

real opal::CapsuleShapeData::length
 

The capsule's length, not including the round caps.

Definition at line 87 of file CapsuleShapeData.h.

Referenced by CapsuleShapeData(), getLocalAABB(), operator=(), and opal::ODESolid::setStatic().

real opal::CapsuleShapeData::radius
 

The capsule's radius.

Definition at line 84 of file CapsuleShapeData.h.

Referenced by CapsuleShapeData(), getLocalAABB(), operator=(), and opal::ODESolid::setStatic().


The documentation for this class was generated from the following file:
Generated on Tue May 16 17:49:55 2006 for OPAL by  doxygen 1.4.6-NO