Ref T236, utility functions to set ground elevation

This commit is contained in:
Klaus Basan
2018-01-25 05:20:52 +01:00
parent 81ea636bc0
commit 851fbe165d
4 changed files with 55 additions and 8 deletions

View File

@@ -36,6 +36,7 @@
namespace BlackMisc
{
namespace Geo { class CElevationPlane; }
namespace Aviation
{
//! Value object encapsulating information of an aircraft's situation
@@ -171,7 +172,10 @@ namespace BlackMisc
void setGroundElevation(const CAltitude &elevation) { m_groundElevation = elevation; }
//! Set elevation of the ground directly beneath, but checked
void setGroundElevationChecked(const CAltitude &elevation, bool ignoreNullValues = true, bool overrideExisting = true);
bool setGroundElevationChecked(const CAltitude &elevation, bool ignoreNullValues = true, bool overrideExisting = true);
//! Set elevation of the ground directly beneath, but checked
bool setGroundElevationChecked(const Geo::CElevationPlane &elevationPlane, bool ignoreNullValues = true, bool overrideExisting = true);
//! Height above ground.
PhysicalQuantities::CLength getHeightAboveGround() const;