swift
Public Types | Public Member Functions | Protected Member Functions | List of all members
swift::misc::geo::IGeoObjectList< OBJ, CONTAINER > Class Template Reference

List of objects with geo coordinates. More...

Inheritance diagram for swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >:
[legend]

Public Types

using MinMaxAverageHeight = std::tuple< aviation::CAltitude, aviation::CAltitude, aviation::CAltitude, int >
 For statistics.
 

Public Member Functions

CONTAINER findWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Find 0..n objects within range of given coordinate. More...
 
CONTAINER findOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Find 0..n objects outside range of given coordinate. More...
 
OBJ findFirstWithinRangeOrDefault (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Find first in range.
 
CONTAINER findWithGeodeticMSLHeight () const
 Elements with geodetic height (only MSL)
 
bool containsObjectInRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Any object in range?
 
bool containsObjectOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Any object in range?
 
bool containsNullPosition () const
 Any NULL position?
 
bool containsNullPositionOrHeight () const
 Any NULL position or NULL height.
 
MinMaxAverageHeight findMinMaxAverageHeight () const
 Find min/max/average height.
 
aviation::CAltitude findMaxHeight () const
 Find min/max/average height.
 
int removeInsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range)
 Remove inside range.
 
int removeOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range)
 Remove outside range.
 
int removeWithoutGeodeticHeight ()
 Remove if there is no geodetic height.
 
CONTAINER findClosest (int number, const ICoordinateGeodetic &coordinate) const
 Find 0..n objects closest to the given coordinate.
 
CONTAINER findFarthest (int number, const ICoordinateGeodetic &coordinate) const
 Find 0..n objects farthest to the given coordinate.
 
OBJ findClosestWithinRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Find closest within range to the given coordinate.
 
void sortByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate)
 Sort by distance.
 
CONTAINER sortedByEuclideanDistanceSquared (const ICoordinateGeodetic &coordinate) const
 Sorted by distance.
 

Protected Member Functions

 IGeoObjectList ()
 Constructor.
 
const CONTAINER & container () const
 Container.
 
CONTAINER & container ()
 Container.
 

Detailed Description

template<class OBJ, class CONTAINER>
class swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >

List of objects with geo coordinates.

Definition at line 23 of file geoobjectlist.h.

Member Function Documentation

◆ findOutsideRange()

template<class OBJ , class CONTAINER >
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findOutsideRange ( const ICoordinateGeodetic coordinate,
const physical_quantities::CLength range 
) const
inline

Find 0..n objects outside range of given coordinate.

Parameters
coordinateother position
rangeoutside range of other position

Definition at line 42 of file geoobjectlist.h.

◆ findWithinRange()

template<class OBJ , class CONTAINER >
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findWithinRange ( const ICoordinateGeodetic coordinate,
const physical_quantities::CLength range 
) const
inline

Find 0..n objects within range of given coordinate.

Parameters
coordinateother position
rangewithin range of other position

Definition at line 32 of file geoobjectlist.h.


The documentation for this class was generated from the following file: