![]() |
VR-Forces Development_Version Class Documentation
|
DtTritonWaterClampingUpdater is a Triton-using re-implementation of the DtWaterClampingUpdater. More...

Public Member Functions | |
| DtTritonWaterClampingUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtTritonWaterClampingUpdater () |
| DTOR. | |
| virtual bool | clampToWater (DtTime tNow) |
| Clamp an object to the water using the buoyancy model. | |
| virtual void | setPaused (bool isPaused) |
| Set the simulation paused/unpaused. | |
| virtual void | setLOD (float lodDistance) |
| override the base class version so myFullyLodDistance can be updated | |
| virtual void | setWaterlineOriginOffset (float offset) |
| override the base class version so myWaterlineAltitude can be updated | |
Public Member Functions inherited from makVrv::DtWaterClampingUpdater | |
| DtWaterClampingUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtWaterClampingUpdater () |
| DTOR. | |
| virtual void | update (DtTime tNow) |
| do the actual clamping. | |
| virtual void | setMinimumCullDistance (float distance) |
| Set the distance within which buoyancy won't be frustum culled. | |
| virtual void | setCullType (int cullType) |
| Sets the type of buoyancy culling used (FrontFacing or None). | |
| virtual void | setIsSinking (bool isSinking) |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtSceneObjectUpdater () |
| Virtual DTOR. | |
| virtual void | setNextUpdater (DtSceneObjectUpdater *nextUpdater) |
| Set the next updater in the updater chain. | |
| 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 | setVertexToUpdate (unsigned int vertex) |
| Specify which vertex in the scene object this updater updates. | |
| 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 | 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. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. | |
| 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 double | altitudeAt (const DtVector &pos) |
| Get the altitude at a point. | |
| virtual void | addAltitude (DtVector &pos, float altitudeToAdd) |
| Add the specified altitude to pos. | |
| virtual DtVector | moveToAltitude (const DtVector &pos, double alt) |
| Move a point to the specified altitude. | |
| virtual DtTaitBryan | computeMotionOrientation () |
| Compute the orientation for the motion model. | |
| virtual bool | isFullyImmersed () |
| Are we under water? | |
| virtual void | adjustSinkingSpeedScale (const DtVector &inputPosition, const DtVector ¤tPosition) |
| virtual void | smoothMotionAndSeaLevel (double percent, DtVector &outputPos, DtTaitBryan &outputOri) |
| Percent 0 = myLastMotionPos/Ori Percent 1 = mySeaLevelPosition/myInputOrientation linear interpolation between the two for values in between 0 and 1. | |
| virtual void | slot_oceanLayerSeaLevelChanged (double sealevel) |
| virtual void | updateWaterLineAltitude (double sealevel) |
| virtual bool | initializeExtents (double sealevel) |
| virtual bool | checkCull (DtObserverObject *const observer, const DtVector &eyeToShip) const |
Static Protected Attributes | |
| static const double | theMotionTimeout |
| static const double | theSmoothTime |
| static const double | theFullyLodScaler |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signal< void(const DtUniqueID &) > | signal_updaterToBeDeleted |
DtTritonWaterClampingUpdater is a Triton-using re-implementation of the DtWaterClampingUpdater.
It provides a physics-based buoyancy model that is used to determine the position and altitude of a scene object that is on Triton dynamic ocean
| makVrv::DtTritonWaterClampingUpdater::DtTritonWaterClampingUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Clamp an object to the water using the buoyancy model.
Reimplemented from makVrv::DtWaterClampingUpdater.
|
virtual |
Set the simulation paused/unpaused.
Reimplemented from makVrv::DtWaterClampingUpdater.
|
virtual |
override the base class version so myFullyLodDistance can be updated
Reimplemented from makVrv::DtWaterClampingUpdater.
|
virtual |
override the base class version so myWaterlineAltitude can be updated
Reimplemented from makVrv::DtWaterClampingUpdater.
|
protectedvirtual |
Get the altitude at a point.
|
protectedvirtual |
Add the specified altitude to pos.
|
protectedvirtual |
Move a point to the specified altitude.
|
protectedvirtual |
Compute the orientation for the motion model.
Combines heading from unclamped orientation and pitch/roll from motion orientation
|
protectedvirtual |
Are we under water?
|
protectedvirtual |
|
protectedvirtual |
Percent 0 = myLastMotionPos/Ori Percent 1 = mySeaLevelPosition/myInputOrientation linear interpolation between the two for values in between 0 and 1.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |