#include <JointData.h>
Public Member Functions | |
OPAL_DECL | JointData () |
OPAL_DECL | JointData (const JointData &data) |
virtual OPAL_DECL | ~JointData () |
OPAL_DECL void | operator= (const JointData &data) |
virtual OPAL_DECL void OPAL_CALL | setType (JointType type) |
virtual OPAL_DECL JointType OPAL_CALL | getType () const |
Public Attributes | |
bool | enabled |
std::string | name |
Solid * | solid0 |
Solid * | solid1 |
int | internal_solid0Index |
int | internal_solid1Index |
std::string | solid0BlueprintRefName |
std::string | solid1BlueprintRefName |
Point3r | anchor |
JointAxis | axis [3] |
JointBreakMode | breakMode |
real | breakThresh |
real | accumThresh |
real | accumDamage |
bool | contactsEnabled |
bool | isBroken |
Protected Attributes | |
JointType | mType |
Definition at line 82 of file JointData.h.
|
|
Copy constructor.
Definition at line 111 of file JointData.h. |
|
Definition at line 116 of file JointData.h. |
|
Returns the Joint's type.
Definition at line 153 of file JointData.h. Referenced by opal::ODEJoint::attachODEBodies(), opal::ODEJoint::getAnchor(), opal::ODEJoint::getAngle(), opal::ODEJoint::getAxis(), opal::ODEJoint::getDistance(), opal::Joint::getType(), opal::ODEJoint::getVelocity(), opal::ODEJoint::init(), opal::ODEJoint::internal_getJointID(), opal::ODEJoint::setAnchor(), opal::ODEJoint::setAxis(), opal::ODEJoint::setJointParam(), and opal::ODEJoint::setLimitHardness(). |
|
Makes a deep copy.
Definition at line 120 of file JointData.h. References anchor, axis, enabled, internal_solid0Index, internal_solid1Index, mType, name, solid0, solid0BlueprintRefName, solid1, and solid1BlueprintRefName. |
|
Sets the Joint's type.
Definition at line 147 of file JointData.h. |
|
The amount of accumulated damage.
Definition at line 200 of file JointData.h. Referenced by opal::Joint::getAccumulatedDamage(), JointData(), opal::Joint::repairAccumDamage(), and opal::Joint::updateDamage(). |
|
Force/torque exceeding this adds to accumulated damage.
Definition at line 197 of file JointData.h. Referenced by opal::Joint::getAccumulatedThresh(), JointData(), opal::Joint::setBreakParams(), and opal::Joint::updateDamage(). |
|
The anchor point for this Joint. This is not used for every Joint type. Definition at line 184 of file JointData.h. Referenced by JointData(), operator=(), and opal::Joint::setAnchor(). |
|
The axes that describe the Joint's degrees of freedom. Not all axes are used for every Joint type. Definition at line 188 of file JointData.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), opal::Joint::areLimitsEnabled(), opal::Joint::getData(), opal::Joint::getHighLimit(), opal::Joint::getLimitBounciness(), opal::Joint::getLimitHardness(), opal::Joint::getLowLimit(), JointData(), operator=(), opal::Joint::setAxis(), opal::Joint::setLimitBounciness(), opal::Joint::setLimitHardness(), opal::ODEJoint::setLimitRange(), opal::Joint::setLimitRange(), opal::ODEJoint::setLimitsEnabled(), and opal::Joint::setLimitsEnabled(). |
|
Determines how damage is handled.
Definition at line 191 of file JointData.h. Referenced by opal::ODEJoint::calcStress(), opal::Joint::getBreakingMode(), JointData(), opal::Joint::setBreakParams(), and opal::Joint::updateDamage(). |
|
Joint breaks if force/torque exceeds this value.
Definition at line 194 of file JointData.h. Referenced by opal::Joint::getBreakThresh(), JointData(), opal::Joint::setBreakParams(), and opal::Joint::updateDamage(). |
|
Determines whether Solids connected by this Joint should make contacts when they collide. If multiple Joints connect the same two Solids, each with different contactsEnabled settings, the behavior is undefined. Definition at line 206 of file JointData.h. Referenced by opal::Joint::areContactsEnabled(), JointData(), and opal::Joint::setContactsEnabled(). |
|
Determines whether the Joint is enabled.
Definition at line 159 of file JointData.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), opal::ODEJoint::filterSolidForStaticness(), opal::ODEJoint::internal_update(), opal::Joint::isEnabled(), JointData(), operator=(), and opal::Joint::setEnabled(). |
|
Internal data used for Blueprint instantiation.
Definition at line 171 of file JointData.h. Referenced by JointData(), and operator=(). |
|
Internal data used for Blueprint instantiation.
Definition at line 174 of file JointData.h. Referenced by JointData(), and operator=(). |
|
If true, the joint is broken.
Definition at line 212 of file JointData.h. Referenced by opal::Joint::isBroken(), JointData(), and opal::Joint::updateDamage(). |
|
The Joint type.
Definition at line 216 of file JointData.h. Referenced by JointData(), and operator=(). |
|
An identifier for the Joint.
Definition at line 162 of file JointData.h. Referenced by opal::Blueprint::addJoint(), opal::Joint::getName(), JointData(), operator=(), and opal::Joint::setName(). |
|
Pointer to the Joint's Solid0.
Definition at line 165 of file JointData.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), opal::Joint::getSolid0(), opal::Joint::internal_dependsOnSolid(), JointData(), operator=(), opal::ODEJoint::setEnabled(), opal::Joint::setSolids(), and opal::Joint::wakeSolids(). |
|
String used for for intra-Blueprint references.
Definition at line 177 of file JointData.h. Referenced by JointData(), and operator=(). |
|
Pointer to the Joint's Solid1.
Definition at line 168 of file JointData.h. Referenced by opal::Joint::addForce(), opal::Joint::addTorque(), opal::Joint::getSolid1(), opal::Joint::internal_dependsOnSolid(), JointData(), operator=(), opal::ODEJoint::setEnabled(), opal::Joint::setSolids(), and opal::Joint::wakeSolids(). |
|
String used for for intra-Blueprint references.
Definition at line 180 of file JointData.h. Referenced by JointData(), and operator=(). |