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

List of objects with geo coordinates. More...

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

Public Member Functions

void sortByRange (const ICoordinateGeodetic &position, bool updateValues)
 Calculate distances, then sort by range.
 
void sortByDistanceToReferencePosition ()
 If distance is already set, just sort container. More...
 
void partiallySortByDistanceToReferencePosition (int number)
 Sort the first n closest objects.
 
CONTAINER getClosestObjects (int number) const
 Get n closest objects.
 
void removeIfOutsideRange (const ICoordinateGeodetic &position, const physical_quantities::CLength &maxDistance, bool updateValues)
 Calculate distances, remove if outside range.
 
void calculcateAndUpdateRelativeDistanceAndBearing (const ICoordinateGeodetic &position)
 Calculate distances.
 
- Public Member Functions inherited from swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >
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

 IGeoObjectWithRelativePositionList ()
 Constructor.
 
- Protected Member Functions inherited from swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >
 IGeoObjectList ()
 Constructor.
 
const CONTAINER & container () const
 Container.
 
CONTAINER & container ()
 Container.
 

Additional Inherited Members

- Public Types inherited from swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >
using MinMaxAverageHeight = std::tuple< aviation::CAltitude, aviation::CAltitude, aviation::CAltitude, int >
 For statistics.
 

Detailed Description

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

List of objects with geo coordinates.

Definition at line 244 of file geoobjectlist.h.

Member Function Documentation

◆ sortByDistanceToReferencePosition()

template<class OBJ , class CONTAINER >
void swift::misc::geo::IGeoObjectWithRelativePositionList< OBJ, CONTAINER >::sortByDistanceToReferencePosition ( )
inline

If distance is already set, just sort container.

Remarks
requires calculcateAndUpdateRelativeDistanceAndBearing

Definition at line 257 of file geoobjectlist.h.


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