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. More... | |
| ~cGELSkeletonLink () | |
| Destructor of cGELSkeletonLink. More... | |
| void | render () |
| This method graphically renders this skeleton link using OpenGL. More... | |
| void | computeForces () |
| This method computes the forces applied on the two mass nodes that this link connects. More... | |
Public Attributes | |
| cGELSkeletonNode * | m_node0 |
| Node 0 of current link. More... | |
| cGELSkeletonNode * | m_node1 |
| Node 1 of current link. More... | |
| chai3d::cColorf | m_color |
| Color used to display this link. More... | |
| double | m_kSpringElongation |
| Elongation spring constant. More... | |
| double | m_kSpringFlexion |
| Angular spring constant. More... | |
| double | m_kSpringTorsion |
| Torsional spring constant. More... | |
| bool | m_enabled |
| Is link enabled. More... | |
| chai3d::cVector3d | m_nzLink01 |
| Linear damping constant. More... | |
| chai3d::cVector3d | m_wzLink01 |
| Initial link vector between node 0 and node 1 in world coordinates. More... | |
| chai3d::cVector3d | m_nzLink10 |
| Initial link vector between node 1 and node 0 in node1 reference frame. More... | |
| chai3d::cVector3d | m_wzLink10 |
| Initial link vector between node 1 and node 0 in world coordinates. More... | |
| chai3d::cVector3d | m_wLink01 |
| Current link between node 0 and node 1 in world coordinates. More... | |
| chai3d::cVector3d | m_wLink10 |
| Current link between node 1 and node 0 in world coordinates. More... | |
| chai3d::cVector3d | m_torsionAxisAngle |
| Torsional angle. More... | |
| chai3d::cVector3d | m_A0 |
| Reference vector frame A on sphere 0 (local coordinates). More... | |
| chai3d::cVector3d | m_wA0 |
| Reference vector frame A on sphere 0 (world coordinates). More... | |
| chai3d::cVector3d | m_B0 |
| Reference vector frame B on sphere 0 (local coordinates). More... | |
| chai3d::cVector3d | m_wB0 |
| Reference vector frame B on sphere 0 (world coordinates). More... | |
| chai3d::cVector3d | m_A1 |
| Reference vector frame A on sphere 1 (local coordinates). More... | |
| chai3d::cVector3d | m_wA1 |
| Reference vector frame A on sphere 1 (world coordinates). More... | |
| double | m_length0 |
| Initial length of link. More... | |
| double | m_length |
| Current length of link. More... | |
Static Public Attributes | |
| static double | s_default_kSpringElongation = 100.0 |
| Default property - linear stiffness. More... | |
| static double | s_default_kSpringFlexion = 0.1 |
| Default property - angular stiffness. More... | |
| static double | s_default_kSpringTorsion = 0.1 |
| Default property - torsional stiffness. More... | |
| static chai3d::cColorf | s_default_color |
| Default property - color property. More... | |
| cGELSkeletonLink::cGELSkeletonLink | ( | cGELSkeletonNode * | a_node0, |
| cGELSkeletonNode * | a_node1 | ||
| ) |
Constructor of cGELSkeletonLink.
| a_node0 | Node 0. |
| a_node1 | Node 1. |
| cGELSkeletonLink::~cGELSkeletonLink | ( | ) |
Destructor of cGELSkeletonLink.
|
inline |
|
inline |
| cGELSkeletonNode* cGELSkeletonLink::m_node0 |
| cGELSkeletonNode* cGELSkeletonLink::m_node1 |
| chai3d::cColorf cGELSkeletonLink::m_color |
| double cGELSkeletonLink::m_kSpringElongation |
| double cGELSkeletonLink::m_kSpringFlexion |
| double cGELSkeletonLink::m_kSpringTorsion |
| bool cGELSkeletonLink::m_enabled |
| chai3d::cVector3d cGELSkeletonLink::m_nzLink01 |
Angular damping constant. Torsion damping constant. Initial link vector between node 0 and node 1 in node0 reference frame.
| chai3d::cVector3d cGELSkeletonLink::m_wzLink01 |
| chai3d::cVector3d cGELSkeletonLink::m_nzLink10 |
| chai3d::cVector3d cGELSkeletonLink::m_wzLink10 |
| chai3d::cVector3d cGELSkeletonLink::m_wLink01 |
| chai3d::cVector3d cGELSkeletonLink::m_wLink10 |
| chai3d::cVector3d cGELSkeletonLink::m_torsionAxisAngle |
| chai3d::cVector3d cGELSkeletonLink::m_A0 |
| chai3d::cVector3d cGELSkeletonLink::m_wA0 |
| chai3d::cVector3d cGELSkeletonLink::m_B0 |
| chai3d::cVector3d cGELSkeletonLink::m_wB0 |
| chai3d::cVector3d cGELSkeletonLink::m_A1 |
| chai3d::cVector3d cGELSkeletonLink::m_wA1 |
| double cGELSkeletonLink::m_length0 |
| double cGELSkeletonLink::m_length |
|
static |
|
static |
|
static |
|
static |