VR-Forces 4.8 Class Documentation
 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::DtDouglasSeaState Class Reference

The DtDouglasSeaState is a utility class for converting wave heights to/from the Douglas Sea Scale as described by Wikipedia. More...

Public Types

enum  Scale {
  CalmGlassy = 0, CalmRippled, Smooth, Slight,
  Moderate, Rough, VeryRough, High,
  VeryHigh, Phenomenal, MaxDouglasSeaScale
}
 

Public Member Functions

 DtDouglasSeaState (unsigned int index=0, const std::string &name=std::string(""), float minimum=0.0, float maximum=0.0)
 

Static Public Member Functions

Conversion functions:
static std::string convertIndexToName (unsigned int index)
 
static unsigned int convertNameToIndex (const std::string &name)
 
static float convertIndexToWaveHeight (unsigned int index)
 
static unsigned int convertWaveHeightToIndex (float height)
 

Private Types

typedef std::vector
< DtDouglasSeaState
SeaStateList
 

Private Attributes

unsigned int myIndex
 
std::string myName
 
float myMinimum
 
float myMaximum
 

Static Private Attributes

static SeaStateList myStates
 

Detailed Description

The DtDouglasSeaState is a utility class for converting wave heights to/from the Douglas Sea Scale as described by Wikipedia.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
CalmGlassy 
CalmRippled 
Smooth 
Slight 
Moderate 
Rough 
VeryRough 
High 
VeryHigh 
Phenomenal 
MaxDouglasSeaScale 

Constructor & Destructor Documentation

makVrv::DtDouglasSeaState::DtDouglasSeaState ( unsigned int  index = 0,
const std::string &  name = std::string(""),
float  minimum = 0.0,
float  maximum = 0.0 
)

Member Function Documentation

static std::string makVrv::DtDouglasSeaState::convertIndexToName ( unsigned int  index)
static

Conversion between sea-state index and name.

static unsigned int makVrv::DtDouglasSeaState::convertNameToIndex ( const std::string &  name)
static
static float makVrv::DtDouglasSeaState::convertIndexToWaveHeight ( unsigned int  index)
static

Conversion between sea-state index and wave heights.

Note
All wave heights are measured in meters.
static unsigned int makVrv::DtDouglasSeaState::convertWaveHeightToIndex ( float  height)
static

Member Data Documentation

unsigned int makVrv::DtDouglasSeaState::myIndex
private
std::string makVrv::DtDouglasSeaState::myName
private
float makVrv::DtDouglasSeaState::myMinimum
private
float makVrv::DtDouglasSeaState::myMaximum
private
SeaStateList makVrv::DtDouglasSeaState::myStates
staticprivate

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)