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  virtual bool setBlockWeatherConditionUpdates(bool);
55  {
56  return myBlockWeatherConditionUpdates;
57  }
58 
59  protected:
60  virtual void updateWeatherConditions(const makArchives::DtEnvironmentRecord& rec);
61 
65  virtual void onChangeBlowingParticulateMatter(int);
66 
70  virtual void onChangeLightningPresent(bool lightningPresent) override;
71 
75  virtual void onChangePrecipitationType(int type) override;
76 
80  virtual void onChangePrecipitationIntensity(double value) override;
81 
84  virtual void onChangeAmbientAirTemperature(double value);
85 
88  virtual void onChangeAmbientAirPressure(double value);
89 
92  virtual void onChangeAirTemperatureAltitude(double value);
93 
96  virtual void onChangeAirPressureAltitude(double value);
97 
100  virtual void onChangeAirTemperatureAltitudeIsSeaLevel(bool value);
101 
104  virtual void onChangeAirPressureAltitudeIsSeaLevel(bool value);
105 
108  virtual void onChangeSeaLevelWaterConcentration(double value);
109 
113  virtual void onChangeSwellState(int index) override;
114 
118  virtual void onChangeSwellStateDirection(double degree) override;
119 
123  virtual void onEnableWindDrivenSeaState(bool enabled) override;
124 
128  virtual void onChangeSeaState(int index) override;
129 
133  virtual void onChangeSeaStateDirection(double degree) override;
134 
138  virtual void onChangeTidalCurrentSpeed(double) override;
139 
143  virtual void onChangeTidalCurrentDirection(double degree) override;
144 
148  virtual void onChangeSeaSurfaceTransparency(double alpha) override;
149 
153  virtual void onChangeUnderWaterVisibility(double distance) override;
154 
158  virtual void onChangeSeaChoppiness(double chop) override;
159 
163  virtual void onChangeWindFetch(double distance) override;
164 
168  virtual void onChangeDepthOffset(double offset) override;
169 
172  virtual void onChangeSurgeDepth(double distance) override;
173 
176  virtual void onChangeFogHeight(double height) override;
177 
180  virtual void onChangeFogColor(double red, double green, double blue) override;
181 
184  virtual void onChangeGroundSnowAccumulation(double snow) override;
185 
188  virtual void onChangeSnowMinimumElevation(double snow) override;
189 
192  virtual void onChangeRoadSnowAccumulation(double snow) override;
193 
196  virtual void onChangeGroundRainAccumulation(double rain) override;
197 
200  virtual void onSelectEnvironmentConditions(const makVrv::DtUnicode& name) override;
201 
204  virtual void sendChangeGlobalWeatherCommandForCurrentValues();
205 
206  virtual void ambientAirTemperatureChanged(float);
207  virtual void ambientAirPressureChanged(float);
208  virtual void airTemperatureAltitudeChanged(float);
209  virtual void airPressureAltitudeChanged(float);
210  virtual void airTemperatureAltitudeIsSeaLevelChanged(bool);
211  virtual void airPressureAltitudeIsSeaLevelChanged(bool);
212  virtual void seaLevelWaterConcentrationChanged(float);
213 
214  virtual void sendEnvironmentToGUI(bool initialSettings) override;
215  virtual void onAddEnvironmentConditions(const makVrv::DtUnicode& name) override;
216  virtual void onRemoveEnvironmentConditions(const makVrv::DtUnicode& name) override;
217 
219  virtual void onAddElevationalConfiguration() override;
220 
223  virtual void onRemoveElevationalConfiguration(float altitude) override;
224 
228  virtual void onUpdateElevationalConfiguration(float baseMSLAltitude, float windSpeed, float windDirection,
229  float visibilityDistance, makVrv::DtEnvironmentInterface::VisibilityObscurant obscurant,
230  makVrv::DtEnvironmentInterface::CloudType cloudType, float cloudDensity, int skyCoverage) override;
231 
234  virtual void onElevationalConfigurationAltitudeChanged(float newAltitude, float oldAltitude) override;
235 
236  virtual void sendEnvironmentConditionsToGUI();
237  virtual void updateWeatherConditions();
238 
239  virtual void sendElevationLevels();
240 
241  virtual void displayUnitsChanged() override;
242 
243  virtual void elevationalConfigurationAdded(makVrv::DtEnvironmentInterface::DtElevationalConfigurationRecord rec) override;
244 
245 
246  virtual void elevationalConfigurationUpdated(makVrv::DtEnvironmentInterface::DtElevationalConfigurationRecord rec) override;
247  virtual void onChangeWindSpeed(double value) override;
248  virtual void onChangeWindDirection(double value) override;
249  virtual void sendRemoteWeatherToGUI() override;
250 
251  protected:
252  bool myBlockWeatherConditionUpdates = true;
253  bool myPresetJustSelected = false;
254  bool mySendingEnvironmentToGUI = false;
255  };
256 }
std::list< DtUnicode > DtUnicodeList
Definition: DtEnvironmentConditionsInterface.h:35
bool blockWeatherConditionUpdates() const
Definition: vrfEnvironmentConditionsWeatherLogic.h:54
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 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)