![]() |
VR-Forces 4.1.1 Class Documentation
|
Handles the environmental state of the simulation. More...
Public Member Functions | |
| DtEnvironmentalStateManager (DtSimManager *simManager) | |
| constructor | |
| virtual | ~DtEnvironmentalStateManager () |
| destructor | |
| virtual bool | init () |
| virtual void | tick () |
| virtual DtSimManager * | simManager () |
| virtual bool | globalEnvironmentSimulatedLocally () const |
| virtual bool | startEnvironmentSimulationLocally () |
| Starts simulating the global environment locally on this simulation engine. | |
| virtual void | setGlobalWeather (const DtChangeGlobalWeatherCommand &command) |
| Calls the appropriate setXXX() functions locally, depending on what is in the command. | |
| virtual void | setTimeOfDay (double secondsPastMidnight) |
| The current time of day, specified by the number of seconds passed midnight. | |
| virtual void | setTimeOfDay (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDay () const |
| virtual void | setTimeOfDayAdvancementSpeed (double speed) |
| The current time of day advancement speed. | |
| virtual void | setTimeOfDayAdvancementSpeed (const DtChangeTimeOfDayCommand &command) |
| virtual double | timeOfDayAdvancementSpeed () const |
| virtual void | setAirTurbidity (double factor) |
| Individual Environmental effects accessors Air Turbidity. | |
| virtual double | airTurbidity () const |
| Individual Environmental effects accessors Air Turbidity. | |
| virtual void | setCloudState (DtVrfWeatherCloudState current) |
| Cloud state enumeration. | |
| virtual DtVrfWeatherCloudState | cloudState () const |
| Cloud state enumeration. | |
| virtual void | setPrecipitationIntensity (double factor) |
| Precipitation Intensity. | |
| virtual double | precipitationIntensity () const |
| Precipitation Intensity. | |
| virtual void | setPrecipitationType (DtVrfWeatherPrecipitationType current) |
| Weather state enumeration. | |
| virtual DtVrfWeatherPrecipitationType | precipitationType () const |
| Weather state enumeration. | |
| virtual void | setWindSpeed (double value) |
| Wind speed in m/s. | |
| virtual double | windSpeed () const |
| Wind speed in m/s. | |
| virtual void | setWindDirection (double value) |
| Wind direction in radians. | |
| virtual double | windDirection () const |
| Wind direction in radians. | |
| virtual void | setVisibility (double value) |
| Visibility in meters. | |
| virtual double | visibility () const |
| Visibility in meters. | |
| virtual double | illumination (const DtVector &localPosition) const |
| Illumination in percentage (0 to 1.0) at a particular location. | |
Protected Member Functions | |
| virtual void | processObjectAdded (DtVrfObject *object) |
| virtual void | processObjectRemoved (DtVrfObject *object) |
| virtual void | createGlobalEnvironmentObject () |
| Creates a new locally simulated VRF object with the type returned from glovalEnvironmentObjectType(). | |
| virtual DtObjectType | globalEnvironmentObjectType () const |
| virtual DtEnvironmentalStateSetter * | createLocalEnvironmentalStateSetter () |
| virtual DtEnvironmentalStateSetter * | createRemoteEnvironmentalStateSetter () |
Static Protected Member Functions | |
| static void | objectAddedCallback (DtVrfObject *object, void *usr) |
| static void | objectRemovedCallback (DtVrfObject *object, void *usr) |
Protected Attributes | |
| DtSimManager * | mySimManager |
| DtVrfObject * | myGlobalEnvironmentObject |
| DtEnvironmentalStateSetter * | myEnvironmentalStateSetter |
| bool | myFirstTick |
Private Member Functions | |
| DtEnvironmentalStateManager (const DtEnvironmentalStateManager &orig) | |
| Not implemented. | |
| const DtEnvironmentalStateManager & | operator= (const DtEnvironmentalStateManager &orig) |
| Not implemented. | |
| DtEnvironmentalStateManager () | |
| Not implemented. | |
Handles the environmental state of the simulation.
Currently there is only one environmental state for the whole simulation. This manager provides access to the environmental state and is responsible for updating the environmental state from the network.
|
private |
Not implemented.
|
private |
Not implemented.
| DtEnvironmentalStateManager::DtEnvironmentalStateManager | ( | DtSimManager * | simManager | ) |
constructor
|
virtual |
destructor
|
private |
Not implemented.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Starts simulating the global environment locally on this simulation engine.
Only starts the local simulation if there is not one (remote or local) already running.
|
virtual |
Individual Environmental effects accessors Air Turbidity.
|
virtual |
Individual Environmental effects accessors Air Turbidity.
|
virtual |
Cloud state enumeration.
|
virtual |
Cloud state enumeration.
|
virtual |
Precipitation Intensity.
|
virtual |
Precipitation Intensity.
|
virtual |
Weather state enumeration.
|
virtual |
Weather state enumeration.
|
virtual |
Wind speed in m/s.
|
virtual |
Wind speed in m/s.
|
virtual |
Wind direction in radians.
|
virtual |
Wind direction in radians.
|
virtual |
Visibility in meters.
|
virtual |
Visibility in meters.
|
virtual |
Illumination in percentage (0 to 1.0) at a particular location.
Illumination cannot be set directly. It is a function of time of day.
|
virtual |
Calls the appropriate setXXX() functions locally, depending on what is in the command.
|
virtual |
The current time of day, specified by the number of seconds passed midnight.
|
virtual |
|
virtual |
|
virtual |
The current time of day advancement speed.
|
virtual |
|
virtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Creates a new locally simulated VRF object with the type returned from glovalEnvironmentObjectType().
Sets this new object to myGlovalEnvironmentObject, and sets up myEnvironmentalStateSetter.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |