VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes | Static Private Attributes
makVrv::DtBeaufortWindScale Class Reference

The DtBeaufortWindScale is a utility class for converting wind speeds to/from the Beaufort Scale as described by Wikipedia.

Public Types

enum  Scale {
  Scale::Calm = 0, Scale::LightAir, Scale::LightBreeze, Scale::GentleBreeze,
  Scale::ModerateBreeze, Scale::FreshBreeze, Scale::StrongBreeze, Scale::HighWind,
  Scale::Gale, Scale::StrongGale, Scale::Storm, Scale::ViolentStorm,
  Scale::Hurricane, Scale::MaxBeaufortScale
}
 

Public Member Functions

 DtBeaufortWindScale (DtBeaufortWindScale::Scale index=Scale::Calm, const std::string &name=std::string(""), float minimum=0.0, float maximum=0.0)
 

Static Public Member Functions

Conversion functions:
static std::string convertIndexToName (DtBeaufortWindScale::Scale index)
 
static DtBeaufortWindScale::Scale convertNameToIndex (const std::string &name)
 
static float convertIndexToWindSpeed (DtBeaufortWindScale::Scale index)
 
static DtBeaufortWindScale::Scale convertWindSpeedToIndex (float speed)
 

Private Types

typedef std::vector
< DtBeaufortWindScale
WindSpeedList
 

Private Attributes

DtBeaufortWindScale::Scale myIndex
 
std::string myName
 
float myMinimum
 
float myMaximum
 

Static Private Attributes

static WindSpeedList myStates
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
Calm 
LightAir 
LightBreeze 
GentleBreeze 
ModerateBreeze 
FreshBreeze 
StrongBreeze 
HighWind 
Gale 
StrongGale 
Storm 
ViolentStorm 
Hurricane 
MaxBeaufortScale 

Constructor & Destructor Documentation

makVrv::DtBeaufortWindScale::DtBeaufortWindScale ( DtBeaufortWindScale::Scale  index = Scale::Calm,
const std::string &  name = std::string(""),
float  minimum = 0.0,
float  maximum = 0.0 
)

Member Function Documentation

static std::string makVrv::DtBeaufortWindScale::convertIndexToName ( DtBeaufortWindScale::Scale  index)
static

Conversion between wind-speed index and name.

static DtBeaufortWindScale::Scale makVrv::DtBeaufortWindScale::convertNameToIndex ( const std::string &  name)
static

Conversion between wind-speed index and name.

static float makVrv::DtBeaufortWindScale::convertIndexToWindSpeed ( DtBeaufortWindScale::Scale  index)
static

Conversion between wind-speed index and wind-speed.

Note
All wind-speeds are measured in meters per second.
static DtBeaufortWindScale::Scale makVrv::DtBeaufortWindScale::convertWindSpeedToIndex ( float  speed)
static

Conversion between wind-speed index and wind-speed.

Note
All wind-speeds are measured in meters per second.

Member Data Documentation

DtBeaufortWindScale::Scale makVrv::DtBeaufortWindScale::myIndex
private
std::string makVrv::DtBeaufortWindScale::myName
private
float makVrv::DtBeaufortWindScale::myMinimum
private
float makVrv::DtBeaufortWindScale::myMaximum
private
WindSpeedList makVrv::DtBeaufortWindScale::myStates
staticprivate

The documentation for this class was generated from the following file:

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)