mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 21:45:34 +08:00
Ref T773, utility functions to clean cache and find max. elevation
This commit is contained in:
committed by
Mat Sutcliffe
parent
466c761616
commit
ab41c1e930
@@ -134,6 +134,10 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
void resetSimulationEnvironmentStatistics();
|
||||
|
||||
//! Average elevation of "on ground" cached values
|
||||
//! \threadsafe
|
||||
bool cleanElevationValues(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &range, bool forced = false);
|
||||
|
||||
protected:
|
||||
//! Ctor
|
||||
ISimulationEnvironmentProvider(const CSimulatorPluginInfo &pluginInfo);
|
||||
@@ -296,6 +300,9 @@ namespace BlackMisc
|
||||
//! \copydoc ISimulationEnvironmentProvider::averageElevationOfOnGroundAircraft
|
||||
Geo::CElevationPlane averageElevationOfOnGroundAircraft(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &range, int minValues) const;
|
||||
|
||||
//! \copydoc ISimulationEnvironmentProvider::highestElevation
|
||||
Aviation::CAltitude highestElevation() const;
|
||||
|
||||
//! \copydoc ISimulationEnvironmentProvider::requestElevation
|
||||
bool requestElevation(const Geo::ICoordinateGeodetic &reference, const Aviation::CCallsign &callsign);
|
||||
|
||||
@@ -335,6 +342,9 @@ namespace BlackMisc
|
||||
//! \copydoc ISimulationEnvironmentProvider::hasSimulatorCG
|
||||
bool hasSimulatorCG(const Aviation::CCallsign &callsign) const;
|
||||
|
||||
//! \copydoc ISimulationEnvironmentProvider::cleanElevationValues
|
||||
bool cleanElevationValues(const Aviation::CAircraftSituation &reference, const PhysicalQuantities::CLength &range, bool forced = false);
|
||||
|
||||
protected:
|
||||
//! Default constructor
|
||||
CSimulationEnvironmentAware() {}
|
||||
|
||||
Reference in New Issue
Block a user