16 this->operator=(joint);
21 this->Joint::operator=(joint);
41 ptrFirstDof->
MoveTo(value);
46 cerr <<
"Warning: VART::BiaxialJoint::SetAductionTo is deprecated.\n";
47 SetAdductionTo(value);
52 assert(GetNumDofs() == 2);
53 list<VART::Dof*>::iterator iter = dofList.begin();
56 ptrSecondDof->
MoveTo(value);
61 assert(GetNumDofs() == 2);
62 list<VART::Dof*>::iterator iter = dofList.begin();
65 ptrSecondDof->
Move(variance);
70 assert(GetNumDofs() < 2);
73 if (GetNumDofs() == 2) MakeLim();
void SetAductionTo(float value)
Sets the second DOF.
VART::BiaxialJoint & operator=(const VART::BiaxialJoint &joint)
Base class for objects that compose a scene graph.
Representation of joints.
void SetFlexionTo(float value)
Sets the first DOF.
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.
virtual Dof * AddDof(const Point4D &vec, const Point4D &pos, float min, float max)
Adds a Dof.
Header file for V-ART class "BiaxialJoint".
A joint with two rotational degrees of freedom.
virtual void CopyDofListFrom(VART::Joint &joint)
Copy the dofList atribute from an joint, setting the ownerJoint atribute of copied dof to 'this' join...
void MoveTo(float pos)
Sets DOF's current position.
void Move(float variance)
Changes DOF.
void SetAdductionTo(float value)
Sets the second DOF.
Degree Of Freedom - basic component of a Joint.
void AddDof(Dof *dof)
Add a DOF to the joint.
BiaxialJoint()
Creates an uninitialized biaxial (2 DOFs) joint.