![]() |
MAK Data Logger API Documentation for DIS
|
A clock which provides time steps via a time provider and with optional scaling. More...
Collaboration diagram for MAKLogger::DtLgrClock:Public Member Functions | |
| DtLgrClock (const DtTimeProvider *timeProvider) | |
| Constructor timeProvider - a pointer (owned by someone else) of the DtTime Provider class. | |
| virtual | ~DtLgrClock () |
| Destructor. | |
| virtual void | tick () |
| Tick the clock which increments the time. | |
| DtAbsoluteTime | currentTime () const |
| Gets the current time, this value will not change until tick is called again. | |
| void | setCurrentTime (const DtAbsoluteTime &newTime) |
| Sets the internal current time. | |
| virtual DtAbsoluteTime | pendingTime () const |
| Get the pending time - time if provider were ticked now. | |
| DtRelativeTime | lastTimeStep () const |
| The last change in time between ticks. | |
| virtual void | stop () |
| The same as two calls to setCurrentTime( 0.0 ), setTimeScale( 0.0 );. | |
| virtual void | pause () |
| The same as a call to setTimeScale( 0.0 );. | |
| virtual void | setTimeScale (double scaleValue) |
| Changes the time scale. | |
| virtual double | timeScale () const |
| Gets the time scale value. | |
| virtual void | setTimeProvider (const DtTimeProvider *timeProvider) |
| Set the time provider. | |
| virtual const DtTimeProvider * | timeProvider () const |
| Get the time provider. | |
Protected Attributes | |
| const DtTimeProvider * | myTimeProvider |
| DtAbsoluteTime | myLastTime |
| DtAbsoluteTime | myCurrentTime |
| DtRelativeTime | myLastTimeStep |
| double | myTimeScale |
A clock which provides time steps via a time provider and with optional scaling.
| MAKLogger::DtLgrClock::DtLgrClock | ( | const DtTimeProvider * | timeProvider | ) |
Constructor timeProvider - a pointer (owned by someone else) of the DtTime Provider class.
DtLgrClock does not take ownership of this pointer, it only uses it.
|
virtual |
Destructor.
| DtAbsoluteTime MAKLogger::DtLgrClock::currentTime | ( | ) | const |
Gets the current time, this value will not change until tick is called again.
| DtRelativeTime MAKLogger::DtLgrClock::lastTimeStep | ( | ) | const |
The last change in time between ticks.
|
virtual |
The same as a call to setTimeScale( 0.0 );.
|
virtual |
Get the pending time - time if provider were ticked now.
| void MAKLogger::DtLgrClock::setCurrentTime | ( | const DtAbsoluteTime & | newTime | ) |
Sets the internal current time.
|
virtual |
Set the time provider.
This class does not take ownership of this pointer, and only uses it.
|
virtual |
Changes the time scale.
|
virtual |
The same as two calls to setCurrentTime( 0.0 ), setTimeScale( 0.0 );.
|
virtual |
Tick the clock which increments the time.
Calculated via currentTime = currentTime + time elapsed * timescale
|
virtual |
Get the time provider.
|
virtual |
Gets the time scale value.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |