Ref T778, added/improved removeElevationValues, cleanElevationValues

This commit is contained in:
Klaus Basan
2020-04-07 00:16:53 +02:00
committed by Mat Sutcliffe
parent 919b6e9515
commit 1821b6e6c5
2 changed files with 30 additions and 26 deletions

View File

@@ -146,9 +146,15 @@ namespace BlackMisc
//! \threadsafe
void resetSimulationEnvironmentStatistics();
//! Average elevation of "on ground" cached values
//! Remove cached elevations outside range,
//! "forced" cleans always, otherwise only if max.values are reached
//! \threadsafe
bool cleanElevationValues(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &range, bool forced = false);
bool cleanElevationValues(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &keptRange, bool forced = false);
//! Remove cached elevations inside range,
//! \remark this removes inside range, cleanElevationValues outside the range
//! \threadsafe
int removeElevationValues(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &removeRange);
protected:
//! Ctor