![]() |
VR-Forces 4.0.4 Class Documentation
|
DtAttachableDeadReckonUpdater is an updater that updates scene objects that need to attach to some other object in the scene and still be dead reckoned (such as embarked entities). More...

Public Member Functions | |
| DtAttachableDeadReckonUpdater (DtDe &de, DtUniqueID id, bool doNotAddToMgr=false) | |
| CTOR. | |
| virtual | ~DtAttachableDeadReckonUpdater () |
| DTOR. | |
| virtual void | update (double simTime) |
| Call deadReckonAndAttach() followed by updateSceneObject() | |
| virtual void | deadReckonAndAttach () |
| Use the contained DtDeadReckonUpdater to dead reckon the scene object's relative position, and then used the contained DtAttachableUpdater the attach the result to the parent. | |
| virtual void | addAttachedPoint (const DtVector &position, int targetVertexIndex) |
| Add a (vertex) attach point. | |
| virtual void | addAttachedPoint (DtUniqueID uniqueID, int targetVertexIndex) |
| Add a (object) attach point. | |
| virtual void | addAttachedPoint (DtUniqueID uniqueID, int vtx1, int vtx2, double proportion, int targetVertexIndex) |
| Add a (linear) attach point. | |
| virtual void | setPosition (const DtVector &position) |
| Set the object's position. | |
| virtual void | setOrientation (const DtTaitBryan &ori) |
| Set the object's orientation. | |
| virtual void | setVelocity (const DtVector &velocity) |
| Set the object's velocity. | |
| virtual void | setAcceleration (const DtVector &acceleration) |
| Set the object's velocity. | |
| virtual void | setAngularVelocity (const DtVector &angularVelocity) |
| Set the object's rotational velocity. | |
| 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 (double simulationTime) |
| Update the spacial attributes using the given simulation time. | |
| void | setMotionModel (const std::string &modelName) |
| Set which motion model the object should use. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Override setting the scene object to handle the dead reckon updater. | |
Protected Attributes | |
| DtAttachableUpdater * | myAttachableUpdater |
| DtDeadReckonUpdater * | myDeadReckonUpdater |
DtAttachableDeadReckonUpdater is an updater that updates scene objects that need to attach to some other object in the scene and still be dead reckoned (such as embarked entities).
| makVrv::DtAttachableDeadReckonUpdater::DtAttachableDeadReckonUpdater | ( | DtDe & | de, |
| DtUniqueID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrv::DtAttachableDeadReckonUpdater::~DtAttachableDeadReckonUpdater | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtAttachableDeadReckonUpdater::update | ( | double | simTime | ) | [virtual] |
Call deadReckonAndAttach() followed by updateSceneObject()
Implements makVrv::DtUpdater.
| virtual void makVrv::DtAttachableDeadReckonUpdater::deadReckonAndAttach | ( | ) | [virtual] |
Use the contained DtDeadReckonUpdater to dead reckon the scene object's relative position, and then used the contained DtAttachableUpdater the attach the result to the parent.
| virtual void makVrv::DtAttachableDeadReckonUpdater::addAttachedPoint | ( | const DtVector & | position, |
| int | targetVertexIndex | ||
| ) | [virtual] |
Add a (vertex) attach point.
If multiple attach points are specified each will update its corresponding vertex in the scene object being updated
| virtual void makVrv::DtAttachableDeadReckonUpdater::addAttachedPoint | ( | DtUniqueID | uniqueID, |
| int | targetVertexIndex | ||
| ) | [virtual] |
Add a (object) attach point.
If multiple attach points are specified each will update its corresponding vertex in the scene object being updated
| virtual void makVrv::DtAttachableDeadReckonUpdater::addAttachedPoint | ( | DtUniqueID | uniqueID, |
| int | vtx1, | ||
| int | vtx2, | ||
| double | proportion, | ||
| int | targetVertexIndex | ||
| ) | [virtual] |
Add a (linear) attach point.
If multiple attach points are specified each will update its corresponding vertex in the scene object being updated
| virtual void makVrv::DtAttachableDeadReckonUpdater::setPosition | ( | const DtVector & | position | ) | [virtual] |
Set the object's position.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setOrientation | ( | const DtTaitBryan & | ori | ) | [virtual] |
Set the object's orientation.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setVelocity | ( | const DtVector & | velocity | ) | [virtual] |
Set the object's velocity.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setAcceleration | ( | const DtVector & | acceleration | ) | [virtual] |
Set the object's velocity.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setAngularVelocity | ( | const DtVector & | angularVelocity | ) | [virtual] |
Set the object's rotational velocity.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setDeadReckoningSettings | ( | bool | deadReckonPosition, |
| bool | deadReckonVelocity, | ||
| bool | deadReckonOrientation | ||
| ) | [virtual] |
Set the object's dead reckoning settings.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setSmoothingEnabled | ( | bool | enabled | ) | [virtual] |
Turn the smoother on or off.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setSmoothingPeriod | ( | float | period | ) | [virtual] |
Set the period for the smoother.
| virtual void makVrv::DtAttachableDeadReckonUpdater::updateSpacial | ( | double | simulationTime | ) | [virtual] |
Update the spacial attributes using the given simulation time.
| void makVrv::DtAttachableDeadReckonUpdater::setMotionModel | ( | const std::string & | modelName | ) |
Set which motion model the object should use.
| virtual void makVrv::DtAttachableDeadReckonUpdater::setSceneObject | ( | DtSceneObject * | sceneObject | ) | [virtual] |
Override setting the scene object to handle the dead reckon updater.
Reimplemented from makVrv::DtUpdater.