![]() |
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. | |
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 | setWaterlineOriginOffset (float offset) |
| Set an altitude offset from the scene object origin to its waterline. | |
| virtual void | setLOD (float lodDistance) |
| Set the distance (m) to LOD out the buoyancy simulation. | |
| 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. | |
| 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) |
Protected Attributes | |
| DtRk4MotionModel * | myMotionModel |
| DtTime | myLastTickTime |
| bool | myExtentsSet |
| bool | myIsPaused |
| double | myLastSinkingDiff |
| bool | mySmallObject |
| DtTritonManager & | myTritonManager |
Protected Attributes inherited from makVrv::DtWaterClampingUpdater | |
| float | myWaterlineOriginOffset |
| float | myLodDistance |
| float | myMinimumCullDistance |
| DtEntitySettingsRecord::BuoyancyCullType | myCullType |
| 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 |
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.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |