![]() |
VR-Forces 4.0.4 Class Documentation
|
DtDeadReckonUpdater is an updater that is given kinematic updates and updates a scene object with dead reckoned values based on those updates, configuration, and current simulation time. More...

Public Member Functions | |
| DtDeadReckonUpdater (DtDe &de, DtUniqueID id, bool doNotAddToMgr=false) | |
| CTOR. | |
| virtual | ~DtDeadReckonUpdater () |
| DTOR. | |
| virtual void | update (double simTime) |
| call updateSpacial() followed by updateSceneObject() | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| sets the scene object to update via the id. | |
| virtual void | setPosition (const DtVector &position) |
| Set the object's position. | |
| virtual void | setOrientation (const DtTaitBryan &ori) |
| Set the object's orientation. | |
| virtual void | setVelocity (const DtVector &velocity) |
| Set the object's velocity. | |
| virtual void | setAcceleration (const DtVector &acceleration) |
| Set the object's velocity. | |
| virtual void | setAngularVelocity (const DtVector &angularVelocity) |
| Set the object's rotational velocity. | |
| virtual void | setDeadReckoningSettings (bool deadReckonPosition, bool deadReckonVelocity, bool deadReckonOrientation) |
| Set the object's dead reckoning settings. | |
| virtual void | setSmoothingEnabled (bool enabled) |
| Turn the smoother on or off. | |
| virtual void | setSmoothingPeriod (float period) |
| Set the period for the smoother. | |
| virtual void | updateSpacial (double simulationTime) |
| Update the spacial attributes using the given simulation time. | |
| void | setMotionModel (const std::string &modelName) |
| Set which motion model the object should use. | |
| DtMotionModel * | motionModel () |
| Get the motion model. | |
Protected Attributes | |
| DtMotionModel * | myMotionModel |
| std::string | myMotionModelType |
| unsigned int | myDeadReckoningSetting |
| float | mySmoothingPeriod |
| float | mySmoothingEnabled |
DtDeadReckonUpdater is an updater that is given kinematic updates and updates a scene object with dead reckoned values based on those updates, configuration, and current simulation time.
| makVrv::DtDeadReckonUpdater::DtDeadReckonUpdater | ( | DtDe & | de, |
| DtUniqueID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrv::DtDeadReckonUpdater::~DtDeadReckonUpdater | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtDeadReckonUpdater::update | ( | double | simTime | ) | [virtual] |
call updateSpacial() followed by updateSceneObject()
Implements makVrv::DtUpdater.
| virtual void makVrv::DtDeadReckonUpdater::setSceneObject | ( | DtSceneObject * | sceneObject | ) | [virtual] |
sets the scene object to update via the id.
This override called the base implementation as well as ensuring the current motion model is updating the current models on the scene object.
Reimplemented from makVrv::DtUpdater.
| virtual void makVrv::DtDeadReckonUpdater::setPosition | ( | const DtVector & | position | ) | [virtual] |
Set the object's position.
| virtual void makVrv::DtDeadReckonUpdater::setOrientation | ( | const DtTaitBryan & | ori | ) | [virtual] |
Set the object's orientation.
| virtual void makVrv::DtDeadReckonUpdater::setVelocity | ( | const DtVector & | velocity | ) | [virtual] |
Set the object's velocity.
| virtual void makVrv::DtDeadReckonUpdater::setAcceleration | ( | const DtVector & | acceleration | ) | [virtual] |
Set the object's velocity.
| virtual void makVrv::DtDeadReckonUpdater::setAngularVelocity | ( | const DtVector & | angularVelocity | ) | [virtual] |
Set the object's rotational velocity.
| virtual void makVrv::DtDeadReckonUpdater::setDeadReckoningSettings | ( | bool | deadReckonPosition, |
| bool | deadReckonVelocity, | ||
| bool | deadReckonOrientation | ||
| ) | [virtual] |
Set the object's dead reckoning settings.
| virtual void makVrv::DtDeadReckonUpdater::setSmoothingEnabled | ( | bool | enabled | ) | [virtual] |
Turn the smoother on or off.
| virtual void makVrv::DtDeadReckonUpdater::setSmoothingPeriod | ( | float | period | ) | [virtual] |
Set the period for the smoother.
| virtual void makVrv::DtDeadReckonUpdater::updateSpacial | ( | double | simulationTime | ) | [virtual] |
Update the spacial attributes using the given simulation time.
| void makVrv::DtDeadReckonUpdater::setMotionModel | ( | const std::string & | modelName | ) |
Set which motion model the object should use.
Get the motion model.
DtMotionModel* makVrv::DtDeadReckonUpdater::myMotionModel [protected] |
std::string makVrv::DtDeadReckonUpdater::myMotionModelType [protected] |
unsigned int makVrv::DtDeadReckonUpdater::myDeadReckoningSetting [protected] |
float makVrv::DtDeadReckonUpdater::mySmoothingPeriod [protected] |
float makVrv::DtDeadReckonUpdater::mySmoothingEnabled [protected] |