![]() |
VR-Forces Developer's Guide
|
The DtDouglasSwellState is a utility class for converting sea-swell lengths and heights to/from the Douglas Sea Scale as described by Wikipedia.
Classes | |
| class | Swell |
Public Types | |
| enum | Scale { Scale::NoSwell = 0, Scale::VeryLow, Scale::Low, Scale::Light, Scale::Moderate, Scale::ModerateRough, Scale::Rough, Scale::High, Scale::VeryHigh, Scale::Confused, Scale::MaxDouglasSwellScale } |
Public Member Functions | |
| DtDouglasSwellState (DtDouglasSwellState::Scale enumIndex=Scale::NoSwell, DtUnicode name=DtUnicode(), const Swell &value=Swell(), const Swell &minimum=Swell(), const Swell &maximum=Swell()) | |
Static Public Member Functions | |
Conversion functions: | |
| static DtUnicode | convertIndexToName (DtDouglasSwellState::Scale index) |
| static DtDouglasSwellState::Scale | convertNameToIndex (DtUnicode name) |
| static Swell | convertIndexToSwell (DtDouglasSwellState::Scale index) |
| static DtDouglasSwellState::Scale | convertSwellToIndex (const Swell &swell) |
Private Types | |
| typedef std::vector < DtDouglasSwellState > | SwellStateList |
Private Attributes | |
| DtDouglasSwellState::Scale | myIndex |
| DtUnicode | myName |
| Swell | myValue |
| Swell | myMinimum |
| Swell | myMaximum |
Static Private Attributes | |
| static SwellStateList | myStates |
|
private |
|
strong |
| makVrv::DtDouglasSwellState::DtDouglasSwellState | ( | DtDouglasSwellState::Scale | enumIndex = Scale::NoSwell, |
| DtUnicode | name = DtUnicode(), |
||
| const Swell & | value = Swell(), |
||
| const Swell & | minimum = Swell(), |
||
| const Swell & | maximum = Swell() |
||
| ) |
|
static |
Conversion between swell-state index and name.
|
static |
Conversion between swell-state index and name.
|
static |
Conversion between swell-state index and swell.
|
static |
Conversion between swell-state index and swell.
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |