![]() |
VR-Forces 4.7 Class Documentation
|
Updater for the Kelvin tidalStreamWake model. More...

Public Member Functions | |
| DtTritonTidalStreamWakeUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtTritonTidalStreamWakeUpdater () |
| Virtual DTOR. | |
| virtual bool | needsUpdate (DtTime tNow) |
| Check if an update is required. | |
| virtual void | update (DtTime tNow) |
| The update function called by DtTickableManager during update-ticks. | |
Public Member Functions inherited from makVrv::DtTidalStreamWakeUpdater | |
| DtTidalStreamWakeUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtTidalStreamWakeUpdater () |
| Virtual DTOR. | |
| virtual DtTime | lastUpdateTime () const |
| Get the time-stamp of the last update. | |
| virtual void | setTidalStreamWakeModel (DtModel *tidalStreamWakeModel) |
| Set the tidalStreamWake model to be updated. | |
| virtual void | setCurrentSpeed (double speed) |
| In m/s. | |
| virtual void | setCurrentDirection (double dir) |
| In rad from North (clockwise). | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. | |
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 DtTritonTidalStreamWakeModel * | tidalStreamWakeModel () |
| Helper method to return a properly cast version of the tidalStreamWake model supplied. | |
| virtual DtVector | calcWakeDirection (const DtVector ¤tPos, float radiansFromNorth) |
| Calculate a normalized helo down vector. | |
| virtual void | setTidalStreamWakesEnabled (bool enabled) |
| Called when global tidal stream wakes enabled signal is received. | |
Protected Attributes | |
| DtSignalConnectionManager | mySignals |
| bool | myTidalStreamWakesEnabled |
Protected Attributes inherited from makVrv::DtTidalStreamWakeUpdater | |
| DtDe & | myDe |
| The display engine. | |
| DtUniqueID | myUniqueId |
| This distributed object's unique identifier. | |
| DtModel * | myTidalStreamWakeModel |
| A pointer to the current tidalStreamWake model being updated. | |
| DtTime | myLastUpdateTime |
| The last time stamp when the update() was called. | |
| double | myCurrentSpeed |
| In m/s. Only used to override global current speed. | |
| double | myCurrentDirection |
| In rad from North (clockwise). Only used for override. | |
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 |
Updater for the Kelvin tidalStreamWake model.
DtTritonTidalStreamWakeUpdater is a distributed object, managed by DtTickableManager. It updates the position, direction and speed of an tidalStreamWake-generating entity
| makVrv::DtTritonTidalStreamWakeUpdater::DtTritonTidalStreamWakeUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. |
|
virtual |
Virtual DTOR.
Check if an update is required.
| [in] | tNow | is the current time-stamp. |
| true | if this object needs to be ticked. |
| false | otherwise. |
Reimplemented from makVrv::DtTickable.
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Implements makVrv::DtTidalStreamWakeUpdater.
|
protectedvirtual |
Helper method to return a properly cast version of the tidalStreamWake model supplied.
|
protectedvirtual |
Calculate a normalized helo down vector.
|
protectedvirtual |
Called when global tidal stream wakes enabled signal is received.
|
protected |
|
protected |