cGELSkeletonNode Class Reference

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...
 

Constructor & Destructor Documentation

cGELSkeletonNode::cGELSkeletonNode ( )

Constructor of cGELSkeletonNode.

cGELSkeletonNode::~cGELSkeletonNode ( )

Destructor of cGELSkeletonNode.

Member Function Documentation

void cGELSkeletonNode::setMass ( double  a_mass)

This method assigns a mass value to the node and computes its inertia accordingly (model of a sphere).

Parameters
a_massMass value.
void cGELSkeletonNode::addForce ( chai3d::cVector3d &  a_force)
inline
void cGELSkeletonNode::addTorque ( chai3d::cVector3d &  a_torque)
inline
void cGELSkeletonNode::setExternalForce ( chai3d::cVector3d &  a_force)
inline
void cGELSkeletonNode::setExternalTorque ( chai3d::cVector3d &  a_torque)
inline
void cGELSkeletonNode::computeNextPose ( double  a_timeInterval)
inline
void cGELSkeletonNode::applyNextPose ( )
inline
void cGELSkeletonNode::clearForces ( )
inline
void cGELSkeletonNode::clearExternalForces ( )
inline
void cGELSkeletonNode::render ( )
inline

Member Data Documentation

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
double cGELSkeletonNode::s_default_radius = 0.05
static
double cGELSkeletonNode::s_default_kDampingPos = 5.00
static
double cGELSkeletonNode::s_default_kDampingRot = 0.1
static
double cGELSkeletonNode::s_default_mass = 0.1
static
bool cGELSkeletonNode::s_default_useGravity = true
static
cVector3d cGELSkeletonNode::s_default_gravity
static
bool cGELSkeletonNode::s_default_showFrame = true
static
cColorf cGELSkeletonNode::s_default_color
static

The documentation for this class was generated from the following files: