Public Member Functions | |
bool | isUniform () const |
HeightSpacing (const std::string &heightspec, const code::Length &minHeight, const code::Length &maxHeight=code::Length::Kilometers(50)) | |
The height spec should be the name (e.g: "WISH") or the spacing in kilometers (e.g: "0.25"). | |
const code::Length & | getHeightSpacing () const |
Height spacing is zero for non-uniform heights. | |
const std::vector< code::Length > & | getNonUniformHeights () const |
empty vector for uniform spacing. | |
const std::string & | getHeightSpacingName () const |
name is empty string for uniform spacing. | |
int | getClosestIndex (const code::Length &ht, code::Length *error) const |
gets closest index to height | |
Static Public Member Functions | |
static bool | isUniform (const std::string &heightspec) |
Classes | |
struct | IncrInfo |
information from XML file. |
vol::HeightSpacing::HeightSpacing | ( | const std::string & | heightspec, | |
const code::Length & | minHeight, | |||
const code::Length & | maxHeight = code::Length::Kilometers(50) | |||
) |
The height spec should be the name (e.g: "WISH") or the spacing in kilometers (e.g: "0.25").
int vol::HeightSpacing::getClosestIndex | ( | const code::Length & | ht, | |
code::Length * | error | |||
) | const |
gets closest index to height
const code::Length& vol::HeightSpacing::getHeightSpacing | ( | ) | const [inline] |
Height spacing is zero for non-uniform heights.
const std::string& vol::HeightSpacing::getHeightSpacingName | ( | ) | const [inline] |
name is empty string for uniform spacing.
const std::vector<code::Length>& vol::HeightSpacing::getNonUniformHeights | ( | ) | const [inline] |
empty vector for uniform spacing.
static bool vol::HeightSpacing::isUniform | ( | const std::string & | heightspec | ) | [static] |
bool vol::HeightSpacing::isUniform | ( | ) | const [inline] |