V-ART
polyaxialjoint.h
Go to the documentation of this file.
1 
5 #ifndef VART_POLYAXIALJOINT_H
6 #define VART_POLYAXIALJOINT_H
7 
8 #include "vart/joint.h"
9 #include "vart/dof.h"
10 
11 namespace VART {
16  class PolyaxialJoint : public Joint {
17  public:
19 
22 
25 
28  virtual VART::SceneNode * Copy();
29 
30  virtual ~PolyaxialJoint() {}
31  void SetFlexionTo(float value);
32  void SetAductionTo(float value);
33  void SetTwistTo(float value);
35  void Flex(float variance) { dofList.front()->Move(variance); }
36  void Adduct(float variance);
37  void Twist(float variance);
38  void AddDof(Dof* dof);
39  }; // end class declaration
40 } // end namespace
41 #endif
Base class for objects that compose a scene graph.
Definition: scenenode.h:25
Header file for V-ART class "Dof".
Representation of joints.
Definition: joint.h:34
std::list< Dof * > dofList
Definition: joint.h:118
virtual VART::SceneNode * Copy()
Returns a copy of an PolyaxialJoint. Every derived class must reimplements this method, to avoid errors with VART::SceneNode::RecursiveCopy.
void SetTwistTo(float value)
void SetAductionTo(float value)
void AddDof(Dof *dof)
Adds a Dof.
void Adduct(float variance)
void Flex(float variance)
Moves the first DOF.
Header file for V-ART class "Joint".
void Twist(float variance)
A joint with three rotational degrees of freedom.
VART::PolyaxialJoint & operator=(const VART::PolyaxialJoint &joint)
Copy the polyaxialJoint data to another PolyaxialJoint.
Degree Of Freedom - basic component of a Joint.
Definition: dof.h:28
void SetFlexionTo(float value)