![]() |
VR-Forces 4.3 Class Documentation
|
DtDeadReckonUpdater is a scene object 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) | |
| CTOR. | |
| virtual | ~DtDeadReckonUpdater () |
| DTOR. | |
| virtual void | update (DtTime tNow) |
| call updateSpacial() | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| sets the scene object to update via the id. | |
| 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 | resetSmoother () |
| Reset the smoother. Used when changing from embarked to disembarked and vice versa. | |
| 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 () const |
| 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 |
| Get the acceleration for the specified time. | |
| virtual const DtVector & | rotationalVelocity (DtTime curTime) const |
| Get the rotation velocity for the specified time. | |
| virtual void | setVelocity (const DtVector &velocity) |
| Set the object's velocity. | |
| virtual void | setVelocity (const DtVector &velocity, double time) |
| Set the object's velocity. | |
| virtual void | setAcceleration (const DtVector &acceleration) |
| Set the object's velocity. | |
| virtual void | setAcceleration (const DtVector &acceleration, double time) |
| Set the object's velocity. | |
| virtual void | setAngularVelocity (const DtVector &angularVelocity) |
| Set the object's rotational velocity. | |
| virtual void | setAngularVelocity (const DtVector &angularVelocity, double time) |
| Set the object's rotational velocity. | |
| virtual void | setInputPosition (const DtVector &position) |
| Set the object's position with a time for absolute timestamping. | |
| virtual void | setInputPosition (const DtVector &position, double time) |
| Set the object's position with a time for absolute timestamping. | |
| virtual void | setInputOrientation (const DtTaitBryan &ori) |
| Set the object's orientation with a time specified for absolute time stampint. | |
| virtual void | setInputOrientation (const DtTaitBryan &ori, double time) |
| Set the object's orientation with a time specified for absolute time stampint. | |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtSceneObjectUpdater () |
| Virtual DTOR. | |
| virtual void | setNextUpdater (DtSceneObjectUpdater *nextUpdater) |
| Set the next updater in the updater chain. | |
| virtual void | setPrevUpdater (DtSceneObjectUpdater *prevUpdater) |
| Set the previous updater in the updater chain. | |
| virtual bool | needsUpdate (DtTime tNow) |
| The check function called by DtTickableManager to verify if an update is required. | |
| virtual void | setVertexToUpdate (unsigned int vertex) |
| Specify which vertex in the scene object this updater updates. | |
| virtual void | setOutputPosition (const DtVector &position) |
| Output the resultant position. | |
| virtual void | setOutputOrientation (const DtTaitBryan &orientation) |
| Output the resultant orientation. | |
| virtual DtTime | lastUpdateTime () const |
| Get the time-stamp of the last update. | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. | |
| DtSceneObjectUpdater * | findNextUpdater () const |
| Return the next updater in the updater chain. | |
| DtSceneObjectUpdater * | findPrevUpdater () const |
| Return the previous updater in the updater chain. | |
| DtSceneObject * | findSceneObject () |
| Get the current scene object for this updater. | |
| DtSceneObject *const | findSceneObject () const |
| const correct version | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual | ~DtTickable () |
| Virtual DTOR. | |
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 update() | |
| DtSceneObjectUpdater * | myNextUpdater |
| The next updater in the chain (or NULL) | |
| DtSceneObjectUpdater * | myPrevUpdater |
| The previous updater in the chain (or NULL) | |
| unsigned int | myVertexToUpdate |
| The default scene object vertex to update. | |
| DtVector | myInputPosition |
| Input position. | |
| DtTaitBryan | myInputOrientation |
| Input Orientation. | |
| bool | myPositionDataOutputted |
| Flag to indicate if setOutputPosition has been called this tick. | |
| bool | myOrientationDataOutputted |
| Flag to indicate if setOutputOrientation has been called this tick. | |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| Pointer to manager for removal during destruction. | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signal< void(const DtUniqueID &) > | signal_updaterToBeDeleted |
Protected Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
DtDeadReckonUpdater is a scene object 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 | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
call updateSpacial()
Reimplemented from 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 velocity.
|
virtual |
Set the object's velocity.
|
virtual |
Set the object's velocity.
|
virtual |
Set the object's velocity.
|
virtual |
Set the object's rotational velocity.
|
virtual |
Set the object's rotational velocity.
|
virtual |
Set the object's position with a time for absolute timestamping.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the object's position with a time for absolute timestamping.
|
virtual |
Set the object's orientation with a time specified for absolute time stampint.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the object's orientation with a time specified for absolute time stampint.
|
virtual |
Set the object's dead reckoning settings.
|
virtual |
Turn the smoother on or off.
|
virtual |
Set the period for the smoother.
|
virtual |
Reset the smoother. Used when changing from embarked to disembarked and vice versa.
|
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 | ( | ) | const |
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 |
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.
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.
Get the acceleration for the specified time.
|
virtual |
Get the rotation velocity for the specified time.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |