VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfWindLevelStateRecord.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2020 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
9 #include <vl/environmentalRecord.h>
10 #include <vlpi/disEnums.h>
11 
12 // This record will represent a wind layer in a weather area. A weather area can have multiples of these
13 // records and they should be ordered by altitude.
14 
16 {
17  DtNetEnvironmentalRecord myHeader;
18  DtNetU32 myRecordVersion;
19  DtNetFloat64 myBaseAltitude;
20  DtNetFloat64 myWindSpeed;;
21  DtNetFloat64 myWindDirection;
22  DtNetFloat64 myUnused1;
23  DtNetFloat64 myUnused2;
24  DtNetFloat64 myUnused3;
25 };
26 
29 {
30 public:
31  // Default Constructor. To function properly, the state record should be
32  // initialized with an entity type. If you don't know it yet at creation
33  // time, you can use this constructor; but call setEntityType() before
34  // using the appearance accessors.
36 
39  const DtVrfWindLevelStateRecord& orig);
40 
42 
43  // Assignment Operator
44  const DtVrfWindLevelStateRecord& operator=(
45  const DtVrfWindLevelStateRecord& orig);
46 
47  // Destructor
48  virtual ~DtVrfWindLevelStateRecord();
49 
50  // Clone. Return a copy of this instance.
51  virtual DtEnvironmentalRecord* clone() const;
52 
53  // See #myBaseAltitude
55  virtual void setBaseAltitude(double value);
56  virtual double baseAltitude() const;
58 
59  // See #myWindSpeed
61  virtual void setWindSpeed(double value);
62  virtual double windSpeed() const;
64 
65  // See #myWindDirection
67  virtual void setWindDirection(double value);
68  virtual double windDirection() const;
70 
71  // This doesn't need to be called explicitly. If any routine that needs
72  // the repository finds that it hasn't been created yet, it calls this
73  // method.
74  virtual bool createNetworkRepresentation();
75 
76  // returns the network representation of the environmental record
77  const DtNetWindLevelStateRecord* objStateNetRep() const;
78  DtNetWindLevelStateRecord* objStateNetRep();
79 
80  // used by the PDU class to fill in the network representation
81  virtual void setFromNet(const DtNetEnvironmentalRecord& buffer, int protocolVersion);
82 
83  virtual int netRepSize() const;
84 
85 protected:
86 
87  // Casts the 'this' pointer for changing elements in a const function.
88  DtVrfWindLevelStateRecord* self() const;
89 
90  virtual bool resizeNetRep(int newSize);
91 
92 protected:
94 };
DtNetFloat64 myWindSpeed
In meters (floor of wind layer – will be valid up to next layer) – MSL.
Definition: vrfWindLevelStateRecord.h:20
DtNetFloat64 myWindDirection
In m/s.
Definition: vrfWindLevelStateRecord.h:20
DtNetFloat64 myUnused1
In radians.
Definition: vrfWindLevelStateRecord.h:22
int myNetRepSize
Definition: vrfWindLevelStateRecord.h:93
DtNetFloat64 myBaseAltitude
Definition: vrfWindLevelStateRecord.h:19
DtNetFloat64 myUnused3
Definition: vrfWindLevelStateRecord.h:24
DtNetFloat64 myUnused2
Definition: vrfWindLevelStateRecord.h:23
DtNetU32 myRecordVersion
Definition: vrfWindLevelStateRecord.h:18
Definition: vrfWindLevelStateRecord.h:27
Definition: vrfWindLevelStateRecord.h:15
DtNetEnvironmentalRecord myHeader
Definition: vrfWindLevelStateRecord.h:17
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)