![]() |
VR-Forces 4.3 Class Documentation
|
DtMultiDeadReckonUpdater is an updater that takes kinematic updates for multiple indices and updates a single scene object with dead reckoned values at each index. More...

Public Member Functions | |
| DtMultiDeadReckonUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtMultiDeadReckonUpdater () |
| Virtual DTOR. | |
| virtual void | update (DtTime tNow) |
| Push the update data to the scene object. | |
| virtual bool | needsUpdate (DtTime tNow) |
| The check function called by DtTickableManager to verify if an update is required. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. | |
| virtual void | setVelocity (int vtx, const DtVector &velo) |
| Set the velocity of a scene object vertex. | |
| virtual void | setAcceleration (int vtx, const DtVector &accel) |
| Set the acceleration of a scene object vertex. | |
| virtual void | setAngularVelocity (int vtx, const DtVector &velo) |
| Set the angular velocity of a scene object vertex. | |
| virtual void | setDeadReckoningSettings (bool pos, bool ori, bool velo) |
| Set the object's dead reckoning settings at all vertices. | |
| virtual void | setSmoothingEnabled (bool enabled) |
| Enable or disable smoothing for all vertices. | |
| virtual void | setSmoothingPeriod (float period) |
| Set the period for the smoothing calculation. | |
| virtual void | updateSpacial (DtTime tNow) |
| Update the spacial attributes using the current simulation time. | |
| virtual void | setMotionModel (const std::string &modelName) |
| Set which motion model the object should use. | |
| virtual DtMotionModel * | motionModel (int vtx) |
| Get the motion model at a given vertex. | |
| virtual void | setUseAbsoluteTimeStamping (bool) |
| Sets whether or not to use absolute time stamping (default is false). | |
| bool | useAbsoluteTimeStamping () const |
| DtSceneObject * | sceneObject () |
| Get the current scene object for this updater. | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. | |
| virtual void | setInputPosition (unsigned int vtx, const DtVector &position) |
| Set the object's position with a time for absolute timestamping. | |
| virtual void | setInputPosition (unsigned int vtx, const DtVector &position, double time) |
| Set the object's position with a time for absolute timestamping. | |
| virtual void | setInputOrientation (unsigned int vtx, const DtTaitBryan &ori) |
| Set the object's orientation with a time specified for absolute time stampint. | |
| virtual void | setInputOrientation (unsigned int vtx, const DtTaitBryan &ori, double time) |
| Set the object's orientation with a time specified for absolute time stampint. | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual | ~DtTickable () |
| Virtual DTOR. | |
Protected Member Functions | |
| DtMotionModel * | createMotionModel (DtMotionModel *other) |
| Helper function to create and initialize a new motion model with data from a previous motion model and current updater state. | |
| void | applyToAllMotionModels (const boost::function< void(DtMotionModel *)> &func) |
| A helper function to call the same function on all the motion models. | |
Slots | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. | |
| DtTickable () | |
| Unimplemented default CTOR. | |
Protected Attributes | |
| 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() | |
| MotionModels | myMotionModels |
| std::string | myMotionModelType |
| DtDeadReckonTypes | myDeadReckonTypes |
| float | mySmoothingPeriod |
| bool | mySmoothingEnabled |
| bool | myUseAbsoluteTimeStamping |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| Pointer to manager for removal during destruction. | |
Private Types | |
| typedef std::vector < DtMotionModel * > | MotionModels |
DtMultiDeadReckonUpdater is an updater that takes kinematic updates for multiple indices and updates a single scene object with dead reckoned values at each index.
|
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. |
Implements 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 |
The last time stamp when the update()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |