![]() |
VR-Forces 5.0.2 Developer's Guide
|
The logic for displaying/editing the environment conditions.

Public Member Functions | |
| DtEnvironmentConditionsLogic (DtDe &de, DtEnvironmentInterface &environment, DtEnvironmentConditionsInterface &iface, DtPersistenceControlsInterface &persistanceIface) | |
| virtual | ~DtEnvironmentConditionsLogic () |
| virtual void | connectToInterface () |
Static Public Attributes | |
| static const DtEnvironmentConditionsInterface::DtUnicodeList | CloudTypeNames |
| makVrv::DtEnvironmentConditionsLogic::DtEnvironmentConditionsLogic | ( | DtDe & | de, |
| DtEnvironmentInterface & | environment, | ||
| DtEnvironmentConditionsInterface & | iface, | ||
| DtPersistenceControlsInterface & | persistanceIface | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
static |
Converts the provided altitude from the unit of measurement used by the Environment Conditions Widget for elevational configurations' base MSL altitude, which is Feet, to Meters.
|
static |
Converts the provided altitude from Meters to the unit of measurement used by the Environment Conditions Widget for elevational configurations' base MSL altitude, which is Feet.
|
static |
Converts the provided wind speed from the unit of measurement used by the Environment Conditions Widget for elevational configurations' wind speed, which is whatever is set for the 'Weather'/'Wind Speed' display unit, to Meters Per Second.
|
static |
Converts the provided wind speed from Meters Per Second to the unit of measurement used by the Environment Conditions Widget for elevational configurations' wind speed, which is whatever is set for the 'Weather'/'Wind Speed' display unit.
|
static |
Converts the provided wind direction from the unit of measurement used by the Environment Conditions Widget for elevational configurations' wind direction, which is degrees, to radians.
|
static |
Converts the provided wind direction from radians to the unit of measurement used by the Environment Conditions Widget for elevational configurations' wind direction, which is degrees. This function will never return 0.0, instead it will return 360.0.
|
static |
Converts the provided visibility distance from the unit of measurement used by the Environment Conditions Widget for elevational configurations' visibility distance, which is whatever is set for the 'Weather'/'Visibility' display unit, to Meters.
|
static |
Converts the provided visibility distance from Meters to the unit of measurement used by the Environment Conditions Widget for elevational configurations' visibility distance, which is whatever is set for the 'Weather'/'Visibility' display unit.
|
static |
Converts the provided numerical value expressing sky coverage, in non-normalized Oktas (0-8), to normalized Oktas which is what VR-Vantage uses when processing sky coverage.
|
static |
Converts the provided numerical value expressing sky coverage, in normalized Oktas (0-1), to non-normalized Oktas for display by the Environment Conditions Widget for elevational configurations' sky coverage.
|
static |
|
static |
|
static |
Utility function to set the Non-VRV visualizable configurations editable state.
|
protectedvirtual |
Handle a request to import the environment from a configuration file.
|
protectedvirtual |
Handle a request to export the current environment to a configuration file.
|
protectedvirtual |
Import the environment from a configuration file.
| [in] | file | is the name of the configuration file. |
|
protectedvirtual |
Export the current environment to a configuration file.
| [in] | file | is the name of the configuration file. |
|
protectedvirtual |
Handle a request to restore the environment previous settings.
|
protectedvirtual |
Handle a request to restore the environment to factory settings.
|
protectedvirtual |
Handle if the scene (and thus environment) has been created (or re-created)
|
protectedvirtual |
Handle any atmospheric change. Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle any precipitation change. Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change in the ground snow accumulation depth Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change in the road snow accumulation depth Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change in the snow minimum elevation Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change in the ground elvation transition Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change in the ground rain accumulation depth Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change to fog ceiling height. Changes are driven from the simulation/environment.
| [in] | altitude | is the fog ceiling height in meters. |
|
protectedvirtual |
Handle a change to fog color. Changes are driven from the simulation/environment.
| [in] | color | is the fog color in normalized values. |
|
protectedvirtual |
Handle a removal of an elevational configuration. Changes are driven from the simulation/environment.
| [in] | baseMSLAltitude | The MSL altitude, in meters, associated the elevational configuration being updated |
|
protectedvirtual |
Handle a change in base MSL altitude of an elevational configuration. Changes are driven from the simulation/environment.
| [in] | oldBaseMSLAltitude | The MSL altitude, in meters, associated the elevational configuration being updated |
| [in] | newBaseMSLAltitude | The new MSL altitude, in meters, for the elevational configuration being updated |
|
protectedvirtual |
Handle an addition of an elevational configuration. Changes are driven from the simulation/environment.
| [in] | baseMSLAltitude | The MSL altitude, in meters, associated the elevational configuration being updated |
| [in] | speed | is the speed of the wind, in meters per second. |
| inv] | radians is the direction in radians clockwise from true north. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic, and makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle an update to an elevational configuration. Changes are driven from the simulation/environment.
| [in] | baseMSLAltitude | The MSL altitude, in meters, associated the elevational configuration being updated |
| [in] | speed | is the speed of the wind, in meters per second. |
| inv] | radians is the direction in radians clockwise from true north. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic, and makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle a change to sea state. Changes are driven from the simulation/environment.
| [in] | state | is the Douglas Sea State. |
|
protectedvirtual |
Handle a change to sea state direction. Changes are driven from the simulation/environment.
| inv] | radians is the direction in radians clockwise from north. |
|
protectedvirtual |
Handle a change to the wind-driven sea state flag. Changes are driven from the simulation/environment.
| [in] | enabled | is the flag for wind-driven sea state. |
|
protectedvirtual |
Handle a change to swell state. Changes are driven from the simulation/environment.
| [in] | state | is the Douglas Swell State. |
|
protectedvirtual |
Handle a change to swell state direction. Changes are driven from the simulation/environment.
| [in] | radians | is the direction in radians clockwise from north. |
|
protectedvirtual |
Handle a change to wind fetch. Changes are driven from the simulation/environment.
| [in] | distance | is the wind fetch in meters. |
|
protectedvirtual |
Handle a change to sea choppiness. Changes are driven from the simulation/environment.
| [in] | chop | is a normalized value of choppiness. |
|
protectedvirtual |
Handle a change to whether underwater visibility is used Changes are driven from the simulation/environment.
| [in] | enable | (or not) |
|
protectedvirtual |
Handle a change to underwater visibility. Changes are driven from the simulation/environment.
| [in] | distance | is the underwater visibility in meters. |
|
protectedvirtual |
Handle a change to coastal-water transparency. Changes are driven from the simulation/environment.
| [in] | transparency | is a normalized value of transparency. |
|
protectedvirtual |
Handle a change to surge depth. Changes are driven from the simulation/environment.
| [in] | depth | is the surge depth in meters. |
|
protectedvirtual |
Handle a change to the depth offset. Changes are driven from the simulation/environment.
| [in] | offset | is the depth offset in meters. |
|
protectedvirtual |
Changes are driven from the simulation/environment.
|
protectedvirtual |
Changes are driven from the simulation/environment.
|
protectedvirtual |
Handle a change to displayed units.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle an environment condition selection change.
| [in] | name | is the name of the environment condition to select. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle when a new environment condition is added.
| [in] | name | is the name of the environment condition to add. |
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic, and makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle when a environment condition should be removed.
| [in] | name | is the name of the environment condition to remove. |
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic, and makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle when the current environment condition should be saved.
| [in] | name | is the name to save the current conditions as. |
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle when a default environment condition should be set.
| [in] | name | is the name of the default environment conditions. |
|
protectedvirtual |
Handle the change of wind direction in the dial widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic, and makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle the change of wind speed in the dial widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic, and makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle a creation of an elevational configuration.
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle a deletion of an elevational configuration by its base MSL altitude, in feet.
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle an update to a elevational configuration's base MSL altitude, in feet.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic, and makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
protectedvirtual |
Handle an update of an elevational configuration. The base MSL altitude is in feet. The wind speed is in knots. The wind direction is in degrees from True North (clockwise). The visibility distance is in whatever unit of measurement is specified by the Weather/Visibility display unit. The obscurant is expressed by an enumerated value.
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic, and makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to precipitation type. Changes from the environment widget.
| [in] | type | is the type of precipitation (None, Rain, Snow). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to precipitation intensity. Changes from the environment widget.
| [in] | value | is the intensity of precipitation (0.0 - 1.0). |
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic, and makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a lightning present change. Changes from the environment widget.
| [in] | whether | or not lightning is present or not |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change in the ground snow accumulation depth Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change in the ground snow accumulation depth Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change in the ground snow elevation transition Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change in the ground snow minimum elevation Changes from the environment widget.
|
protectedvirtual |
Handle a change in the ground rain accumulation depth Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to fog height. Changes from the environment widget.
| [in] | height | is the ceiling height (in commanded units). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to fog color. Changes from the environment widget.
| [in] | red | is the normalized color component from 0.0 to 1.0. |
| [in] | green | is the normalized color component from 0.0 to 1.0. |
| [in] | blue | is the normalized color component from 0.0 to 1.0. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to sea-swell state. Changes from the environment widget.
| [in] | index | is the index of the sea-swell. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to swell state direction. Changes from the environment widget.
| [in] | degree | is the direction of the swell state. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to the wind-driven sea-state flag. Changes from the environment widget.
| [in] | enabled | is the flag for wind-driven sea-state. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to sea-state. Changes from the environment widget.
| [in] | index | is the index of the sea-state. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to sea-state direction. Changes from the environment widget.
| [in] | degree | is the direction of the sea-state. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to surface transparency. Changes from the environment widget.
| [in] | alpha | is the amount of alpha for the sea-surface (0.0 - 1.0). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to the underwater visibility enabled state. Changes from the environment widget.
| [in] | enable | (or not) |
|
protectedvirtual |
Handle a change to the underwater visibility distance. Changes from the environment widget.
| [in] | distance | is the visible distance underwater. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to the water surface choppiness. Changes from the environment widget.
| [in] | chop | is the amount of choppiness (0.0 - 1.0). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to the ocean fetch. Changes from the environment widget.
| [in] | distance | is the is the distance for sea fetch. |
|
protectedvirtual |
Handle a change to the surge depth. Changes from the environment widget.
| [in] | distance | is the is the distance for surge depth. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to the depth offset. Changes from the environment widget.
| [in] | offset | is the is the depth offset distance. |
|
protectedvirtual |
Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Changes from the environment widget.
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to remote weather controls.
| [in] | value | is the enabled state for listening to remote weather. |
|
protectedvirtual |
Handle a request for remote weather update.
|
protectedvirtual |
Populate the widget with current environment settings.
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic, and makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Populate the widget with remote weather settings.
|
protectedvirtual |
Populate the widget with persistence settings.
|
protectedvirtual |
Dynamically blocks or unblocks signals from DtEnvironmentSignaler.
| [in] | blocked | if true, block signals |
Reimplemented in makVrf::DtSimulationCommandWidgetEnvironmentConditionsLogic.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |