![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtDouglasSeaState is a utility class for converting wave heights to/from the Douglas Sea Scale as described by Wikipedia.
Public Types | |
| enum | Scale { Scale::CalmGlassy = 0, Scale::CalmRippled, Scale::Smooth, Scale::Slight, Scale::Moderate, Scale::Rough, Scale::VeryRough, Scale::High, Scale::VeryHigh, Scale::Phenomenal, Scale::MaxDouglasSeaScale } |
Public Member Functions | |
| DtDouglasSeaState (DtDouglasSeaState::Scale enumIndex=Scale::CalmGlassy, DtUnicode name=DtUnicode(), float minimum=0.0, float maximum=0.0) | |
Static Public Member Functions | |
Conversion functions: | |
| static DtUnicode | convertIndexToName (DtDouglasSeaState::Scale index) |
| static DtDouglasSeaState::Scale | convertNameToIndex (DtUnicode name) |
| static float | convertIndexToWaveHeight (DtDouglasSeaState::Scale index) |
| static DtDouglasSeaState::Scale | convertWaveHeightToIndex (float height) |
Private Types | |
| typedef std::vector < DtDouglasSeaState > | SeaStateList |
Private Attributes | |
| DtDouglasSeaState::Scale | myIndex |
| DtUnicode | myName |
| float | myMinimum |
| float | myMaximum |
Static Private Attributes | |
| static SeaStateList | myStates |
|
private |
|
strong |
| makVrv::DtDouglasSeaState::DtDouglasSeaState | ( | DtDouglasSeaState::Scale | enumIndex = Scale::CalmGlassy, |
| DtUnicode | name = DtUnicode(), |
||
| float | minimum = 0.0, |
||
| float | maximum = 0.0 |
||
| ) |
|
static |
Conversion between sea-state index and name.
|
static |
Conversion between sea-state index and name.
|
static |
Conversion between sea-state index and wave heights.
|
static |
Conversion between sea-state index and wave heights.
|
private |
|
private |
|
private |
|
private |
|
staticprivate |