Ref T261, aircraft situation

* null altitude
* ground functions
* CG ("member")
* supporting CAircraftSituationChange
This commit is contained in:
Klaus Basan
2018-04-27 02:40:05 +02:00
committed by Roland Winklmeier
parent 1f3e5c6abf
commit bed79237bf
6 changed files with 565 additions and 51 deletions

View File

@@ -69,6 +69,24 @@ namespace BlackMisc
});
}
template<class OBJ, class CONTAINER>
bool IGeoObjectList<OBJ, CONTAINER>::containsNullPosition() const
{
return this->container().containsBy([&](const ICoordinateGeodetic & geoObj)
{
return geoObj.isNull();
});
}
template<class OBJ, class CONTAINER>
bool IGeoObjectList<OBJ, CONTAINER>::containsNullPositionOrHeight() const
{
return this->container().containsBy([&](const ICoordinateGeodetic & geoObj)
{
return geoObj.isNull() || geoObj.isGeodeticHeightNull();
});
}
template<class OBJ, class CONTAINER>
typename IGeoObjectList<OBJ, CONTAINER>::MinMaxAverageHeight IGeoObjectList<OBJ, CONTAINER>::findMinMaxAverageHeight() const
{

View File

@@ -66,9 +66,15 @@ namespace BlackMisc
//! Elements with geodetic height (only MSL)
CONTAINER findWithGeodeticMSLHeight() const;
//! Any object in range
//! Any object in range?
bool containsObjectInRange(const ICoordinateGeodetic &coordinate, const PhysicalQuantities::CLength &range) const;
//! Any NULL position?
bool containsNullPosition() const;
//! Any NULL position or NULL height
bool containsNullPositionOrHeight() const;
//! Find min/max/average height
MinMaxAverageHeight findMinMaxAverageHeight() const;