![]() |
VR-Forces 4.8 Class Documentation
|
The logic for displaying/editing the environment conditions. More...

Public Member Functions | |
| DtEnvironmentConditionsLogic (DtDe &de, DtEnvironmentInterface &environment, DtEnvironmentConditionsInterface &iface, DtPersistenceControlsInterface &persistanceIface) | |
| CTOR. More... | |
| virtual | ~DtEnvironmentConditionsLogic () |
| DTOR. More... | |
Protected Member Functions | |
| virtual void | onChangeGroundSnowAccumulation (double depth) |
| Handle a change in the ground snow accumulation depth Changes from the environment widget. More... | |
| virtual void | onChangeRoadSnowAccumulation (double depth) |
| Handle a change in the ground snow accumulation depth Changes from the environment widget. More... | |
| virtual void | onChangeSnowMinimumElevation (double elevation) |
| Handle a change in the ground snow elevation transition Changes from the environment widget. More... | |
| virtual void | onChangeSnowElevationTransition (double elevation) |
| Handle a change in the ground snow minimum elevation Changes from the environment widget. More... | |
| virtual void | onChangeGroundRainAccumulation (double depth) |
| Handle a change in the ground rain accumulation depth Changes from the environment widget. More... | |
| virtual void | sendEnvironmentToGUI (bool initialSettings, bool setDefaultEnvironment) |
| Populate the widget with current environment settings. More... | |
| virtual void | sendRemoteWeatherToGUI () |
| Populate the widget with remote weather settings. More... | |
| virtual void | sendPersistenceToGUI () |
| Populate the widget with persistence settings. More... | |
Slots for handling reading/writing configuration. | |
| virtual void | on_import () |
| Handle a request to import the environment from a configuration file. More... | |
| virtual void | on_export () |
| Handle a request to export the current environment to a configuration file. More... | |
| virtual void | importSettings (const std::string &file) |
| Import the environment from a configuration file. More... | |
| virtual void | exportSettings (const std::string &file) |
| Export the current environment to a configuration file. More... | |
| virtual void | restoreDefaultSettings () |
| Handle a request to restore the environment previous settings. More... | |
| virtual void | restoreFactorySettings () |
| Handle a request to restore the environment to factory settings. More... | |
Slots for handling settings changed driven from the simulation. | |
| virtual void | sceneCreated () |
| Handle if the scene (and thus environment) has been created (or re-created) More... | |
| virtual void | atmosphericParametersChanged () |
| Handle any atmospheric change. More... | |
| virtual void | precipitationSettingsChanged () |
| Handle any precipitation change. More... | |
| virtual void | cloudCoverChanged (makArchives::DtCloudCoverType cloudCover) |
| Handle a change to cloud cover. More... | |
| virtual void | groundSnowAccumulationChanged () |
| Handle a change in the ground snow accumulation depth Changes are driven from the simulation/environment. More... | |
| virtual void | roadSnowAccumulationChanged () |
| Handle a change in the road snow accumulation depth Changes are driven from the simulation/environment. More... | |
| virtual void | snowMinimumElevationChanged () |
| Handle a change in the snow minimum elevation Changes are driven from the simulation/environment. More... | |
| virtual void | snowElevationTransitionChanged () |
| Handle a change in the ground elvation transition Changes are driven from the simulation/environment. More... | |
| virtual void | groundRainAccumulationChanged () |
| Handle a change in the ground rain accumulation depth Changes are driven from the simulation/environment. More... | |
| virtual void | fogHeightChanged (float altitude) |
| Handle a change to fog ceiling height. More... | |
| virtual void | fogColorChanged (const DtVector &color) |
| Handle a change to fog color. More... | |
| virtual void | windSpeedChanged (float speed) |
| Handle a change to wind speed. More... | |
| virtual void | windDirectionChanged (float radians) |
| Handle a change to wind direction. More... | |
| virtual void | seaStateChanged (unsigned int state) |
| Handle a change to sea state. More... | |
| virtual void | seaStateDirectionChanged (float radians) |
| Handle a change to sea state direction. More... | |
| virtual void | windDrivenSeaStateChanged (bool enabled) |
| Handle a change to the wind-driven sea state flag. More... | |
| virtual void | swellStateChanged (unsigned int state) |
| Handle a change to swell state. More... | |
| virtual void | swellStateDirectionChanged (float radians) |
| Handle a change to swell state direction. More... | |
| virtual void | windFetchChanged (float distance) |
| Handle a change to wind fetch. More... | |
| virtual void | seaChoppinessChanged (float chop) |
| Handle a change to sea choppiness. More... | |
| virtual void | underwaterVisibilityEnabledChanged (bool enable) |
| Handle a change to whether underwater visibility is used Changes are driven from the simulation/environment. More... | |
| virtual void | underwaterVisibilityChanged (double distance) |
| Handle a change to underwater visibility. More... | |
| virtual void | waterSurfaceTransparencyChanged (double transparency) |
| Handle a change to coastal-water transparency. More... | |
| virtual void | surgeDepthChanged (double depth) |
| Handle a change to surge depth. More... | |
| virtual void | depthOffsetChanged (double offset) |
| Handle a change to the depth offset. More... | |
| virtual void | tidalCurrentSpeedChanged (double speed) |
| Changes are driven from the simulation/environment. More... | |
| virtual void | tidalCurrentDirectionChanged (double direction) |
| Changes are driven from the simulation/environment. More... | |
| virtual void | displayUnitsChanged (int type, int unit) |
| Handle a change to displayed units. More... | |
| virtual void | slot_cloudCoverAdded (makArchives::DtCloudCoverType coverType, const std::string &coverName) |
| Handle a newly created cloud cover. More... | |
| virtual void | slot_cloudCoverRemoved (makArchives::DtCloudCoverType coverType) |
| Handle the removal of a cloud cover. More... | |
Slots for handling settings changed driven from the GUI. | |
| virtual void | onSelectEnvironmentConditions (const DtUnicode &name) |
| virtual void | onAddEnvironmentConditions (const DtUnicode &name) |
| Handle when a new environment condition is added. More... | |
| virtual void | onRemoveEnvironmentConditions (const DtUnicode &name) |
| Handle when a environment condition should be removed. More... | |
| virtual void | onSaveEnvironmentConditions (const DtUnicode &name) |
| Handle when the current environment condition should be saved. More... | |
| virtual void | onSetDefaultEnvironmentConditions (const DtUnicode &name) |
| Handle when a default environment condition should be set. More... | |
| virtual void | onChangeWindSpeed (double speed) |
| virtual void | onChangeWindDirection (double degree) |
| Handle a change to wind direction. More... | |
| virtual void | onChangePrecipitationType (int type) |
| Handle a change to precipitation type. More... | |
| virtual void | onChangePrecipitationIntensity (double value) |
| Handle a change to precipitation intensity. More... | |
| virtual void | onChangeVisibility (double distance) |
| Handle a change to visibility. More... | |
| virtual void | onChangeCloudCover (makArchives::DtCloudCoverType cloudCover) |
| Handle a change to cloud cover. More... | |
| virtual void | onChangeFogHeight (double height) |
| virtual void | onChangeFogColor (double red, double green, double blue) |
| Handle a change to fog color. More... | |
| virtual void | onChangeSwellState (int index) |
| virtual void | onChangeSwellStateDirection (double degree) |
| Handle a change to swell state direction. More... | |
| virtual void | onEnableWindDrivenSeaState (bool enabled) |
| Handle a change to the wind-driven sea-state flag. More... | |
| virtual void | onChangeSeaState (int index) |
| Handle a change to sea-state. More... | |
| virtual void | onChangeSeaStateDirection (double degree) |
| Handle a change to sea-state direction. More... | |
| virtual void | onChangeSeaSurfaceTransparency (double alpha) |
| virtual void | onChangeUnderWaterVisibilityEnabled (bool enable) |
| Handle a change to the underwater visibility enabled state. More... | |
| virtual void | onChangeUnderWaterVisibility (double distance) |
| Handle a change to the underwater visibility distance. More... | |
| virtual void | onChangeSeaChoppiness (double chop) |
| Handle a change to the water surface choppiness. More... | |
| virtual void | onChangeWindFetch (double distance) |
| Handle a change to the ocean fetch. More... | |
| virtual void | onChangeSurgeDepth (double distance) |
| Handle a change to the surge depth. More... | |
| virtual void | onChangeDepthOffset (double offset) |
| Handle a change to the depth offset. More... | |
| virtual void | onChangeTidalCurrentSpeed (double speed) |
| Changes from the environment widget. More... | |
| virtual void | onChangeTidalCurrentDirection (double direction) |
| Changes from the environment widget. More... | |
| virtual void | onChangeRemoteSettings (bool enable) |
| virtual void | onRequestRemoteSettings () |
| Handle a request for remote weather update. More... | |
The logic for displaying/editing the environment conditions.
| makVrv::DtEnvironmentConditionsLogic::DtEnvironmentConditionsLogic | ( | DtDe & | de, |
| DtEnvironmentInterface & | environment, | ||
| DtEnvironmentConditionsInterface & | iface, | ||
| DtPersistenceControlsInterface & | persistanceIface | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
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 to cloud cover.
Changes are driven from the simulation/environment.
| [in] | type | of cloud cover |
|
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 change to wind speed.
Changes are driven from the simulation/environment.
| [in] | speed | is the wind speed. |
|
protectedvirtual |
Handle a change to wind direction.
Changes are driven from the simulation/environment.
| [in] | radians | is the direction the wind blows from. |
|
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.
| [in] | type | is the type of unit changed. |
| [in] | unit | is the new active display unit for the type. |
|
protectedvirtual |
Handle a newly created cloud cover.
| [in] | coverType | is the type of new cloud cover |
| [in] | coverName | is the name of the new cloud cover |
|
protectedvirtual |
Handle the removal of a cloud cover.
| [in] | coverType | is the type of cloud cover removed |
|
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::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle when a environment condition should be removed.
| [in] | name | is the name of the environment condition to remove. |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle when the current environment condition should be saved.
| [in] | name | is the name to save the current conditions as. |
|
protectedvirtual |
Handle when a default environment condition should be set.
| [in] | name | is the name of the default environment conditions. |
|
protectedvirtual |
Handle a change to wind speed. Changes from the environment widget
| [in] | speed | is the speed of the wind (in commanded units). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to wind direction.
Changes from the environment widget
| [in] | degree | is the direction of the wind. |
Reimplemented in 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 - 100.0). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to visibility.
Changes from the environment widget
| [in] | distance | is the visible distance (in commanded units). |
Reimplemented in makVrf::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Handle a change to cloud cover.
Changes from the environment widget
| [in] | the | new cloud cover |
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::DtVrfEnvironmentConditionsWeatherLogic.
|
protectedvirtual |
Populate the widget with remote weather settings.
|
protectedvirtual |
Populate the widget with persistence settings.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |