#include <ShapeData.h>
Inheritance diagram for opal::ShapeData:
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 |
Definition at line 50 of file ShapeData.h.
|
Definition at line 53 of file ShapeData.h. References opal::defaults::shape::contactGroup, contactGroup, opal::defaults::shape::material, material, mType, and opal::SPHERE_SHAPE. |
|
Definition at line 63 of file ShapeData.h. |
|
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. |
|
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(). |
|
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(). |
|
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(). |
|
|
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(). |