#include <joint.h>
Inherits Joint.
Inherited by HingeJoint, SliderJoint, and TwoAxisJoint.
Inheritance diagram for OneAxisJoint:
Public Member Functions | |
OneAxisJoint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis axis1) | |
virtual Axis | getAxis1 () const |
virtual double | getPosition1 () const =0 |
virtual double | getPosition1Rate () const =0 |
virtual int | getNumberAxes () const |
returns the number of Axes | |
virtual std::list< double > | getPositions () const |
returns the positions of all Axes | |
virtual std::list< double > | getPositionRates () const |
returns the position rates of all Axes | |
virtual int | getPositions (double *sensorarray) const |
stores the positions of all Axes into sensorarray and returns the number of written entries | |
virtual int | getPositionRates (double *sensorarray) const |
stores the position rates of all Axes into sensorarray and returns the number of written entries | |
Protected Attributes | |
Axis | axis1 |
|
|
|
|
|
returns the number of Axes
Implements Joint.
Reimplemented in TwoAxisJoint.
|
|
Implemented in HingeJoint, Hinge2Joint, UniversalJoint, and SliderJoint.
|
|
Implemented in HingeJoint, Hinge2Joint, UniversalJoint, and SliderJoint.
|
|
stores the position rates of all Axes into sensorarray and returns the number of written entries
Reimplemented from Joint.
Reimplemented in TwoAxisJoint.
|
|
returns the position rates of all Axes
Reimplemented from Joint.
Reimplemented in TwoAxisJoint.
|
|
stores the positions of all Axes into sensorarray and returns the number of written entries
Reimplemented from Joint.
Reimplemented in TwoAxisJoint.
|
|
returns the positions of all Axes
Reimplemented from Joint.
Reimplemented in TwoAxisJoint.
|
|
|