#include <SolidData.h>
Public Member Functions | |
OPAL_DECL | SolidData () |
OPAL_DECL | SolidData (const SolidData &data) |
virtual OPAL_DECL | ~SolidData () |
virtual OPAL_DECL void OPAL_CALL | addShape (const ShapeData &data) |
virtual OPAL_DECL unsigned int OPAL_CALL | getNumShapes () const |
virtual OPAL_DECL ShapeData *OPAL_CALL | getShapeData (unsigned int i) const |
virtual OPAL_DECL void OPAL_CALL | destroyShapes () |
virtual OPAL_DECL void OPAL_CALL | operator= (const SolidData &data) |
Public Attributes | |
bool | enabled |
std::string | name |
bool | sleeping |
real | sleepiness |
bool | isStatic |
Matrix44r | transform |
Vec3r | globalLinearVel |
Vec3r | globalAngularVel |
real | linearDamping |
real | angularDamping |
Protected Attributes | |
std::vector< ShapeData * > | mShapes |
Definition at line 37 of file SolidData.h.
|
Definition at line 37 of file SolidData.cpp. References opal::defaults::solid::angularDamping, angularDamping, opal::defaults::solid::enabled, enabled, opal::defaults::solid::isStatic, isStatic, opal::defaults::solid::linearDamping, linearDamping, name, opal::defaults::solid::sleepiness, sleepiness, opal::defaults::solid::sleeping, and sleeping. |
|
Copy constructor.
Definition at line 52 of file SolidData.cpp. |
|
Definition at line 57 of file SolidData.cpp. References destroyShapes(). |
|
Adds a new Shape to the SolidData. This automatically allocates the right ShapeData type. Definition at line 62 of file SolidData.cpp. References opal::BOX_SHAPE, and opal::ShapeData::getType(). Referenced by operator=(). |
|
Destroys all Shapes in the SolidData.
Definition at line 115 of file SolidData.cpp. References mShapes. Referenced by opal::ODESolid::clearShapes(), opal::ODESolid::init(), operator=(), and ~SolidData(). |
|
Returns the number of Shapes in this SolidData.
Definition at line 105 of file SolidData.cpp. References mShapes. Referenced by opal::ODESolid::init(). |
|
Returns a pointer to the ShapeData at the given index.
Definition at line 110 of file SolidData.cpp. References mShapes. Referenced by opal::ODESolid::init(). |
|
Makes a deep copy.
Definition at line 124 of file SolidData.cpp. References addShape(), angularDamping, destroyShapes(), enabled, globalAngularVel, globalLinearVel, isStatic, linearDamping, mShapes, name, sleepiness, sleeping, and transform. |
|
The amount of damping applied to the Solid's angular motion.
Definition at line 93 of file SolidData.h. Referenced by opal::Solid::getAngularDamping(), operator=(), opal::Solid::setAngularDamping(), and SolidData(). |
|
Determines whether the Solid is enabled.
Definition at line 65 of file SolidData.h. Referenced by opal::Solid::addForce(), opal::Solid::isEnabled(), operator=(), opal::Solid::setEnabled(), and SolidData(). |
|
The Solid's angular velocity in global coordinates.
Definition at line 87 of file SolidData.h. Referenced by operator=(). |
|
The Solid's linear velocity in global coordinates.
Definition at line 84 of file SolidData.h. Referenced by operator=(). |
|
|
The amount of damping applied to the Solid's linear motion.
Definition at line 90 of file SolidData.h. Referenced by opal::Solid::getLinearDamping(), operator=(), opal::Solid::setLinearDamping(), and SolidData(). |
|
Pointers to the Solid's Shape data.
Definition at line 97 of file SolidData.h. Referenced by destroyShapes(), getNumShapes(), getShapeData(), and operator=(). |
|
An identifier for the Solid.
Definition at line 68 of file SolidData.h. Referenced by opal::Blueprint::addSolid(), opal::Solid::getName(), operator=(), opal::Solid::setName(), and SolidData(). |
|
The Solid's sleepiness level which determines how fast the Solid falls asleep. Definition at line 75 of file SolidData.h. Referenced by opal::Solid::getSleepiness(), operator=(), opal::Solid::setSleepiness(), opal::ODESolid::setStatic(), and SolidData(). |
|
Determines whether the Solid is sleeping.
Definition at line 71 of file SolidData.h. Referenced by opal::Solid::getData(), operator=(), and SolidData(). |
|
The Solid's transform relative to the global origin.
Definition at line 81 of file SolidData.h. Referenced by opal::Solid::getEulerXYZ(), opal::Solid::getGlobalAABB(), opal::Solid::getPosition(), opal::Solid::getQuaternion(), opal::Solid::getTransform(), opal::ODESolid::init(), opal::ODESolid::internal_updateEngineTransform(), opal::ODESolid::internal_updateOPALTransform(), operator=(), opal::Solid::setPosition(), opal::Solid::setQuaternion(), opal::ODESolid::setStatic(), opal::Solid::setTransform(), and opal::ODESolid::setupNewGeom(). |