![]() |
VR-Forces Development_Version Class Documentation
|
DtSurfaceClampingUpdater is an updater that is given a position and orientation, and will clamp those to dynamic ocean if it exists and the scene object is currently at sea level (or below). More...

Public Member Functions | |
| DtSurfaceClampingUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtSurfaceClampingUpdater () |
| DTOR. | |
| virtual void | setGroundClampingUpdater (DtGroundClampingUpdater *gndUpdater) |
| Set the ground clamping updater to be used when the object to update is not on water. | |
| virtual DtGroundClampingUpdater * | findGroundClampingUpdater () const |
| Get the ground clamping updater used when the object to update is not on water. | |
| virtual void | setWaterClampingUpdater (DtWaterClampingUpdater *waterUpdater) |
| Set the water clamping updater to be used when the object to update is on water. | |
| virtual DtWaterClampingUpdater * | findWaterClampingUpdater () const |
| Get the water clamping updater used when the object to update is on water. | |
| virtual void | update (DtTime tNow) |
| Calls doGroundClamp() | |
| virtual void | setVertexToUpdate (unsigned int vertex) |
| Specify which vertex in the scene object this updater updates. | |
| virtual void | setNextUpdater (DtSceneObjectUpdater *nextUpdater) |
| Set the next updater in the updater chain. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. | |
| virtual void | setInputPosition (const DtVector &position) |
| Set the position input to this updater. | |
| virtual void | setInputOrientation (const DtTaitBryan &orientation) |
| Set the orientaiton input to this updater. | |
| virtual void | setPaused (bool isPaused) |
| Pause surface clamping. | |
| virtual void | setIsAmphibious (bool isAmphibious) |
| virtual void | setIsSinking (bool isSinking) |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtSceneObjectUpdater () |
| Virtual DTOR. | |
| 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 | 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. | |
| virtual void | setUpdatePeriod (unsigned int period) |
| Specify how often (in # of frames) this tickable should call update. | |
| virtual unsigned int | updatePeriod () const |
| Specify how often (in # of frames) this tickable should call update. | |
Protected Member Functions | |
| virtual bool | onTheWater (const DtVector &pos) |
| Determine if the scene object to be updated is considered to be on the water. | |
| virtual bool | haveOcean () const |
Protected Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. | |
| DtTickable () | |
| Unimplemented default CTOR. | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| DtGroundClampingUpdater * | myGroundClampingUpdater |
| DtWaterClampingUpdater * | myWaterClampingUpdater |
| bool | myIsAmphibious |
| double | myLastLandCheckTime |
| bool | myIsOnWater |
| bool | myIsSinking |
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. | |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signal< void(const DtUniqueID &) > | signal_updaterToBeDeleted |
DtSurfaceClampingUpdater is an updater that is given a position and orientation, and will clamp those to dynamic ocean if it exists and the scene object is currently at sea level (or below).
If not clamped to water, the scene object may be clamped to the underlying terrain, depending on how it is configured.
| makVrv::DtSurfaceClampingUpdater::DtSurfaceClampingUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the ground clamping updater to be used when the object to update is not on water.
|
virtual |
Get the ground clamping updater used when the object to update is not on water.
|
virtual |
Set the water clamping updater to be used when the object to update is on water.
|
virtual |
Get the water clamping updater used when the object to update is on water.
|
virtual |
Calls doGroundClamp()
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Specify which vertex in the scene object this updater updates.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the next updater in the updater chain.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the scene object to be updated.
| [in] | sceneObject | is the scene object to receive updates. |
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the position input to this updater.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Set the orientaiton input to this updater.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Pause surface clamping.
|
virtual |
|
virtual |
Determine if the scene object to be updated is considered to be on the water.
Currently this is any object at or below sea level
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |