73 virtual void setReferenceDateAndTime(
int year,
Month month,
int dayOfMonth,
74 int hours,
int minutes,
double seconds);
77 virtual void getReferenceDateAndTime(
int& year,
Month& month,
int& dayOfMonth,
78 int& hours,
int& minutes,
double& seconds)
const;
81 virtual void syncReferenceDateAndTime();
85 virtual void setUseGlobalTimeZone(
bool);
88 virtual bool useGlobalTimeZone()
const;
92 virtual void calculateCurrentDateAndTime(
int& year,
Month& month,
int& dayOfMonth,
93 int& hour,
int& minutes,
double& seconds)
const;
96 static bool isYearALeapYear(
int year);
100 static int daysInTheMonthOf(
int year,
Month month);
106 virtual double timeScale()
const;
110 virtual void setTimeScale(
double timeScale);
123 double timeSinceSet()
const;
static const int theDefaultYear
Definition: DtDeTimeManager.h:49
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
int myMinutes
Definition: DtDeTimeManager.h:131
Definition: DtDeTimeManager.h:38
double mySimulationTimeAtSet
The simulation time when the time was set. This is used along with the current simulation time to get...
Definition: DtDeTimeManager.h:137
Month
Definition: DtDeTimeManager.h:32
Record of application-wide date/time settings.
Definition: DtDateTimeRecord.h:19
int myHours
Definition: DtDeTimeManager.h:130
Creator class for DtDeTimeManager.
Definition: DtDeTimeManager.h:148
Contains makArchives::DtDateTimeRecord class.
int myYear
Definition: DtDeTimeManager.h:127
Definition: DtDeTimeManager.h:41
double mySeconds
Definition: DtDeTimeManager.h:132
double myTimeScaleFactor
The amount that time scale with simulation time.
Definition: DtDeTimeManager.h:140
int myDayOfTheMonth
Definition: DtDeTimeManager.h:129
Definition: DtDeTimeManager.h:40
static const Month theDefaultMonth
Definition: DtDeTimeManager.h:50
boost::signalslib::signal< void(int year, Month month, int day)> signal_dateChanged
Signal when the date changes.
Definition: DtDeTimeManager.h:116
Month myMonth
Definition: DtDeTimeManager.h:128
static const int theDefaultDayOfTheMonth
Definition: DtDeTimeManager.h:51
Contains makVrv::DtVirtualBaseClass class.
The time manager is responsible for maintaining the currenting date and time of the scene...
Definition: DtDeTimeManager.h:28
static const double theDefaultSeconds
Definition: DtDeTimeManager.h:54
Definition: DtDeTimeManager.h:36
static const int theDefaultMinutes
Definition: DtDeTimeManager.h:53
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
static const double theDefaultTimeScaleFactor
Definition: DtDeTimeManager.h:55
Definition: DtDeTimeManager.h:35
Definition: DtDeTimeManager.h:42
Definition: DtDeTimeManager.h:44
Definition: DtDeTimeManager.h:37
static const int theDefaultHours
Definition: DtDeTimeManager.h:52
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
boost::signalslib::signal< void(bool)> signal_useGlobalTimeZoneChanged
Signal when using GMT time for observer changes.
Definition: DtDeTimeManager.h:119
DtDe & myDe
Definition: DtDeTimeManager.h:125
bool myUseGlobalTimeZone
Whether or not to use GMT time for sun/moon position (if true will)
Definition: DtDeTimeManager.h:143
Definition: DtDeTimeManager.h:43
Definition: DtDeTimeManager.h:39
Contains DLL export macros.