VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Attributes | Static Private Attributes
makVrv::DtDouglasSwellState Class Reference

The DtDouglasSwellState is a utility class for converting sea-swell lengths and heights to/from the Douglas Sea Scale as described by Wikipedia. More...

Classes

class  Swell
 A class describing the profile of a sea-swell. More...

Public Types

enum  Scale {
  NoSwell = 0, VeryLow, Low, Light,
  Moderate, ModerateRough, Rough, High,
  VeryHigh, Confused, MaxDouglasSwellScale
}

Public Member Functions

 DtDouglasSwellState (unsigned int index=0, const std::string &name=std::string(""), const Swell &value=Swell(), const Swell &minimum=Swell(), const Swell &maximum=Swell())

Static Public Member Functions

Conversion functions:
static std::string convertIndexToName (unsigned int index)
static unsigned int convertNameToIndex (const std::string &name)
static Swell convertIndexToSwell (unsigned int index)
static unsigned int convertSwellToIndex (const Swell &swell)

Private Types

typedef std::vector
< DtDouglasSwellState
SwellStateList

Private Attributes

unsigned int myIndex
std::string myName
Swell myValue
Swell myMinimum
Swell myMaximum

Static Private Attributes

static SwellStateList myStates

Detailed Description

The DtDouglasSwellState is a utility class for converting sea-swell lengths and heights to/from the Douglas Sea Scale as described by Wikipedia.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator:
NoSwell 
VeryLow 
Low 
Light 
Moderate 
ModerateRough 
Rough 
High 
VeryHigh 
Confused 
MaxDouglasSwellScale 

Constructor & Destructor Documentation

makVrv::DtDouglasSwellState::DtDouglasSwellState ( unsigned int  index = 0,
const std::string &  name = std::string(""),
const Swell value = Swell(),
const Swell minimum = Swell(),
const Swell maximum = Swell() 
)

Member Function Documentation

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

Conversion between swell-state index and name.

static unsigned int makVrv::DtDouglasSwellState::convertNameToIndex ( const std::string &  name)
static

Conversion between swell-state index and name.

static Swell makVrv::DtDouglasSwellState::convertIndexToSwell ( unsigned int  index)
static

Conversion between swell-state index and swell.

Note
All swell lengths and heights are measured in meters.
static unsigned int makVrv::DtDouglasSwellState::convertSwellToIndex ( const Swell swell)
static

Conversion between swell-state index and swell.

Note
All swell lengths and heights are measured in meters.

Member Data Documentation

unsigned int makVrv::DtDouglasSwellState::myIndex
private
std::string makVrv::DtDouglasSwellState::myName
private
Swell makVrv::DtDouglasSwellState::myValue
private
Swell makVrv::DtDouglasSwellState::myMinimum
private
Swell makVrv::DtDouglasSwellState::myMaximum
private
SwellStateList makVrv::DtDouglasSwellState::myStates
staticprivate

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)