This class implements a mass node with mass and inertia properties.
#include <CGELSkeletonNode.h>
Public Member Functions | |
| cGELSkeletonNode () | |
| Constructor of cGELSkeletonNode. More... | |
| ~cGELSkeletonNode () | |
| Destructor of cGELSkeletonNode. More... | |
| void | setMass (double a_mass) |
| This method sets the mass of the node. More... | |
| void | addForce (chai3d::cVector3d &a_force) |
| This method adds a force to the node. More... | |
| void | addTorque (chai3d::cVector3d &a_torque) |
| This method adds a torque to the node. More... | |
| void | setExternalForce (chai3d::cVector3d &a_force) |
| This method sets an external force to the node. More... | |
| void | setExternalTorque (chai3d::cVector3d &a_torque) |
| This method sets an external torque to the node. More... | |
| void | computeNextPose (double a_timeInterval) |
| This method update the position of the node over a time interval. More... | |
| void | applyNextPose () |
| This method updates the position and orientation of this node with the latest computed values. More... | |
| void | clearForces () |
| This method clears the current forces and torques. More... | |
| void | clearExternalForces () |
| This method clears the external forces and torques. More... | |
| void | render () |
| This method renders this node in OpenGL. More... | |
Public Attributes | |
| chai3d::cColorf | m_color |
| Color used to display nodes. More... | |
| double | m_radius |
| Radius of mass node. More... | |
| double | m_mass |
| Mass property. More... | |
| chai3d::cVector3d | m_force |
| Current force applied on node. More... | |
| chai3d::cVector3d | m_torque |
| Current torque applies on node. More... | |
| chai3d::cVector3d | m_acc |
| Instant acceleration at node. More... | |
| chai3d::cVector3d | m_angAcc |
| Instant angular acceleration at node. More... | |
| chai3d::cVector3d | m_vel |
| Instant velocity at node. More... | |
| chai3d::cVector3d | m_angVel |
| Instant angular velocity at node. More... | |
| double | m_kDampingPos |
| Linear damping. More... | |
| double | m_kDampingRot |
| Angular damping. More... | |
| double | m_inertia |
| Inertia (to be completed). More... | |
| bool | m_fixed |
| If true, then mass is fixed in space and can not move. More... | |
| bool | m_useGravity |
| If true, then gravity is enabled. More... | |
| chai3d::cVector3d | m_gravity |
| Gravity field. More... | |
| chai3d::cVector3d | m_pos |
| Position computed. More... | |
| chai3d::cMatrix3d | m_rot |
| Rotation computed. More... | |
| chai3d::cVector3d | m_nextPos |
| Next position computed. More... | |
| chai3d::cMatrix3d | m_nextRot |
| Next rotation computed. More... | |
Static Public Attributes | |
| static double | s_default_radius = 0.05 |
| Default value for node radius. More... | |
| static double | s_default_kDampingPos = 5.00 |
| Default value for linear damping. More... | |
| static double | s_default_kDampingRot = 0.1 |
| Default value for revolute damping. More... | |
| static double | s_default_mass = 0.1 |
| Default value for node mass. More... | |
| static bool | s_default_useGravity = true |
| Default value - Is gravity field enabled? More... | |
| static chai3d::cVector3d | s_default_gravity |
| Default value - Gravity field magnitude and direction. More... | |
| static bool | s_default_showFrame = true |
| Default value - Is the node reference frame displayed? More... | |
| static chai3d::cColorf | s_default_color |
| Default color used to render the node. More... | |
| cGELSkeletonNode::cGELSkeletonNode | ( | ) |
Constructor of cGELSkeletonNode.
| cGELSkeletonNode::~cGELSkeletonNode | ( | ) |
Destructor of cGELSkeletonNode.
| void cGELSkeletonNode::setMass | ( | double | a_mass | ) |
This method assigns a mass value to the node and computes its inertia accordingly (model of a sphere).
| a_mass | Mass value. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| chai3d::cColorf cGELSkeletonNode::m_color |
| double cGELSkeletonNode::m_radius |
| double cGELSkeletonNode::m_mass |
| chai3d::cVector3d cGELSkeletonNode::m_force |
| chai3d::cVector3d cGELSkeletonNode::m_torque |
| chai3d::cVector3d cGELSkeletonNode::m_acc |
| chai3d::cVector3d cGELSkeletonNode::m_angAcc |
| chai3d::cVector3d cGELSkeletonNode::m_vel |
| chai3d::cVector3d cGELSkeletonNode::m_angVel |
| double cGELSkeletonNode::m_kDampingPos |
| double cGELSkeletonNode::m_kDampingRot |
| double cGELSkeletonNode::m_inertia |
| bool cGELSkeletonNode::m_fixed |
| bool cGELSkeletonNode::m_useGravity |
| chai3d::cVector3d cGELSkeletonNode::m_gravity |
| chai3d::cVector3d cGELSkeletonNode::m_pos |
| chai3d::cMatrix3d cGELSkeletonNode::m_rot |
| chai3d::cVector3d cGELSkeletonNode::m_nextPos |
| chai3d::cMatrix3d cGELSkeletonNode::m_nextRot |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |