![]() |
VR-Forces 4.1.1 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 suppressTick=false) | |
| CTOR. | |
| virtual | ~DtDeadReckonUpdater () |
| DTOR. | |
| virtual void | update (DtTime tNow) |
| 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 | setPosition (const DtVector &position, double time) |
| virtual void | setOrientation (const DtTaitBryan &ori) |
| Set the object's orientation. | |
| virtual void | setOrientation (const DtTaitBryan &ori, double time) |
| virtual void | setVelocity (const DtVector &velocity) |
| Set the object's velocity. | |
| virtual void | setVelocity (const DtVector &velocity, double time) |
| virtual void | setAcceleration (const DtVector &acceleration) |
| Set the object's velocity. | |
| virtual void | setAcceleration (const DtVector &acceleration, double time) |
| virtual void | setAngularVelocity (const DtVector &angularVelocity) |
| Set the object's rotational velocity. | |
| virtual void | setAngularVelocity (const DtVector &angularVelocity, double time) |
| 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 (DtTime tNow) |
| 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. | |
| virtual void | setUseAbsoluteTimeStamping (bool) |
| Sets whether or not to use absolute time stamping (default is false). | |
| bool | useAbsoluteTimeStamping () const |
| virtual const DtVector & | approxLocation (DtTime curTime) const |
| Because of time stamping, use these routines to get values from the motion model. | |
| virtual const DtVector & | approxVelocity (DtTime curTime) const |
| Get the approximated (i.e. | |
| virtual const DtTaitBryan & | approxEuler (DtTime curTime) const |
| Get the approximated (i.e. | |
| virtual const DtVector & | acceleration (DtTime curTime) const |
| virtual const DtVector & | rotationalVelocity (DtTime curTime) const |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false) | |
| CTOR. | |
| virtual | ~DtSceneObjectUpdater () |
| Virtual DTOR. | |
| virtual bool | needsUpdate (DtTime tNow) |
| The check function called by DtTickableManager to verify if an update is required. | |
| virtual DtTime | lastUpdateTime () const |
| Get the time-stamp of the last update. | |
| DtSceneObject * | findSceneObject () |
| Get the current scene object for this updater. | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. | |
| virtual void | setUpdaterPosition (int vtx, const DtVector &pos) |
| Set the position of a scene object vertex. | |
| virtual const DtVector & | updaterPosition (int vtx) const |
| Get the position of a scene object vertex. | |
| virtual void | setUpdaterOrientation (int vtx, const DtTaitBryan &ori) |
| Set the orientation of a scene object vertex. | |
| virtual const DtTaitBryan & | updaterOrientation (int vtx) const |
| Get the orientation of a scene object vertex. | |
| void | updateSceneObject (DtTime tNow) |
| Update the scene object position and orientation at each vertex and set the last updated time-stamp. | |
| virtual void | terrainScaleTransformsIfNeeded () |
| Scales the transforms if the terrain scaling flag is set. | |
Protected Attributes | |
| DtMotionModel * | myMotionModel |
| std::string | myMotionModelType |
| unsigned int | myDeadReckoningSetting |
| float | mySmoothingPeriod |
| float | mySmoothingEnabled |
| bool | myUseAbsoluteTimeStamping |
Protected Attributes inherited from makVrv::DtSceneObjectUpdater | |
| DtDe & | myDe |
| The display engine. | |
| DtUniqueID | myUniqueId |
| This distributed object's unique identifier. | |
| DtSceneObject * | mySceneObject |
| A pointer to the current scene object being updated. | |
| DtTime | myLastUpdateTime |
| The last time stamp when the updateSceneObject() was called. | |
| DtSceneObject::TransformList | myTransforms |
| Local copy of the vertex positions and orientations. | |
| const DtDeSharedState & | myDeSharedState |
| This is kept to make terrain scale updating cheaper ( by one virtual function call ). | |
| bool | myInManager |
| If tick was suppressed, then this updater is not on the tickableManager. | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signal< void(const DtUniqueID &) > | signal_updaterToBeDeleted |
| Signal that this updater is being destroyed. | |
Protected Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
| Signal that this updater is being destroyed. | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager=NULL) | |
| CTOR. | |
| virtual | ~DtTickable () |
| Virtual DTOR. | |
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 | suppressTick = false |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
call updateSpacial() followed by updateSceneObject()
Implements makVrv::DtSceneObjectUpdater.
|
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::DtSceneObjectUpdater.
|
virtual |
Set the object's position.
|
virtual |
|
virtual |
Set the object's orientation.
|
virtual |
|
virtual |
Set the object's velocity.
|
virtual |
|
virtual |
Set the object's velocity.
|
virtual |
|
virtual |
Set the object's rotational velocity.
|
virtual |
|
virtual |
Set the object's dead reckoning settings.
|
virtual |
Turn the smoother on or off.
|
virtual |
Set the period for the smoother.
|
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.
| DtMotionModel* makVrv::DtDeadReckonUpdater::motionModel | ( | ) |
Get the motion model.
|
virtual |
Sets whether or not to use absolute time stamping (default is false).
If true, when the update method is called the de's systemClock() will be used rather than the supplied simulation time
| bool makVrv::DtDeadReckonUpdater::useAbsoluteTimeStamping | ( | ) | const |
|
virtual |
Because of time stamping, use these routines to get values from the motion model.
Do not go to the motion model itself Get the approximated (i.e. dead-reckoned for base DtDeadReckoner) location at the specified time.
|
virtual |
Get the approximated (i.e.
dead-reckoned for base DtDeadReckoner) velocity at the specified time.
|
virtual |
Get the approximated (i.e.
dead-reckoned for base DtDeadReckoner) orientation at the specified time.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |