swift
Loading...
Searching...
No Matches
swift::misc::geo::IGeoObjectList< OBJ, CONTAINER > Class Template Reference

List of objects with geo coordinates. More...

#include <geoobjectlist.h>

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.
CONTAINER findOutsideRange (const ICoordinateGeodetic &coordinate, const physical_quantities::CLength &range) const
 Find 0..n objects outside range of given coordinate.
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 Typedef Documentation

◆ MinMaxAverageHeight

template<class OBJ, class CONTAINER>
using swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::MinMaxAverageHeight = std::tuple<aviation::CAltitude, aviation::CAltitude, aviation::CAltitude, int>

For statistics.

Definition at line 27 of file geoobjectlist.h.

Constructor & Destructor Documentation

◆ IGeoObjectList()

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

Constructor.

Definition at line 260 of file geoobjectlist.h.

Member Function Documentation

◆ container() [1/2]

template<class OBJ, class CONTAINER>
CONTAINER & swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::container ( )
inlineprotected

Container.

Definition at line 266 of file geoobjectlist.h.

◆ container() [2/2]

template<class OBJ, class CONTAINER>
const CONTAINER & swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::container ( ) const
inlineprotected

Container.

Definition at line 263 of file geoobjectlist.h.

◆ containsNullPosition()

template<class OBJ, class CONTAINER>
bool swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::containsNullPosition ( ) const
inline

Any NULL position?

Definition at line 84 of file geoobjectlist.h.

◆ containsNullPositionOrHeight()

template<class OBJ, class CONTAINER>
bool swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::containsNullPositionOrHeight ( ) const
inline

Any NULL position or NULL height.

Definition at line 90 of file geoobjectlist.h.

◆ containsObjectInRange()

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

Any object in range?

Definition at line 64 of file geoobjectlist.h.

◆ containsObjectOutsideRange()

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

Any object in range?

Definition at line 74 of file geoobjectlist.h.

◆ findClosest()

template<class OBJ, class CONTAINER>
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findClosest ( int number,
const ICoordinateGeodetic & coordinate ) const
inline

Find 0..n objects closest to the given coordinate.

Definition at line 198 of file geoobjectlist.h.

◆ findClosestWithinRange()

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

Find closest within range to the given coordinate.

Definition at line 220 of file geoobjectlist.h.

◆ findFarthest()

template<class OBJ, class CONTAINER>
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findFarthest ( int number,
const ICoordinateGeodetic & coordinate ) const
inline

Find 0..n objects farthest to the given coordinate.

Definition at line 209 of file geoobjectlist.h.

◆ findFirstWithinRangeOrDefault()

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

Find first in range.

Definition at line 50 of file geoobjectlist.h.

◆ findMaxHeight()

template<class OBJ, class CONTAINER>
aviation::CAltitude swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findMaxHeight ( ) const
inline

Find min/max/average height.

Definition at line 136 of file geoobjectlist.h.

◆ findMinMaxAverageHeight()

template<class OBJ, class CONTAINER>
MinMaxAverageHeight swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findMinMaxAverageHeight ( ) const
inline

Find min/max/average height.

Definition at line 97 of file geoobjectlist.h.

◆ 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.

◆ findWithGeodeticMSLHeight()

template<class OBJ, class CONTAINER>
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::findWithGeodeticMSLHeight ( ) const
inline

Elements with geodetic height (only MSL).

Definition at line 58 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.

◆ removeInsideRange()

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

Remove inside range.

Definition at line 159 of file geoobjectlist.h.

◆ removeOutsideRange()

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

Remove outside range.

Definition at line 172 of file geoobjectlist.h.

◆ removeWithoutGeodeticHeight()

template<class OBJ, class CONTAINER>
int swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::removeWithoutGeodeticHeight ( )
inline

Remove if there is no geodetic height.

Definition at line 185 of file geoobjectlist.h.

◆ sortByEuclideanDistanceSquared()

template<class OBJ, class CONTAINER>
void swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::sortByEuclideanDistanceSquared ( const ICoordinateGeodetic & coordinate)
inline

Sort by distance.

Definition at line 242 of file geoobjectlist.h.

◆ sortedByEuclideanDistanceSquared()

template<class OBJ, class CONTAINER>
CONTAINER swift::misc::geo::IGeoObjectList< OBJ, CONTAINER >::sortedByEuclideanDistanceSquared ( const ICoordinateGeodetic & coordinate) const
inline

Sorted by distance.

Definition at line 251 of file geoobjectlist.h.


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