![]() |
VR-Forces 4.6 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 orientation input to this updater. | |
| virtual void | setPaused (bool isPaused) |
| Pause surface clamping. | |
| virtual void | setIsAmphibious (bool isAmphibious) |
| Set whether the object being updated needs to check for ocean and use the water clamping updater if it is. | |
| virtual void | setIsSinking (bool isSinking) |
| Set whether a buoyant object is currently sinking. | |
| virtual DtOverWaterUpdater * | createOverWaterUpdater () |
| Create an instance of a DtOverWaterUpdater that will be used to determine when an amphibous entity needs a buoyancy updater. | |
| virtual unsigned int | landCheckInterval () const |
| Get/set the interval at which the updater checks to see if it is over land or water. | |
| virtual void | setLandCheckInterval (unsigned int frames) |
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 |
Protected Member Functions | |
| 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 () |
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.
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 orientation input to this updater.
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Pause surface clamping.
|
virtual |
Set whether the object being updated needs to check for ocean and use the water clamping updater if it is.
|
virtual |
Set whether a buoyant object is currently sinking.
Get/set the interval at which the updater checks to see if it is over land or water.
|
virtual |
Create an instance of a DtOverWaterUpdater that will be used to determine when an amphibous entity needs a buoyancy updater.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |