opal::ShapeData Class Reference

#include <ShapeData.h>

Inheritance diagram for opal::ShapeData:

opal::BoxShapeData opal::CapsuleShapeData opal::MeshShapeData opal::PlaneShapeData opal::SphereShapeData List of all members.

Public Member Functions

OPAL_DECL ShapeData ()
virtual OPAL_DECL ~ShapeData ()
virtual OPAL_DECL ShapeType
OPAL_CALL 
getType () const
virtual OPAL_DECL void OPAL_CALL getLocalAABB (real aabb[6])=0

Public Attributes

Matrix44r offset
Material material
unsigned int contactGroup

Protected Attributes

ShapeType mType

Detailed Description

A data structure describing a Shape. Note that there is no other class associated with Shapes besides this one.

Definition at line 50 of file ShapeData.h.


Constructor & Destructor Documentation

OPAL_DECL opal::ShapeData::ShapeData  )  [inline]
 

Definition at line 53 of file ShapeData.h.

References opal::defaults::shape::contactGroup, contactGroup, opal::defaults::shape::material, material, mType, and opal::SPHERE_SHAPE.

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

Definition at line 63 of file ShapeData.h.


Member Function Documentation

virtual OPAL_DECL void OPAL_CALL opal::ShapeData::getLocalAABB real  aabb[6]  )  [pure 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.

Implemented in opal::BoxShapeData, opal::CapsuleShapeData, opal::MeshShapeData, opal::PlaneShapeData, and opal::SphereShapeData.

virtual OPAL_DECL ShapeType OPAL_CALL opal::ShapeData::getType  )  const [inline, virtual]
 

Returns the ShapeData's type.

Definition at line 68 of file ShapeData.h.

References mType.

Referenced by opal::SolidData::addShape(), opal::ODESolid::addShape(), and opal::ODESolid::setStatic().


Member Data Documentation

unsigned int opal::ShapeData::contactGroup
 

The Shape's contact group. If this exceeds 31, bad things might happen since there are only 32 groups.

Definition at line 86 of file ShapeData.h.

Referenced by opal::ode_hidden::internal_collisionCallback(), opal::ode_hidden::internal_raycastCollisionCallback(), opal::ode_hidden::internal_volumeCollisionCallback(), opal::SphereShapeData::operator=(), opal::PlaneShapeData::operator=(), opal::MeshShapeData::operator=(), opal::CapsuleShapeData::operator=(), opal::BoxShapeData::operator=(), and ShapeData().

Material opal::ShapeData::material
 

The Shape's material.

Definition at line 82 of file ShapeData.h.

Referenced by opal::ODESolid::addShape(), opal::Simulator::createPlane(), opal::ode_hidden::internal_collisionCallback(), opal::SphereShapeData::operator=(), opal::PlaneShapeData::operator=(), opal::MeshShapeData::operator=(), opal::CapsuleShapeData::operator=(), opal::BoxShapeData::operator=(), opal::ODESolid::setStatic(), and ShapeData().

ShapeType opal::ShapeData::mType [protected]
 

The Shape type.

Definition at line 90 of file ShapeData.h.

Referenced by opal::BoxShapeData::BoxShapeData(), opal::CapsuleShapeData::CapsuleShapeData(), getType(), opal::MeshShapeData::MeshShapeData(), opal::SphereShapeData::operator=(), opal::PlaneShapeData::operator=(), opal::MeshShapeData::operator=(), opal::CapsuleShapeData::operator=(), opal::BoxShapeData::operator=(), opal::PlaneShapeData::PlaneShapeData(), ShapeData(), and opal::SphereShapeData::SphereShapeData().

Matrix44r opal::ShapeData::offset
 

The offset transform from a Solid's transform.

Definition at line 79 of file ShapeData.h.

Referenced by opal::ODESolid::addShape(), opal::SphereShapeData::operator=(), opal::PlaneShapeData::operator=(), opal::MeshShapeData::operator=(), opal::CapsuleShapeData::operator=(), opal::BoxShapeData::operator=(), and opal::ODESolid::setupNewGeom().


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