VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 
20 {
21 public:
22 
25  const DtObjectType& objectType, DtVrfObjectParameters* parameters,
26  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0);
27 
30  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0);
31 
34 
36  virtual ~DtWeatherStateRepository();
37 
42  virtual void resetToDefaults();
43 
44  static DtVrfObjectStateRepository* creator(const DtString& name,
45  DtVrfObject* vrfObject, const DtObjectType& objectType,
46  DtVrfObjectParameters* parameters, DtReaderWriterRegistry* parentRegistry);
47 
49  isWeatherStateRepository(DtSimObjectStateRepository* repository);
50 
52  virtual DtSimObjectStateRepository* clone(const DtString& rwName = DtString::nullString(),
53  DtReaderWriterRegistry* parentRegistry = 0) const;
54 
55  virtual DtString type() const;
56 
58 
59  virtual void setAirTurbidity(double value);
60  virtual double airTurbidity() const;
62 
64 
65  virtual void setAmbientAirTemperature(double value);
66  virtual double ambientAirTemperature() const;
68 
70 
71  virtual void setCloudState(DtVrfWeatherCloudState current);
72  virtual DtVrfWeatherCloudState cloudState() const;
74 
76 
77  virtual void setPrecipitationIntensity(double value);
78  virtual double precipitationIntensity() const;
80 
82 
83  virtual void setPrecipitationType(DtVrfWeatherPrecipitationType value);
84  virtual DtVrfWeatherPrecipitationType precipitationType() const;
86 
88 
89  virtual void setWindSpeed(double value);
90  virtual double windSpeed() const;
92 
94 
95  virtual void setWindDirection(double value);
96  virtual double windDirection() const;
98 
100 
101  virtual void setVisibility(double value);
102  virtual double visibility() const;
104 
106 
107  virtual void setPriority(int value);
108  virtual int priority() const;
110 
112 
113  virtual void setUnderwaterVisibility(double underwaterVisibility);
114  virtual double underwaterVisibility() const;
116 
118 
119  virtual void setSurfaceTransparency(double transparency);
120  virtual double surfaceTransparency() const;
122 
124 
125  virtual void setWaterCurrentSpeed(double waterCurrentSpeed);
126  virtual double waterCurrentSpeed() const;
128 
130 
131  virtual void setWaterCurrentDirection(double waterCurrentDirection);
132  virtual double waterCurrentDirection() const;
134 
136 
137  virtual void setAmbientWaterTemperature(double waterTemperature);
138  virtual double ambientWaterTemperature() const;
140 
142 
143  virtual void setTidalOffset(double tidalOffset);
144  virtual double tidalOffset() const;
146 
149 
150  virtual void setTidalDirection(bool tidalDirection);
151  virtual bool tidalDirection() const;
153 
155 
156  virtual void setSwellState(unsigned int state);
157  virtual unsigned int swellState() const;
159 
161 
162  virtual void setSwellStateDirection(double direction);
163  virtual double swellStateDirection() const;
165 
167 
168  virtual void setSeaState(unsigned int state);
169  virtual unsigned int seaState() const;
171 
173 
174  virtual void setSeaStateDirection(double direction);
175  virtual double seaStateDirection() const;
177 
179 
180  virtual void setWindDrivenSeaStateEnabled(bool b);
181  virtual bool windDrivenSeaStateEnabled() const;
183 
185 
186  virtual void setChoppiness(double choppiness);
187  virtual double choppiness() const;
189 
191 
192  virtual void setSurgeDepth(double depth);
193  virtual double surgeDepth() const;
195 
197 
198  virtual void setFogHeight(double depth);
199  virtual double fogHeight() const;
201 
203 
204  virtual void setFogColor(const DtVector& color);
205  virtual const DtVector& fogColor() const;
207 
209 
210  virtual void setSnowAccumulation(double snow);
211  virtual double snowAccumulation() const;
213 
215 
216  virtual void setSnowMinimumAltitude(double snow);
217  virtual double snowMinimumAltitude() const;
219 
221 
222  virtual void setSnowRoadAccumulation(double snow);
223  virtual double snowRoadAccumulation() const;
225 
227 
228  virtual void setRainAccumulation(double rain);
229  virtual double rainAccumulation() const;
231 
234 
235  virtual void setThermoclineLayer1Depth(double depth);
236  virtual double thermoclineLayer1Depth() const;
237  virtual void setThermoclineLayer1Permeability(double depth);
238  virtual double thermoclineLayer1Permeability() const;
239  virtual void setThermoclineLayer2Depth(double depth);
240  virtual double thermoclineLayer2Depth() const;
241  virtual void setThermoclineLayer2Permeability(double depth);
242  virtual double thermoclineLayer2Permeability() const;
243  virtual void setThermoclineLayer3Depth(double depth);
244  virtual double thermoclineLayer3Depth() const;
245  virtual void setThermoclineLayer3Permeability(double depth);
246  virtual double thermoclineLayer3Permeability() const;
247  virtual void setThermoclineLayer4Depth(double depth);
248  virtual double thermoclineLayer4Depth() const;
249  virtual void setThermoclineLayer4Permeability(double depth);
250  virtual double thermoclineLayer4Permeability() const;
251  virtual void setThermoclineLayer5Depth(double depth);
252  virtual double thermoclineLayer5Depth() const;
253  virtual void setThermoclineLayer5Permeability(double depth);
254  virtual double thermoclineLayer5Permeability() const;
256 
257 private:
260 
261 protected:
264 
265 
270 
275 
281 
286 
292 
298 
304 
307 
313 
320 
326 
332 
338 
344 
351 
357 
363 
369 
375 
381 
388 
394 
400 
406 
412 
418 
424 
430 
436 
443 
450 
458 
466 
474 
483 };
484 
DtRwBoolean myTidalDirection
Parameter Name: tidal-direction Parameter Description: Direction of the tide Default Value: false Uni...
Definition: weatherStateRepository.h:356
DtVrfWeatherPrecipitationType
Definition: vrfWeatherStateEnums.h:18
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:59
DtRwInt myPriority
The priority that this weather area will take over overlapping weather areas.
Definition: weatherStateRepository.h:306
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtRwReal mySnowRoadAccumulation
Parameter Name: snow-road-accumulation Parameter Description: Snow road accumulation Default Value: 0...
Definition: weatherStateRepository.h:429
DtRwReal myRainAccumulation
Parameter Name: rain-accumulation Parameter Description: Rain accumulation Default Value: 0...
Definition: weatherStateRepository.h:435
DtRwReal myUnderwaterVisibility
Parameter Name: underwater-visibility Parameter Description: How far one can see and still distinguis...
Definition: weatherStateRepository.h:319
DtRwVector myFogColor
Parameter Name: fog-color Parameter Description: Fog color for Silver Lining (x = red...
Definition: weatherStateRepository.h:411
DtRwReal myTidalOffset
Parameter Name: tidal-offset Parameter Description: The value of sea level relative to the water poly...
Definition: weatherStateRepository.h:350
virtual DtSimObjectStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
Clone.
DtRwReal myWaterCurrentSpeed
Parameter Name: water-current-speed Parameter Description: How fast the water currents are moving Def...
Definition: weatherStateRepository.h:331
DtRwReal myFogHeight
Parameter Name: fog-height Parameter Description: Fog height for Silver Lining Default Value: 0...
Definition: weatherStateRepository.h:405
DtRwReal myThermoclineLayer5Depth
Parameter Name: "thermocline-layer5-depth" Parameter Description: Thermocline depth.
Definition: weatherStateRepository.h:480
DtRwReal myPrecipitationIntensity
Parameter Name: precipitation-intensity Parameter Description: Precipitation intensity Default Value:...
Definition: weatherStateRepository.h:285
*virtual const DtObjectType & objectType() const
The DtSimObjectStateRepository is an abstract base class (ABC) for all state repositories.
Definition: simObjectStateRepository.h:46
const DtVrfOverlayObjectStateRepository & operator=(const DtVrfOverlayObjectStateRepository &orig)
Assignment Operator.
Definition: readerWriterRegistry.h:39
DtRwReal myThermoclineLayer1Permeability
Parameter Name: "thermocline-layer1-permeability" Parameter Description: Thermocline depth...
Definition: weatherStateRepository.h:449
DtRwReal myAmbientWaterTemperature
Parameter Name: ambient-water-temperature Parameter Description: The ambient temperature of the water...
Definition: weatherStateRepository.h:343
Description: This repository holds all information that is common to all the forms of all entity/aggr...
Definition: vrfObjectStateRepository.h:87
This repository holds all information that is common to all the forms of all objects within VR-Forces...
Definition: weatherStateRepository.h:19
DtRwReal myWindDirection
Parameter Name: wind-direction Parameter Description: Indicates what direction the wind is blowing fr...
Definition: weatherStateRepository.h:303
Definition: objectType.h:27
Definition: rwVector.h:23
DtRwInt myCloudState
Parameter Name: cloud-state Parameter Description: A string describing the cloud state Clear...
Definition: weatherStateRepository.h:280
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwReal mySnowMinimumAltitude
Parameter Name: snow-minimum-altitude Parameter Description: Snow minimum altitude Default Value: 0...
Definition: weatherStateRepository.h:423
DtRwReal myAirTurbidity
Parameter Name: air-turbidity Parameter Description: Turbidity of the air Default Value: 0...
Definition: weatherStateRepository.h:269
DtRwReal myThermoclineLayer2Permeability
Definition: weatherStateRepository.h:457
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myThermoclineLayer4Depth
Parameter Name: "thermocline-layer4-depth" Parameter Description: Thermocline depth.
Definition: weatherStateRepository.h:472
DtRwBoolean myWindDrivenSeaStateEnabled
Parameter Name: wind-driven-sea-state-enabled Parameter Description: Determines if the sea state is s...
Definition: weatherStateRepository.h:387
DtRwInt mySwellState
Parameter Name: swell-state Parameter Description: Swell state according to the Douglas Sea Scale Def...
Definition: weatherStateRepository.h:362
DtRwReal myThermoclineLayer4Permeability
Definition: weatherStateRepository.h:473
DtRwReal myThermoclineLayer2Depth
Parameter Name: "thermocline-layer2-depth" Parameter Description: Thermocline depth.
Definition: weatherStateRepository.h:456
virtual DtString type() const
returns DtSimObjectStateRepositoryType
DtRwReal myWindSpeed
Parameter Name: wind-speed Parameter Description: Speed of the wind Default Value: 0...
Definition: weatherStateRepository.h:297
static DtVrfObjectStateRepository * creator(const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry)
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtVrfWeatherCloudState
Definition: vrfWeatherStateEnums.h:28
DtRwInt myPrecipitationType
Parameter Name: precipitation-type Parameter Description: A string describing the type of precipitati...
Definition: weatherStateRepository.h:291
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwReal myThermoclineLayer1Depth
Parameter Name: "thermocline-layer1-depth" Parameter Description: Thermocline depth.
Definition: weatherStateRepository.h:442
DtRwReal myAmbientAirTemperature
Parameter Name: ambient-air-temperature Parameter Description: Ambient temperature of the air in Cels...
Definition: weatherStateRepository.h:274
DtRwReal mySeaStateDirection
Parameter Name: sea-state-direction Parameter Description: Direction of the sea state for Triton Defa...
Definition: weatherStateRepository.h:380
DtRwReal mySurfaceTransparency
Parameter Name: surface-transparency Parameter Description: Surface transparency (only affects the vi...
Definition: weatherStateRepository.h:325
Definition: vrfOverlayObjectStateRepository.h:29
DtRwInt mySeaState
Parameter Name: sea-state Parameter Description: Sea state according to the Douglas Sea Scale Default...
Definition: weatherStateRepository.h:374
DtRwReal myChoppiness
Parameter Name: choppiness Parameter Description: Wave choppiness for Triton Default Value: 0...
Definition: weatherStateRepository.h:393
DtRwReal myWaterCurrentDirection
Parameter Name: water-current-direction Parameter Description: The direction the water currents are f...
Definition: weatherStateRepository.h:337
DtRwReal myThermoclineLayer5Permeability
Definition: weatherStateRepository.h:481
DtRwReal myVisibility
Parameter Name: visibility Parameter Description: How far one can see and still distinguish things De...
Definition: weatherStateRepository.h:312
DtRwReal myThermoclineLayer3Depth
Parameter Name: "thermocline-layer3-depth" Parameter Description: Thermocline depth.
Definition: weatherStateRepository.h:464
DtRwReal mySwellStateDirection
Parameter Name: swell-state-direction Parameter Description: Direction of the swell for Triton Defaul...
Definition: weatherStateRepository.h:368
DtRwReal mySnowAccumulation
Parameter Name: snow-accumulation Parameter Description: Snow accumulation Default Value: 0...
Definition: weatherStateRepository.h:417
DtRwReal mySurgeDepth
Parameter Name: surge-depth Parameter Description: Surge depth for Triton Default Value: 0...
Definition: weatherStateRepository.h:399
DtRwReal myThermoclineLayer3Permeability
Definition: weatherStateRepository.h:465

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)