VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWeatherAreaObject.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtCloudLayer.h>
14 #include <vrvCore/DtUniqueID.h>
15 
16 #include <matrix/vlVector.h>
17 
18 
19 namespace makVrv
20 {
21  class DtDe;
22 
34  {
35  public:
38 
40  virtual ~DtWeatherAreaObject();
41 
43  DtWeatherAreaObject() = delete;
44 
46  DtWeatherAreaObject(const DtWeatherAreaObject &) = delete;
47 
49  DtWeatherAreaObject &operator=(const DtWeatherAreaObject &) = delete;
50 
54  virtual void setBounds(const DtVector& bounds, const float cornerRadius);
55 
60  virtual void setTransform(const DtVector& position, const float orientation);
61 
64  virtual const DtVector& position() const;
65 
68  virtual const float orientation() const;
69 
71  virtual const DtVector& bounds() const;
72 
74  virtual const float boundsCornerRadius() const;
75 
78  virtual void setPrecipitationIntensity(const float intensity);
79 
81  virtual const float precipitationIntensity() const;
82 
85  virtual void setPrecipitationType(const unsigned int type);
86 
88  virtual const unsigned int precipitationType() const;
89 
92  virtual void setGroundRainAccumulation(const float depth);
93 
95  virtual const float groundRainAccumulation() const;
96 
99  virtual void setFogColor(const DtVector& color);
100 
102  virtual const DtVector& fogColor() const;
103 
106  virtual void setVisibilityDistance(const float distance);
107 
109  virtual const float visibilityDistance() const;
110 
113  virtual void setOvercast(const float overcast);
114 
116  virtual const float overcast() const;
117 
120  virtual void setLightningEnabled(const bool enabled);
121 
123  virtual const bool lightningEnabled() const;
124 
128  virtual void setWind(const float direction, const float speed);
129 
131  virtual const float windDirection() const;
132 
134  virtual const float windSpeed() const;
135 
139  virtual void cloudLayerAdded(DtCloudLayerId layerId, int cloudType);
140 
143  virtual void cloudLayerRemoved(DtCloudLayerId layerId);
144 
145  protected:
146 
149 
152 
155 
157  unsigned int myPrecipitationType;
158 
160 
163  float myOvercast;
164 
166 
168  float myWindSpeed;
169  };
170 }
171 
172 
float myOrientation
Definition: DtWeatherAreaObject.h:151
float myPrecipitationIntensity
Definition: DtWeatherAreaObject.h:156
The weather area object represents a set localized environmental conditions such as local rain and fo...
Definition: DtWeatherAreaObject.h:33
DtVector myFogColor
Definition: DtWeatherAreaObject.h:161
DtUniqueID myUniqueId
Definition: DtWeatherAreaObject.h:148
float myGroundRainAccumulation
Definition: DtWeatherAreaObject.h:159
float myOvercast
Definition: DtWeatherAreaObject.h:163
DtDe & myDe
Definition: DtWeatherAreaObject.h:147
bool myLightningEnabled
Definition: DtWeatherAreaObject.h:165
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...
float myWindSpeed
Definition: DtWeatherAreaObject.h:168
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtVector myPosition
Definition: DtWeatherAreaObject.h:150
Contains vrvCore::DtCloudLayerRecord declaration.
unsigned int myPrecipitationType
Definition: DtWeatherAreaObject.h:157
float myWindDirection
Definition: DtWeatherAreaObject.h:167
long long DtCloudLayerId
Definition: DtCloudLayer.h:26
Contains makVrv::DtUniqueID type.
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:70
float myBoundsCornerRadius
Definition: DtWeatherAreaObject.h:154
DtVector myBounds
Definition: DtWeatherAreaObject.h:153
float myVisibilityDistance
Definition: DtWeatherAreaObject.h:162
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)