VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfEnvironmentConditionsWeatherLogic.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
17 
18 namespace makVrv
19 {
20  class DtEnvironmentInterface;
21  class DtEnvironmentConditionsInterface;
22 }
23 
24 namespace makVrf
25 {
26  class DtVrfEnvironmentConditionsWeatherInterface;
27 
32  {
33 
34  public:
35 
38  makVrv::DtEnvironmentInterface& environment,
40  makVrv::DtPersistenceControlsInterface& persistanceIface);
41 
43  virtual ~DtVrfEnvironmentConditionsWeatherLogic() override;
44 
46  {
47  return myEnvironment;
48  }
49 
50  static makVrv::DtEnvironmentConditionsInterface::DtUnicodeList vrfLocalCloudTypesOnly(
52 
53  protected:
54  virtual void updateWeatherConditions(const makArchives::DtEnvironmentRecord& rec);
55 
59  virtual void onChangeBlowingParticulateMatter(int);
60 
64  virtual void onChangeLightningPresent(bool lightningPresent) override;
65 
69  virtual void onChangePrecipitationType(int type) override;
70 
74  virtual void onChangePrecipitationIntensity(double value) override;
75 
78  virtual void onChangeAmbientAirTemperature(double value);
79 
82  virtual void onChangeAmbientAirPressure(double value);
83 
86  virtual void onChangeAirTemperatureAltitude(double value);
87 
90  virtual void onChangeAirPressureAltitude(double value);
91 
94  virtual void onChangeAirTemperatureAltitudeIsSeaLevel(bool value);
95 
98  virtual void onChangeAirPressureAltitudeIsSeaLevel(bool value);
99 
102  virtual void onChangeSeaLevelWaterConcentration(double value);
103 
107  virtual void onChangeSwellState(int index) override;
108 
112  virtual void onChangeSwellStateDirection(double degree) override;
113 
117  virtual void onEnableWindDrivenSeaState(bool enabled) override;
118 
122  virtual void onChangeSeaState(int index) override;
123 
127  virtual void onChangeSeaStateDirection(double degree) override;
128 
132  virtual void onChangeTidalCurrentSpeed(double) override;
133 
137  virtual void onChangeTidalCurrentDirection(double degree) override;
138 
142  virtual void onChangeSeaSurfaceTransparency(double alpha) override;
143 
147  virtual void onChangeUnderWaterVisibility(double distance) override;
148 
152  virtual void onChangeSeaChoppiness(double chop) override;
153 
157  virtual void onChangeWindFetch(double distance) override;
158 
162  virtual void onChangeDepthOffset(double offset) override;
163 
166  virtual void onChangeSurgeDepth(double distance) override;
167 
170  virtual void onChangeFogHeight(double height) override;
171 
174  virtual void onChangeFogColor(double red, double green, double blue) override;
175 
178  virtual void onChangeGroundSnowAccumulation(double snow) override;
179 
182  virtual void onChangeSnowMinimumElevation(double snow) override;
183 
186  virtual void onChangeRoadSnowAccumulation(double snow) override;
187 
190  virtual void onChangeGroundRainAccumulation(double rain) override;
191 
194  virtual void onSelectEnvironmentConditions(const makVrv::DtUnicode& name) override;
195 
198  virtual void sendChangeGlobalWeatherCommandForCurrentValues();
199 
200  virtual void ambientAirTemperatureChanged(float);
201  virtual void ambientAirPressureChanged(float);
202  virtual void airTemperatureAltitudeChanged(float);
203  virtual void airPressureAltitudeChanged(float);
204  virtual void airTemperatureAltitudeIsSeaLevelChanged(bool);
205  virtual void airPressureAltitudeIsSeaLevelChanged(bool);
206  virtual void seaLevelWaterConcentrationChanged(float);
207 
208  virtual void sendEnvironmentToGUI(bool initialSettings) override;
209  virtual void onAddEnvironmentConditions(const makVrv::DtUnicode& name) override;
210  virtual void onRemoveEnvironmentConditions(const makVrv::DtUnicode& name) override;
211 
213  virtual void onAddElevationalWind();
214 
217  virtual void onRemoveElevationalWind(float altitude);
218 
222  virtual void onUpdateElevationalConfiguration(float baseMSLAltitude, float windSpeed, float windDirection,
223  float visibilityDistance, makVrv::DtEnvironmentInterface::VisibilityObscurant obscurant,
224  makVrv::DtEnvironmentInterface::CloudType cloudType, float cloudDensity, int skyCoverage) override;
225 
228  virtual void onElevationalConfigurationAltitudeChanged(float newAltitude, float oldAltitude) override;
229 
230  virtual void sendEnvironmentConditionsToGUI();
231  virtual void updateWeatherConditions();
232 
233  virtual void sendElevationLevels();
234 
235  virtual void displayUnitsChanged() override;
236 
237  virtual void elevationalConfigurationAdded(makVrv::DtEnvironmentInterface::DtElevationalConfigurationRecord rec) override;
238 
239 
240  virtual void elevationalConfigurationUpdated(makVrv::DtEnvironmentInterface::DtElevationalConfigurationRecord rec) override;
241  virtual void onChangeWindSpeed(double value) override;
242  virtual void onChangeWindDirection(double value) override;
243  virtual void sendRemoteWeatherToGUI() override;
244  };
245 }
std::list< DtUnicode > DtUnicodeList
Definition: DtEnvironmentConditionsInterface.h:35
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Declaration for the makVrv::DtEnvironmentConditionsLogic class.
The logic for displaying/editing the environment conditions.
Definition: DtEnvironmentConditionsLogic.h:35
VisibilityObscurant
Definition: DtEnvironmentRecord.h:30
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
Record for an elevational configuration A record of this type consists of 1) a base MSL altitude...
Definition: DtEnvironmentRecord.h:251
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
The DtEnvironmentInterface is an interface class providing abstraction for different managers of envi...
Definition: DtEnvironmentInterface.h:40
virtual makVrv::DtEnvironmentInterface * environment() const
Definition: vrfEnvironmentConditionsWeatherLogic.h:45
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:45
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
Logic class for the DtVrfEnvironmentConditionsWeatherWidget.
Definition: vrfEnvironmentConditionsWeatherLogic.h:30
An abstract interface for a weather condition settings widget.
Definition: DtEnvironmentConditionsInterface.h:30
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:76
voidpf uLong offset
Definition: ioapi.h:42
CloudType
Cloud layer types.
Definition: DtCloudTypeMapper.h:35

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)