VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCloudLayer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <matrix/vlVector.h>
15 
16 #include <string>
17 
18 namespace makArchives
19 {
20  class DtCloudLayerRecord;
21 }
22 
23 
24 namespace makVrv
25 {
26  class DtDe;
27 
28  typedef long long DtCloudLayerId;
29 #define DtCloudLayerIdUndefined ((DtCloudLayerId) -1)
30 
31 
35  {
36  public:
38  DtCloudLayer();
39 
41  DtCloudLayer(const DtCloudLayer& orig);
42 
44  DtCloudLayer& operator=(const DtCloudLayer& orig);
45 
47  virtual ~DtCloudLayer();
48 
50  bool operator==(const DtCloudLayer& other) const;
51 
53  bool operator!=(const DtCloudLayer& other) const;
54 
56  virtual void getRecord(makArchives::DtCloudLayerRecord& record) const;
61  virtual void setFromRecord(const makArchives::DtCloudLayerRecord& record);
63 
65  virtual void setEnabledFlag(bool enabled);
67  virtual bool enabledFlag() const;
69 
71  virtual void setInfiniteFlag(bool infinite);
73  virtual bool infiniteFlag() const;
75 
77  virtual void setType(const std::string& type);
79  virtual const std::string& type() const;
81 
83  virtual void setPosition(const DtVector& position);
85  virtual const DtVector& position() const;
87 
89  virtual void setOrientation(float ori);
91  virtual float orientation() const;
93 
95  virtual void setCornerRadius(float radius);
103  virtual float cornerRadius() const;
105 
107  virtual void setWidth(double w);
109  virtual double width() const;
111 
113  virtual void setLength(double l);
115  virtual double length() const;
117 
119  virtual void setThickness(double t);
120  virtual double thickness() const;
122 
124  virtual void setDensity(float density);
126  virtual float density() const;
128 
130  virtual void setRelative(bool r);
132  virtual bool relative() const;
134 
136  virtual void setFadeAtAltitude(bool fade);
138  virtual bool fadeAtAltitude() const;
140 
142  virtual void setAltitudeIsHAT(bool isHAT);
144  virtual bool altitudeIsHAT() const;
145 
146  protected:
147 
148  //Is the cloud layer visible.
150 
151  //The type of cloud layer.
152  std::string myType;
153 
154  //Location
155  DtVector myPosition;
156 
157  // Orientation
159 
160  //Size
161  double myWidth;
162  double myLength;
163  double myThickness;
164 
165  //Parameters
166  float myDensity;
172  };
173 }
174 
175 
double myWidth
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:161
double myThickness
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:163
bool myEnabledFlag
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:149
double myLength
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:162
bool myFadeAtAltitudeFlag
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:170
bool myRelativeToObserverFlag
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:169
std::string myType
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:152
float myDensity
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:166
bool myAltitudeIsHATFlag
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:171
Record of a single cloud layer&#39;s settings.
Definition: DtCloudLayerRecord.h:17
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Representation of a single cloud layer.
Definition: DtCloudLayer.h:34
float myCornerRadius
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:167
bool myInfiniteFlag
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:168
float myOrientation
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:158
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:160
long long DtCloudLayerId
Definition: DtCloudLayer.h:26
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
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
DtVector myPosition
Set/Get whether altitude is actually treated as height above terrain.
Definition: DtCloudLayer.h:155
Contains DLL export macros.

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)