vol::HeightSpacing Class Reference

List of all members.

Detailed Description

Deals with both uniform and non-uniform spacing set in w2merger.xml.

Author:
Lakshman
Version:
Id
vol_HeightSpacing.h,v 1.3 2009/06/02 20:17:59 lakshman Exp


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.


Constructor & Destructor Documentation

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").


Member Function Documentation

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]


Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7