mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T261, aircraft situation
* null altitude
* ground functions
* CG ("member")
* supporting CAircraftSituationChange
This commit is contained in:
committed by
Roland Winklmeier
parent
1f3e5c6abf
commit
bed79237bf
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user