VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtTidalStreamWakeUpdater Class Reference

Abstract tidalStreamWake object updater interface. More...

Inheritance diagram for makVrv::DtTidalStreamWakeUpdater:
Inheritance graph
[legend]

Public Member Functions

 DtTidalStreamWakeUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtTidalStreamWakeUpdater ()
 Virtual DTOR.
virtual void update (DtTime tNow)=0
 The update function called by DtTickableManager during update-ticks.
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 bool needsUpdate (DtTime tNow)
 The check function called by DtTickableManager to verify if an update is required.
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 Attributes

DtDemyDe
 The display engine.
DtUniqueID myUniqueId
 This distributed object's unique identifier.
DtModelmyTidalStreamWakeModel
 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
DtTickableManagerInterfacemyManager
 Pointer to manager for removal during destruction.
DtSignalConnectionManager myConnections
unsigned int myFrameCounter
unsigned int myFrameToUpdate
unsigned int myUpdatePeriod

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtTickable
 DtTickable (DtTickableManagerInterface *manager)
 CTOR.
 DtTickable ()
 Unimplemented default CTOR.
virtual void slot_managerAboutToBeDeleted ()

Detailed Description

Abstract tidalStreamWake object updater interface.

DtTidalStreamWakeUpdaters are distributed objects, managed by DtTickableManager. They update the tidalStreamWake of DtTidalStreamWakeModels

Constructor & Destructor Documentation

makVrv::DtTidalStreamWakeUpdater::DtTidalStreamWakeUpdater ( DtDe de,
DtUniqueID  id 
)

CTOR.

Parameters
[in]deis the display engine.
[in]idis a unique identifier for this distributed object.
virtual makVrv::DtTidalStreamWakeUpdater::~DtTidalStreamWakeUpdater ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtTidalStreamWakeUpdater::update ( DtTime  tNow)
pure virtual

The update function called by DtTickableManager during update-ticks.

Parameters
[in]tNowis the current time-stamp.
Note
Derived classes should update the tidalStreamWake at the end of their implementation of this function.

Implements makVrv::DtTickable.

Implemented in makVrv::DtTritonTidalStreamWakeUpdater.

virtual DtTime makVrv::DtTidalStreamWakeUpdater::lastUpdateTime ( ) const
virtual

Get the time-stamp of the last update.

Returns
The last update time.
virtual void makVrv::DtTidalStreamWakeUpdater::setTidalStreamWakeModel ( DtModel tidalStreamWakeModel)
virtual

Set the tidalStreamWake model to be updated.

Parameters
[in]tidalStreamWakeModelis a pointer to the model to be updated
virtual void makVrv::DtTidalStreamWakeUpdater::setCurrentSpeed ( double  speed)
virtual

In m/s.

Only used to override global current speed. Set to -1. to start using global current speed again

virtual void makVrv::DtTidalStreamWakeUpdater::setCurrentDirection ( double  dir)
virtual

In rad from North (clockwise).

Only used for override. Set to -1 to start using global direction again

DtUniqueID makVrv::DtTidalStreamWakeUpdater::uniqueId ( ) const
inline

Returns the distributed object id of this updater.

Member Data Documentation

DtDe& makVrv::DtTidalStreamWakeUpdater::myDe
protected

The display engine.

DtUniqueID makVrv::DtTidalStreamWakeUpdater::myUniqueId
protected

This distributed object's unique identifier.

DtModel* makVrv::DtTidalStreamWakeUpdater::myTidalStreamWakeModel
protected

A pointer to the current tidalStreamWake model being updated.

DtTime makVrv::DtTidalStreamWakeUpdater::myLastUpdateTime
protected

The last time stamp when the update() was called.

double makVrv::DtTidalStreamWakeUpdater::myCurrentSpeed
protected

In m/s. Only used to override global current speed.

double makVrv::DtTidalStreamWakeUpdater::myCurrentDirection
protected

In rad from North (clockwise). Only used for override.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)