My Project
Loading...
Searching...
No Matches
cGELSkeletonNode Class Reference

This class implements a mass node with mass and inertia properties.

#include <CGELSkeletonNode.h>

Public Member Functions

 cGELSkeletonNode ()
 Constructor of cGELSkeletonNode.
 
 ~cGELSkeletonNode ()
 Destructor of cGELSkeletonNode.
 
void setMass (double a_mass)
 This method sets the mass of the node.
 
void addForce (chai3d::cVector3d &a_force)
 This method adds a force to the node.
 
void addTorque (chai3d::cVector3d &a_torque)
 This method adds a torque to the node.
 
void setExternalForce (chai3d::cVector3d &a_force)
 This method sets an external force to the node.
 
void setExternalTorque (chai3d::cVector3d &a_torque)
 This method sets an external torque to the node.
 
void computeNextPose (double a_timeInterval)
 This method update the position of the node over a time interval.
 
void applyNextPose ()
 This method updates the position and orientation of this node with the latest computed values.
 
void clearForces ()
 This method clears the current forces and torques.
 
void clearExternalForces ()
 This method clears the external forces and torques.
 
void render ()
 This method renders this node in OpenGL.
 

Public Attributes

chai3d::cColorf m_color
 Color used to display nodes.
 
double m_radius
 Radius of mass node.
 
double m_mass
 Mass property.
 
chai3d::cVector3d m_force
 Current force applied on node.
 
chai3d::cVector3d m_torque
 Current torque applies on node.
 
chai3d::cVector3d m_acc
 Instant acceleration at node.
 
chai3d::cVector3d m_angAcc
 Instant angular acceleration at node.
 
chai3d::cVector3d m_vel
 Instant velocity at node.
 
chai3d::cVector3d m_angVel
 Instant angular velocity at node.
 
double m_kDampingPos
 Linear damping.
 
double m_kDampingRot
 Angular damping.
 
double m_inertia
 Inertia (to be completed).
 
bool m_fixed
 If true, then mass is fixed in space and can not move.
 
bool m_useGravity
 If true, then gravity is enabled.
 
chai3d::cVector3d m_gravity
 Gravity field.
 
chai3d::cVector3d m_pos
 Position computed.
 
chai3d::cMatrix3d m_rot
 Rotation computed.
 
chai3d::cVector3d m_nextPos
 Next position computed.
 
chai3d::cMatrix3d m_nextRot
 Next rotation computed.
 

Static Public Attributes

static double s_default_radius = 0.05
 Default value for node radius.
 
static double s_default_kDampingPos = 5.00
 Default value for linear damping.
 
static double s_default_kDampingRot = 0.1
 Default value for revolute damping.
 
static double s_default_mass = 0.1
 Default value for node mass.
 
static bool s_default_useGravity = true
 Default value - Is gravity field enabled?
 
static chai3d::cVector3d s_default_gravity
 Default value - Gravity field magnitude and direction.
 
static bool s_default_showFrame = true
 Default value - Is the node reference frame displayed?
 
static chai3d::cColorf s_default_color
 Default color used to render the node.
 

Constructor & Destructor Documentation

◆ cGELSkeletonNode()

cGELSkeletonNode::cGELSkeletonNode ( )

Constructor of cGELSkeletonNode.

◆ ~cGELSkeletonNode()

cGELSkeletonNode::~cGELSkeletonNode ( )

Destructor of cGELSkeletonNode.

Member Function Documentation

◆ setMass()

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.

◆ addForce()

void cGELSkeletonNode::addForce ( chai3d::cVector3d &  a_force)
inline

◆ addTorque()

void cGELSkeletonNode::addTorque ( chai3d::cVector3d &  a_torque)
inline

◆ setExternalForce()

void cGELSkeletonNode::setExternalForce ( chai3d::cVector3d &  a_force)
inline

◆ setExternalTorque()

void cGELSkeletonNode::setExternalTorque ( chai3d::cVector3d &  a_torque)
inline

◆ computeNextPose()

void cGELSkeletonNode::computeNextPose ( double  a_timeInterval)
inline

◆ applyNextPose()

void cGELSkeletonNode::applyNextPose ( )
inline

◆ clearForces()

void cGELSkeletonNode::clearForces ( )
inline

◆ clearExternalForces()

void cGELSkeletonNode::clearExternalForces ( )
inline

◆ render()

void cGELSkeletonNode::render ( )
inline

Member Data Documentation

◆ m_color

chai3d::cColorf cGELSkeletonNode::m_color

◆ m_radius

double cGELSkeletonNode::m_radius

◆ m_mass

double cGELSkeletonNode::m_mass

◆ m_force

chai3d::cVector3d cGELSkeletonNode::m_force

◆ m_torque

chai3d::cVector3d cGELSkeletonNode::m_torque

◆ m_acc

chai3d::cVector3d cGELSkeletonNode::m_acc

◆ m_angAcc

chai3d::cVector3d cGELSkeletonNode::m_angAcc

◆ m_vel

chai3d::cVector3d cGELSkeletonNode::m_vel

◆ m_angVel

chai3d::cVector3d cGELSkeletonNode::m_angVel

◆ m_kDampingPos

double cGELSkeletonNode::m_kDampingPos

◆ m_kDampingRot

double cGELSkeletonNode::m_kDampingRot

◆ m_inertia

double cGELSkeletonNode::m_inertia

◆ m_fixed

bool cGELSkeletonNode::m_fixed

◆ m_useGravity

bool cGELSkeletonNode::m_useGravity

◆ m_gravity

chai3d::cVector3d cGELSkeletonNode::m_gravity

◆ m_pos

chai3d::cVector3d cGELSkeletonNode::m_pos

◆ m_rot

chai3d::cMatrix3d cGELSkeletonNode::m_rot

◆ m_nextPos

chai3d::cVector3d cGELSkeletonNode::m_nextPos

◆ m_nextRot

chai3d::cMatrix3d cGELSkeletonNode::m_nextRot

◆ s_default_radius

double cGELSkeletonNode::s_default_radius = 0.05
static

◆ s_default_kDampingPos

double cGELSkeletonNode::s_default_kDampingPos = 5.00
static

◆ s_default_kDampingRot

double cGELSkeletonNode::s_default_kDampingRot = 0.1
static

◆ s_default_mass

double cGELSkeletonNode::s_default_mass = 0.1
static

◆ s_default_useGravity

bool cGELSkeletonNode::s_default_useGravity = true
static

◆ s_default_gravity

cVector3d cGELSkeletonNode::s_default_gravity
static

◆ s_default_showFrame

bool cGELSkeletonNode::s_default_showFrame = true
static

◆ s_default_color

cColorf cGELSkeletonNode::s_default_color
static

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