VR-Forces 4.10 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, DtUnicode name=DtUnicode(), float minimum=0.0, float maximum=0.0)
 

Static Public Member Functions

Conversion functions:
static DtUnicode convertIndexToName (unsigned int index)
 
static unsigned int convertNameToIndex (DtUnicode 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
 
DtUnicode 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,
DtUnicode  name = DtUnicode(),
float  minimum = 0.0,
float  maximum = 0.0 
)

Member Function Documentation

static DtUnicode makVrv::DtDouglasSeaState::convertIndexToName ( unsigned int  index)
static

Conversion between sea-state index and name.

static unsigned int makVrv::DtDouglasSeaState::convertNameToIndex ( DtUnicode  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
DtUnicode 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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)