![]() |
VR-Forces 4.1 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, bool suppressTick=false) | |
| CTOR. | |
| virtual | ~DtMultiDeadReckonUpdater () |
| Virtual DTOR. | |
| virtual void | update (DtTime tNow) |
| Push the update data to the scene object. | |
| virtual void | setPosition (int vtx, const DtVector &pos) |
| Set the position of a scene object vertex. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &ori) |
| Set the orientation of a scene object vertex. | |
| 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. | |
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. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. | |
| 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 | |
| MotionModels | myMotionModels |
| std::string | myMotionModelType |
| DtDeadReckonTypes | myDeadReckonTypes |
| float | mySmoothingPeriod |
| bool | mySmoothingEnabled |
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. | |
Private Types | |
| typedef std::vector < DtMotionModel * > | MotionModels |
Private 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. | |
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. | |
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, | ||
| bool | suppressTick = false |
||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. |
| [in] | suppressTick | is a flag instructing to not register with 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::DtSceneObjectUpdater.
|
virtual |
Set the position of a scene object vertex.
| [in] | vtx | is the vertex of the scene object. |
| [in] | pos | is the position to set. |
Reimplemented in makVrv::DtTacticalSmokeUpdater.
|
virtual |
Set the orientation of a scene object vertex.
| [in] | vtx | is the vertex of the scene object. |
| [in] | ori | is the orientation to set. |
Reimplemented in makVrv::DtTacticalSmokeUpdater.
|
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. |
Reimplemented in makVrv::DtTacticalSmokeUpdater.
|
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. |
Reimplemented in makVrv::DtTacticalSmokeUpdater.
|
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. |
Reimplemented in makVrv::DtTacticalSmokeUpdater.
|
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. |
|
private |
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. |
|
private |
A helper function to call the same function on all the motion models.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |