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

Public Member Functions | |
| DtTritonWakeUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtTritonWakeUpdater () |
| Virtual DTOR. More... | |
| virtual void | update (DtTime tNow) |
| The update function called by DtTickableManager during update-ticks. More... | |
| virtual bool | needsUpdate (DtTime tNow) |
| Check if an update is required. More... | |
| virtual void | setPosition (const DtVector &pos) |
| Manually set the current position. More... | |
| virtual void | setOrientation (const DtTaitBryan &ori) |
| Manually set the current orientation. More... | |
| virtual void | setIsAmphibious (bool isAmphibious) |
| Set whether the wake needs to check to see if its over land. More... | |
Public Member Functions inherited from makVrv::DtWakeUpdater | |
| DtWakeUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtWakeUpdater () |
| Virtual DTOR. More... | |
| virtual DtTime | lastUpdateTime () const |
| Get the time-stamp of the last update. More... | |
| virtual void | setWakeModel (DtModel *wakeModel) |
| Set the wake model to be updated. More... | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. More... | |
| virtual void | setLODDistance (double distance) |
| virtual void | setFrozen (bool froze) |
| If an entity is in the frozen state, use 0 for velocity regardless of what it might send. More... | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| Calls needsUpdate(), and then calls update() if needsUpdate() is true. More... | |
| virtual | ~DtTickable () |
| Virtual DTOR. More... | |
| virtual void | setIsThreadSafe (bool safe) |
| Get/set whether this tickable can be updated in parallel with other tickables. More... | |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| Track which tickable list (if any) this tickable is on Since the tickable constructor puts ALL tickables on the main (unThreadSafe) to start we need a way to check which list a tickable is on (and this way we can request removals from the correct list instead of having to call DtTickableManager::removeTickableObject(), which tries both lists). More... | |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| Specify how often (in # of frames) this tickable should call update. More... | |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
| is the update LOD system enabled, overridden by subclasses More... | |
Protected Member Functions | |
| virtual DtTritonWakeModel * | wakeModel () const |
| Helper method to return a properly cast version of the wake model supplied. More... | |
| virtual DtVector | calcWakeOriginAndSeaLevel (DtVector ¤tPos, const DtTaitBryan &orientation, double wakeOffset) |
| Calculate the origin of the wake and put currentPos at sea level. More... | |
| virtual bool | getCurrentShipKinematics (double t, DtVector &position, DtVector &velocity, DtTaitBryan &orientation) const |
Get the ship's current position, velocity, and orientation that this
wake is attached toMore... | |
| virtual bool | isLodedOut (const DtVector ¤tPos) const |
| internal function to determine if wake is lod'ed out More... | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. More... | |
| DtTickable () | |
| Unimplemented default CTOR. More... | |
| virtual void | slot_managerAboutToBeDeleted () |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
| Enumeration used to indicate which DtTickableManager's tickable list the tickable is on, if any. More... | |
Updater for the Kelvin wake model.
DtTritonWakeUpdater is a distributed object, managed by DtTickableManager. It updates the position, direction and speed of an wake-generating entity
| makVrv::DtTritonWakeUpdater::DtTritonWakeUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. |
|
virtual |
Virtual DTOR.
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Implements makVrv::DtWakeUpdater.
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 |
Manually set the current position.
| [in] | pos | is the position to set. |
Reimplemented from makVrv::DtWakeUpdater.
|
virtual |
Manually set the current orientation.
| [in] | ori | is the orientation to set. |
Reimplemented from makVrv::DtWakeUpdater.
|
virtual |
Set whether the wake needs to check to see if its over land.
Reimplemented from makVrv::DtWakeUpdater.
|
protectedvirtual |
Helper method to return a properly cast version of the wake model supplied.
|
protectedvirtual |
Calculate the origin of the wake and put currentPos at sea level.
These two operations are combined to avoid an extra geocentic-> geodetic conversion.
| [in] | currentPos | is the entity's position. |
| [in] | currentOrientation | is the entity's orientation. |
| [in] | wakeOffset | is offset of the wake start from the entity. center |
| [out] | currentPos | is modified to be at sea level |
|
protectedvirtual |
Get the ship's current position, velocity, and orientation that this
|
protectedvirtual |
internal function to determine if wake is lod'ed out
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
A pointer to the current scene object for the wake model.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |