#include <joint.h>
Inherits OneAxisJoint.
Inheritance diagram for SliderJoint:


Public Member Functions | |
| SliderJoint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis &axis1) | |
| virtual | ~SliderJoint () |
| virtual void | init (const OdeHandle &odeHandle, const OsgHandle &osgHandle, bool withVisual=true, double visualSize=0.1) |
| initialises (and creates) the joint. | |
| virtual void | update () |
| should syncronise the Ode stuff and the OSG notes (if any) | |
| virtual void | addForce1 (double t) |
| virtual double | getPosition1 () const |
| virtual double | getPosition1Rate () const |
| virtual void | setParam (int parameter, double value) |
| sets the ODE joint parameter (see ODE manual) | |
| virtual double | getParam (int parameter) const |
| return the ODE joint parameter (see ODE manual) | |
Protected Attributes | |
| OSGPrimitive * | visual |
| double | visualSize |
| OsgHandle | osgHandle |
| SliderJoint | ( | Primitive * | part1, | |
| Primitive * | part2, | |||
| const osg::Vec3 & | anchor, | |||
| const Axis & | axis1 | |||
| ) |
| ~SliderJoint | ( | ) | [virtual] |
| void addForce1 | ( | double | t | ) | [virtual] |
Implements OneAxisJoint.
| double getParam | ( | int | parameter | ) | const [virtual] |
| double getPosition1 | ( | ) | const [virtual] |
Implements OneAxisJoint.
| double getPosition1Rate | ( | ) | const [virtual] |
Implements OneAxisJoint.
| void init | ( | const OdeHandle & | odeHandle, | |
| const OsgHandle & | osgHandle, | |||
| bool | withVisual = true, |
|||
| double | visualSize = 0.1 | |||
| ) | [virtual] |
initialises (and creates) the joint.
If visual is true then the axis of the joints is also drawn as a slim cylinder. VisualSize is added to the lenght of the slider and is used for the length of the cylinder. The radius is visualSize/10
Reimplemented from Joint.
| void setParam | ( | int | parameter, | |
| double | value | |||
| ) | [virtual] |
| void update | ( | ) | [virtual] |
OSGPrimitive* visual [protected] |
double visualSize [protected] |
1.4.7