![]() |
VR-Forces 5.0.1 Developer's Guide
|
DtMultiDeadReckonUpdater is an updater that takes kinematic updates for multiple indices and updates a single scene object with dead reckoned values at each index.

Public Member Functions | |
| DtMultiDeadReckonUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtMultiDeadReckonUpdater () |
| virtual void | update (DtTime tNow) |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| virtual void | setVelocity (int vtx, const DtVector32 &velo) |
| virtual void | setAcceleration (int vtx, const DtVector32 &accel) |
| virtual void | setAngularVelocity (int vtx, const DtVector32 &velo) |
| virtual void | setDeadReckoningSettings (bool pos, bool ori, bool velo) |
| virtual void | setSmoothingEnabled (bool enabled) |
| virtual void | setSmoothingPeriod (float period) |
| virtual void | updateSpacial (DtTime tNow) |
| virtual void | setMotionModel (const std::string &modelName) |
| virtual DtMotionModel * | motionModel (int vtx) |
| virtual void | setUseAbsoluteTimeStamping (bool) |
| bool | useAbsoluteTimeStamping () const |
| DtSceneObject * | sceneObject () |
| DtUniqueID | uniqueId () const |
| virtual void | setInputPosition (unsigned int vtx, const DtVector &position) |
| virtual void | setInputPosition (unsigned int vtx, const DtVector &position, double time) |
| virtual void | setInputOrientation (unsigned int vtx, const DtTaitBryan &ori) |
| virtual void | setInputOrientation (unsigned int vtx, const DtTaitBryan &ori, double time) |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual void | setIsThreadSafe (bool safe) |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
Protected Member Functions | |
| DtMotionModel * | createMotionModel (DtMotionModel *other) |
| void | applyToAllMotionModels (const boost::function< void(DtMotionModel *)> &func) |
Slots | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable () | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtSceneObject * | mySceneObject |
| boost::signalslib::connection | mySceneObjectConnection |
| DtTime | myLastUpdateTime |
| MotionModels | myMotionModels |
| std::string | myMotionModelType |
| DtDeadReckonTypes | myDeadReckonTypes |
| float | mySmoothingPeriod |
| bool | mySmoothingEnabled |
| bool | myUseAbsoluteTimeStamping |
| bool | myHasReceivedInput |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Private Types | |
| typedef std::vector < DtMotionModel * > | MotionModels |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
|
private |
| makVrv::DtMultiDeadReckonUpdater::DtMultiDeadReckonUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. a DtTickableManager when set true, default is false. |
|
virtual |
Virtual DTOR.
|
virtual |
Push the update data to the scene object.
| [in] | tNow | is the current time. |
Implements makVrv::DtTickable.
The check function called by DtTickableManager to verify if an update is required. If this function returns true, the DtTickableManager will then call update().
| [in] | tNow | is the current time-stamp. |
| true | if this object needs to be ticked. |
| false | otherwise. This base class method uses both the time and the presence of valid input transforms to determine if the updater should be ticked. |
Reimplemented from makVrv::DtTickable.
|
virtual |
Set the scene object to be updated.
| [in] | sceneObject | is the scene object to receive updates. |
|
virtual |
Set the object's position with a time for absolute timestamping.
|
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.
|
virtual |
Set the object's orientation with a time specified for absolute time stampint.
|
virtual |
Set the velocity of a scene object vertex.
| [in] | vtx | is the vertex of the scene object. |
| [in] | velo | is the velocity to set. |
|
virtual |
Set the acceleration of a scene object vertex.
| [in] | vtx | is the vertex of the scene object. |
| [in] | accel | is the acceleration to set. |
|
virtual |
Set the angular velocity of a scene object vertex.
| [in] | vtx | is the vertex of the scene object. |
| [in] | velo | is the angular velocity to set. |
|
virtual |
Set the object's dead reckoning settings at all vertices.
| [in] | pos | is the position dead-reckoning flag, default is true. |
| [in] | ori | is the orientation dead-reckoning flag, default is true. |
| [in] | velo | is the velocity dead-reckoning flag, default is true. |
|
virtual |
Enable or disable smoothing for all vertices.
| [in] | enabled | is the new smoothing state. |
|
virtual |
Set the period for the smoothing calculation.
| [in] | period | is the time for smoothing. |
|
virtual |
Update the spacial attributes using the current simulation time.
| [in] | tNow | is the current simulation time. |
|
virtual |
Set which motion model the object should use.
| [in] | modelName | is the name of a motion model. |
|
virtual |
Get the motion model at a given vertex.
| [in] | vtx | is the vertex of the scene object. |
|
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::DtMultiDeadReckonUpdater::useAbsoluteTimeStamping | ( | ) | const |
|
inline |
Get the current scene object for this updater.
|
inline |
Returns the distributed object id of this updater.
|
protected |
Helper function to create and initialize a new motion model with data from a previous motion model and current updater state.
| [in] | other | is the is the object to copy from. |
|
protected |
A helper function to call the same function on all the motion models.
|
protectedvirtual |
|
protected |
The display engine.
|
protected |
This distributed object's unique identifier.
|
protected |
A pointer to the current scene object being updated.
|
protected |
|
protected |
The last time stamp when the update()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |