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

This class models an elastic link between two skeleton nodes.

#include <CGELSkeletonLink.h>

Public Member Functions

 cGELSkeletonLink (cGELSkeletonNode *a_node0, cGELSkeletonNode *a_node1)
 Constructor of cGELSkeletonLink.
 
 ~cGELSkeletonLink ()
 Destructor of cGELSkeletonLink.
 
void render ()
 This method graphically renders this skeleton link using OpenGL.
 
void computeForces ()
 This method computes the forces applied on the two mass nodes that this link connects.
 

Public Attributes

cGELSkeletonNode * m_node0
 Node 0 of current link.
 
cGELSkeletonNode * m_node1
 Node 1 of current link.
 
chai3d::cColorf m_color
 Color used to display this link.
 
double m_kSpringElongation
 Elongation spring constant.
 
double m_kSpringFlexion
 Angular spring constant.
 
double m_kSpringTorsion
 Torsional spring constant.
 
bool m_enabled
 Is link enabled.
 
chai3d::cVector3d m_nzLink01
 Linear damping constant.
 
chai3d::cVector3d m_wzLink01
 Initial link vector between node 0 and node 1 in world coordinates.
 
chai3d::cVector3d m_nzLink10
 Initial link vector between node 1 and node 0 in node1 reference frame.
 
chai3d::cVector3d m_wzLink10
 Initial link vector between node 1 and node 0 in world coordinates.
 
chai3d::cVector3d m_wLink01
 Current link between node 0 and node 1 in world coordinates.
 
chai3d::cVector3d m_wLink10
 Current link between node 1 and node 0 in world coordinates.
 
chai3d::cVector3d m_torsionAxisAngle
 Torsional angle.
 
chai3d::cVector3d m_A0
 Reference vector frame A on sphere 0 (local coordinates).
 
chai3d::cVector3d m_wA0
 Reference vector frame A on sphere 0 (world coordinates).
 
chai3d::cVector3d m_B0
 Reference vector frame B on sphere 0 (local coordinates).
 
chai3d::cVector3d m_wB0
 Reference vector frame B on sphere 0 (world coordinates).
 
chai3d::cVector3d m_A1
 Reference vector frame A on sphere 1 (local coordinates).
 
chai3d::cVector3d m_wA1
 Reference vector frame A on sphere 1 (world coordinates).
 
double m_length0
 Initial length of link.
 
double m_length
 Current length of link.
 

Static Public Attributes

static double s_default_kSpringElongation = 100.0
 Default property - linear stiffness.
 
static double s_default_kSpringFlexion = 0.1
 Default property - angular stiffness.
 
static double s_default_kSpringTorsion = 0.1
 Default property - torsional stiffness.
 
static chai3d::cColorf s_default_color
 Default property - color property.
 

Constructor & Destructor Documentation

◆ cGELSkeletonLink()

cGELSkeletonLink::cGELSkeletonLink ( cGELSkeletonNode *  a_node0,
cGELSkeletonNode *  a_node1 
)

Constructor of cGELSkeletonLink.

Parameters
a_node0Node 0.
a_node1Node 1.

◆ ~cGELSkeletonLink()

cGELSkeletonLink::~cGELSkeletonLink ( )

Destructor of cGELSkeletonLink.

Member Function Documentation

◆ render()

void cGELSkeletonLink::render ( )
inline

◆ computeForces()

void cGELSkeletonLink::computeForces ( )
inline

Member Data Documentation

◆ m_node0

cGELSkeletonNode* cGELSkeletonLink::m_node0

◆ m_node1

cGELSkeletonNode* cGELSkeletonLink::m_node1

◆ m_color

chai3d::cColorf cGELSkeletonLink::m_color

◆ m_kSpringElongation

double cGELSkeletonLink::m_kSpringElongation

◆ m_kSpringFlexion

double cGELSkeletonLink::m_kSpringFlexion

◆ m_kSpringTorsion

double cGELSkeletonLink::m_kSpringTorsion

◆ m_enabled

bool cGELSkeletonLink::m_enabled

◆ m_nzLink01

chai3d::cVector3d cGELSkeletonLink::m_nzLink01

Angular damping constant. Torsion damping constant. Initial link vector between node 0 and node 1 in node0 reference frame.

◆ m_wzLink01

chai3d::cVector3d cGELSkeletonLink::m_wzLink01

◆ m_nzLink10

chai3d::cVector3d cGELSkeletonLink::m_nzLink10

◆ m_wzLink10

chai3d::cVector3d cGELSkeletonLink::m_wzLink10

◆ m_wLink01

chai3d::cVector3d cGELSkeletonLink::m_wLink01

◆ m_wLink10

chai3d::cVector3d cGELSkeletonLink::m_wLink10

◆ m_torsionAxisAngle

chai3d::cVector3d cGELSkeletonLink::m_torsionAxisAngle

◆ m_A0

chai3d::cVector3d cGELSkeletonLink::m_A0

◆ m_wA0

chai3d::cVector3d cGELSkeletonLink::m_wA0

◆ m_B0

chai3d::cVector3d cGELSkeletonLink::m_B0

◆ m_wB0

chai3d::cVector3d cGELSkeletonLink::m_wB0

◆ m_A1

chai3d::cVector3d cGELSkeletonLink::m_A1

◆ m_wA1

chai3d::cVector3d cGELSkeletonLink::m_wA1

◆ m_length0

double cGELSkeletonLink::m_length0

◆ m_length

double cGELSkeletonLink::m_length

◆ s_default_kSpringElongation

double cGELSkeletonLink::s_default_kSpringElongation = 100.0
static

◆ s_default_kSpringFlexion

double cGELSkeletonLink::s_default_kSpringFlexion = 0.1
static

◆ s_default_kSpringTorsion

double cGELSkeletonLink::s_default_kSpringTorsion = 0.1
static

◆ s_default_color

cColorf cGELSkeletonLink::s_default_color
static

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