45 #ifndef CGELSkeletonLinkH 46 #define CGELSkeletonLinkH 101 glColor4fv( (
const float *)&
m_color);
130 if (
m_length < 0.000001) {
return; }
157 if (torqueMag0 > 0.0001)
167 if (torqueMag1 > 0.0001)
cGELSkeletonNode * m_node1
Node 1 of current link.
Definition: CGELSkeletonLink.h:217
chai3d::cVector3d m_wLink01
Current link between node 0 and node 1 in world coordinates.
Definition: CGELSkeletonLink.h:277
void mulr(const cMatrix3d &a_matrix, cMatrix3d &a_result) const
void computeForces()
This method computes the forces applied on the two mass nodes that this link connects.
Definition: CGELSkeletonLink.h:116
chai3d::cVector3d m_wA1
Reference vector frame A on sphere 1 (world coordinates).
Definition: CGELSkeletonLink.h:301
static chai3d::cColorf s_default_color
Default property - color property.
Definition: CGELSkeletonLink.h:326
~cGELSkeletonLink()
Destructor of cGELSkeletonLink.
Definition: CGELSkeletonLink.cpp:129
void crossr(const cVector3d &a_vector, cVector3d &a_result) const
double m_length
Current length of link.
Definition: CGELSkeletonLink.h:307
cVector3d cSub(const cVector3d &a_vector1, const cVector3d &a_vector2)
void mulr(const double &a_scalar, cVector3d &a_result) const
This class implements a mass node with mass and inertia properties.
Definition: CGELSkeletonNode.h:69
void addForce(chai3d::cVector3d &a_force)
This method adds a force to the node.
Definition: CGELSkeletonNode.h:94
chai3d::cVector3d m_nzLink01
Linear damping constant.
Definition: CGELSkeletonLink.h:265
This class models an elastic link between two skeleton nodes.
Definition: CGELSkeletonLink.h:71
double m_kSpringElongation
Elongation spring constant.
Definition: CGELSkeletonLink.h:237
cGELSkeletonNode * m_node0
Node 0 of current link.
Definition: CGELSkeletonLink.h:214
chai3d::cVector3d m_nzLink10
Initial link vector between node 1 and node 0 in node1 reference frame.
Definition: CGELSkeletonLink.h:271
cVector3d cMul(const double &a_value, const cVector3d &a_vector)
bool m_enabled
Is link enabled.
Definition: CGELSkeletonLink.h:246
static double s_default_kSpringFlexion
Default property - angular stiffness.
Definition: CGELSkeletonLink.h:320
cVector3d cNormalize(const cVector3d &a_vector)
chai3d::cVector3d m_A1
Reference vector frame A on sphere 1 (local coordinates).
Definition: CGELSkeletonLink.h:298
double m_kSpringTorsion
Torsional spring constant.
Definition: CGELSkeletonLink.h:243
chai3d::cVector3d m_pos
Position computed.
Definition: CGELSkeletonNode.h:282
chai3d::cVector3d m_wA0
Reference vector frame A on sphere 0 (world coordinates).
Definition: CGELSkeletonLink.h:289
chai3d::cVector3d m_wB0
Reference vector frame B on sphere 0 (world coordinates).
Definition: CGELSkeletonLink.h:295
chai3d::cVector3d m_A0
Reference vector frame A on sphere 0 (local coordinates).
Definition: CGELSkeletonLink.h:286
double m_kSpringFlexion
Angular spring constant.
Definition: CGELSkeletonLink.h:240
static double s_default_kSpringElongation
Default property - linear stiffness.
Definition: CGELSkeletonLink.h:317
chai3d::cMatrix3d m_rot
Rotation computed.
Definition: CGELSkeletonNode.h:285
chai3d::cVector3d m_B0
Reference vector frame B on sphere 0 (local coordinates).
Definition: CGELSkeletonLink.h:292
cVector3d cCross(const cVector3d &a_vector1, const cVector3d &a_vector2)
chai3d::cColorf m_color
Color used to display this link.
Definition: CGELSkeletonLink.h:227
chai3d::cVector3d m_wzLink10
Initial link vector between node 1 and node 0 in world coordinates.
Definition: CGELSkeletonLink.h:274
double m_length0
Initial length of link.
Definition: CGELSkeletonLink.h:304
double cAngle(const cVector3d &a_vector1, const cVector3d &a_vector2)
chai3d::cVector3d m_wLink10
Current link between node 1 and node 0 in world coordinates.
Definition: CGELSkeletonLink.h:280
cGELSkeletonLink(cGELSkeletonNode *a_node0, cGELSkeletonNode *a_node1)
Constructor of cGELSkeletonLink.
Definition: CGELSkeletonLink.cpp:71
chai3d::cVector3d m_wzLink01
Initial link vector between node 0 and node 1 in world coordinates.
Definition: CGELSkeletonLink.h:268
static double s_default_kSpringTorsion
Default property - torsional stiffness.
Definition: CGELSkeletonLink.h:323
void addTorque(chai3d::cVector3d &a_torque)
This method adds a torque to the node.
Definition: CGELSkeletonNode.h:100
Implementation of a skeleton mass node.
void render()
This method graphically renders this skeleton link using OpenGL.
Definition: CGELSkeletonLink.h:98
chai3d::cVector3d m_torsionAxisAngle
Torsional angle.
Definition: CGELSkeletonLink.h:283