V-ART
biaxialjoint.h
Go to the documentation of this file.
1 
5 #ifndef VART_BIAXIALJOINT_H
6 #define VART_BIAXIALJOINT_H
7 
8 #include "vart/dof.h"
9 #include "vart/joint.h"
10 
11 namespace VART {
16  class BiaxialJoint : public Joint {
17  public:
21  BiaxialJoint();
22  BiaxialJoint(const VART::BiaxialJoint& joint);
24 
27  virtual VART::SceneNode * Copy();
28 
29  //~ BiaxialJoint( Joint *parent );
30  //~ BiaxialJoint( Joint *parent, Dof *dof1, Dof *dof2 );
31 
32  virtual ~BiaxialJoint();
33 
37  void SetFlexionTo( float value );
38 
42  void Flex(float variance) { dofList.front()->Move(variance); }
43 
46  void SetAductionTo( float value );
47 
51  void SetAdductionTo( float value );
52 
56  void Adduct(float variance);
57 
63  void AddDof(Dof* dof);
64  private:
65  }; // end class declaration
66 
68  class CondylarJoint : public BiaxialJoint {
69  };
70 
72  class SaddlelJoint : public BiaxialJoint {
73  };
74 
76  class EllipsoidJoint : public BiaxialJoint {
77  };
78 } // end namespace
79 #endif
void SetAductionTo(float value)
Sets the second DOF.
VART::BiaxialJoint & operator=(const VART::BiaxialJoint &joint)
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
void SetFlexionTo(float value)
Sets the first DOF.
void Flex(float variance)
Moves the first DOF.
Definition: biaxialjoint.h:42
virtual VART::SceneNode * Copy()
Returns a copy of an biaxialJoint. Every derived class must reimplements this method, to avoid errors with VART::SceneNode::RecursiveCopy.
void Adduct(float variance)
Moves the second DOF.
FixMe: This class is not implementated yet.
Definition: biaxialjoint.h:68
Header file for V-ART class "Joint".
A joint with two rotational degrees of freedom.
Definition: biaxialjoint.h:16
virtual ~BiaxialJoint()
FixMe: This class is not implementated yet.
Definition: biaxialjoint.h:72
FixMe: This class is not implementated yet.
Definition: biaxialjoint.h:76
void SetAdductionTo(float value)
Sets the second DOF.
Degree Of Freedom - basic component of a Joint.
Definition: dof.h:28
void AddDof(Dof *dof)
Add a DOF to the joint.
BiaxialJoint()
Creates an uninitialized biaxial (2 DOFs) joint.