VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBeaufortWindScale.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 
14 #include <string>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
25  {
26  public:
27 
29  enum class Scale
30  {
31  Calm = 0,
32  LightAir,
33  LightBreeze,
34  GentleBreeze,
35  ModerateBreeze,
36  FreshBreeze,
37  StrongBreeze,
38  HighWind,
39  Gale,
40  StrongGale,
41  Storm,
42  ViolentStorm,
43  Hurricane,
44  MaxBeaufortScale
45  };
46 
48  const std::string& name = std::string(""),
49  float minimum = 0.0, float maximum = 0.0);
50 
53 
56  static std::string convertIndexToName(DtBeaufortWindScale::Scale index);
57  static DtBeaufortWindScale::Scale convertNameToIndex(const std::string& name);
59 
63  static float convertIndexToWindSpeed(DtBeaufortWindScale::Scale index);
64  static DtBeaufortWindScale::Scale convertWindSpeedToIndex(float speed);
66 
68 
69  private:
71  std::string myName;
72  float myMinimum;
73  float myMaximum;
74 
75  typedef std::vector<DtBeaufortWindScale> WindSpeedList;
77  };
78 
79 }
The DtBeaufortWindScale is a utility class for converting wind speeds to/from the Beaufort Scale as d...
Definition: DtBeaufortWindScale.h:24
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
float myMinimum
Definition: DtBeaufortWindScale.h:72
float myMaximum
Definition: DtBeaufortWindScale.h:73
DtBeaufortWindScale::Scale myIndex
Definition: DtBeaufortWindScale.h:70
Contains DLL export macros.
std::vector< DtBeaufortWindScale > WindSpeedList
Definition: DtBeaufortWindScale.h:75
Scale
Definition: DtBeaufortWindScale.h:29
std::string myName
Definition: DtBeaufortWindScale.h:71
static WindSpeedList myStates
Definition: DtBeaufortWindScale.h:76

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)