![]() |
VR-Forces 4.0.4 Class Documentation
|
The base motion model class. More...

Public Member Functions | |
| DtMotionModel () | |
| virtual | ~DtMotionModel () |
| virtual void | updateMotion (double dtTime)=0 |
| virtual void | modelAdded (DtModel *)=0 |
| Called whenever a model is added. | |
| virtual void | modelRemoved (DtModel *)=0 |
| Called whenever a model is removed. | |
| virtual void | setLocation (const DtVector &loc, DtTime curTime)=0 |
| Set absolute location. | |
| virtual const DtVector & | approxLocation (DtTime curTime) const =0 |
| Get the approximated (i.e. | |
| virtual void | setVelocity (const DtVector &vel, DtTime curTime)=0 |
| Set absolute velocity. | |
| virtual const DtVector & | approxVelocity (DtTime curTime) const =0 |
| Get the approximated (i.e. | |
| virtual void | setOrientation (const DtTaitBryan &ori, DtTime curTime)=0 |
| Set absolute orientation. | |
| virtual const DtTaitBryan & | approxEuler (DtTime curTime) const =0 |
| Get the approximated (i.e. | |
| virtual void | setAcceleration (const DtVector &acc, DtTime curTime)=0 |
| Set/Get absolute acceleration. | |
| virtual const DtVector & | acceleration (DtTime curTime) const =0 |
| virtual void | setRotationalVelocity (const DtVector &vel, DtTime curTime)=0 |
| Set/Get absolute rotational velocity. | |
| virtual const DtVector & | rotationalVelocity (DtTime curTime) const =0 |
| virtual void | setSmoothPeriod (float period)=0 |
| Set the smoothing period. | |
| virtual void | setSmoothingEnabled (bool enabled)=0 |
| Enable or disable smoothing. | |
| virtual void | setAlgorithm (DtDeadReckonTypes alg)=0 |
| Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values. | |
| virtual DtDeadReckonTypes | algorithm () const =0 |
| virtual DtMotionModel * | clone (double time)=0 |
The base motion model class.
| virtual makVrv::DtMotionModel::~DtMotionModel | ( | ) | [virtual] |
| virtual void makVrv::DtMotionModel::updateMotion | ( | double | dtTime | ) | [pure virtual] |
| virtual void makVrv::DtMotionModel::modelAdded | ( | DtModel * | ) | [pure virtual] |
Called whenever a model is added.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >, and makVrv::DtDiGuyMotionModel.
| virtual void makVrv::DtMotionModel::modelRemoved | ( | DtModel * | ) | [pure virtual] |
Called whenever a model is removed.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >, and makVrv::DtDiGuyMotionModel.
| virtual void makVrv::DtMotionModel::setLocation | ( | const DtVector & | loc, |
| DtTime | curTime | ||
| ) | [pure virtual] |
Set absolute location.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual const DtVector& makVrv::DtMotionModel::approxLocation | ( | DtTime | curTime | ) | const [pure virtual] |
Get the approximated (i.e.
dead-reckoned for base DtDeadReckoner) location at the specified time.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual void makVrv::DtMotionModel::setVelocity | ( | const DtVector & | vel, |
| DtTime | curTime | ||
| ) | [pure virtual] |
Set absolute velocity.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual const DtVector& makVrv::DtMotionModel::approxVelocity | ( | DtTime | curTime | ) | const [pure virtual] |
Get the approximated (i.e.
dead-reckoned for base DtDeadReckoner) velocity at the specified time.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual void makVrv::DtMotionModel::setOrientation | ( | const DtTaitBryan & | ori, |
| DtTime | curTime | ||
| ) | [pure virtual] |
Set absolute orientation.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual const DtTaitBryan& makVrv::DtMotionModel::approxEuler | ( | DtTime | curTime | ) | const [pure virtual] |
Get the approximated (i.e.
dead-reckoned for base DtDeadReckoner) orientation at the specified time.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual void makVrv::DtMotionModel::setAcceleration | ( | const DtVector & | acc, |
| DtTime | curTime | ||
| ) | [pure virtual] |
Set/Get absolute acceleration.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual const DtVector& makVrv::DtMotionModel::acceleration | ( | DtTime | curTime | ) | const [pure virtual] |
| virtual void makVrv::DtMotionModel::setRotationalVelocity | ( | const DtVector & | vel, |
| DtTime | curTime | ||
| ) | [pure virtual] |
Set/Get absolute rotational velocity.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual const DtVector& makVrv::DtMotionModel::rotationalVelocity | ( | DtTime | curTime | ) | const [pure virtual] |
| virtual void makVrv::DtMotionModel::setSmoothPeriod | ( | float | period | ) | [pure virtual] |
Set the smoothing period.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual void makVrv::DtMotionModel::setSmoothingEnabled | ( | bool | enabled | ) | [pure virtual] |
Enable or disable smoothing.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual void makVrv::DtMotionModel::setAlgorithm | ( | DtDeadReckonTypes | alg | ) | [pure virtual] |
Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values.
Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.
| virtual DtDeadReckonTypes makVrv::DtMotionModel::algorithm | ( | ) | const [pure virtual] |
| virtual DtMotionModel* makVrv::DtMotionModel::clone | ( | double | time | ) | [pure virtual] |