![]() |
VR-Forces 5.0.2 Developer's Guide
|
The time manager is responsible for maintaining the currenting date and time of the scene. It is also responsible for updating the time when the terrain changes, and querying the time of the observer.

Public Types | |
| enum | Month { January = 1, February, March, April, May, June, July, August, September, October, November, December } |
Public Member Functions | |
| virtual | ~DtDeTimeManager () |
| virtual void | setReferenceDateAndTime (int year, Month month, int dayOfMonth, int hours, int minutes, double seconds) |
| virtual void | getReferenceDateAndTime (int &year, Month &month, int &dayOfMonth, int &hours, int &minutes, double &seconds) const |
| virtual void | syncReferenceDateAndTime () |
| virtual void | setUseGlobalTimeZone (bool) |
| virtual bool | useGlobalTimeZone () const |
| virtual void | calculateCurrentDateAndTime (int &year, Month &month, int &dayOfMonth, int &hour, int &minutes, double &seconds) const |
| virtual double | timeScale () const |
| virtual void | setTimeScale (double timeScale) |
| virtual void | getRecord (makArchives::DtDateTimeRecord &record) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static bool | isYearALeapYear (int year) |
| static int | daysInTheMonthOf (int year, Month month) |
| static Month | nextMonth (Month month) |
Public Attributes | |
| boost::signalslib::signal < void(bool)> | signal_useGlobalTimeZoneChanged |
Static Public Attributes | |
| static const int | theDefaultYear |
| static const Month | theDefaultMonth |
| static const int | theDefaultDayOfTheMonth |
| static const int | theDefaultHours |
| static const int | theDefaultMinutes |
| static const double | theDefaultSeconds |
| static const double | theDefaultTimeScaleFactor |
Protected Member Functions | |
| DtDeTimeManager (DtDe &de) | |
| double | timeSinceSet () const |
Protected Attributes | |
| DtDe & | myDe |
| int | myYear |
| Month | myMonth |
| int | myDayOfTheMonth |
| int | myHours |
| int | myMinutes |
| double | mySeconds |
| double | mySimulationTimeAtSet |
| double | myTimeScaleFactor |
| bool | myUseGlobalTimeZone |
Friends | |
| class | DtDeTimeManagerCreator |
|
virtual |
DTOR.
|
protected |
!
CTOR
|
virtual |
Set the reference date and time, used for calculating the current date and time.
Set the current date.
|
virtual |
Get the last set date.
|
virtual |
Set the reference date and time to the current date and time.
|
virtual |
When displaying the sun/moon position, use the observer (default, suppling false to this method) or use the current GMT time (supplying true to this method)
|
virtual |
Returns whether or not to use GMT Time for observer.
|
virtual |
Calculate the current date and time based upon the simulation time passes since the reference was set.
Check to see if this is a leap year.
Get the number of days in a month. The year is necessary for getting Leap days.
|
virtual |
Get the time scale.
|
virtual |
Set the time scale, this will also set the time base upon the current time scale.
Reimplemented in makVrf::DtVrfDeTimeManager.
|
virtual |
Fill out a record with the current date/time and timescale.
|
protected |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| boost::signalslib::signal<void (bool)> makVrv::DtDeTimeManager::signal_useGlobalTimeZoneChanged |
Signal when using GMT time for observer changes.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The simulation time when the time was set. This is used along with the current simulation time to get the current time of day.
|
protected |
The amount that time scale with simulation time.
|
protected |
Whether or not to use GMT time for sun/moon position (if true will)