swift
coordinategeodeticlist.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_GEO_COORDINATEGEODETICLIST_H
7 #define SWIFT_MISC_GEO_COORDINATEGEODETICLIST_H
8 
9 #include <QMetaType>
10 
11 #include "misc/collection.h"
14 #include "misc/geo/geoobjectlist.h"
15 #include "misc/mixin/mixinjson.h"
17 #include "misc/pq/length.h"
18 #include "misc/sequence.h"
19 #include "misc/swiftmiscexport.h"
20 
21 SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::geo, CCoordinateGeodetic, CCoordinateGeodeticList)
22 
23 namespace swift::misc::geo
24 {
27  public CSequence<CCoordinateGeodetic>,
28  public IGeoObjectList<CCoordinateGeodetic, CCoordinateGeodeticList>,
29  public mixin::MetaType<CCoordinateGeodeticList>,
30  public mixin::JsonOperators<CCoordinateGeodeticList>
31  {
32  public:
35 
38 
41 
44  averageGeodeticHeight(const CCoordinateGeodetic &reference, const physical_quantities::CLength &range,
45  const physical_quantities::CLength &maxDeviation =
47  int minValues = 3, int sufficentValues = 5) const;
48  };
49 } // namespace swift::misc::geo
50 
53 
54 #endif // SWIFT_MISC_GEO_COORDINATEGEODETICLIST_H
Generic ordered container with value semantics.
Definition: collection.h:107
Generic sequential container with value semantics.
Definition: sequence.h:86
CCoordinateGeodetic & reference
STL compatibility.
Definition: sequence.h:95
CSequence()=default
Default constructor.
Value object encapsulating a list of coordinates.
Plane of same elevation, can be a single point or larger area (e.g. airport)
List of objects with geo coordinates.
Definition: geoobjectlist.h:24
CRTP class template which will generate marshalling operators for a derived class with its own marsha...
Definition: mixinjson.h:37
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Definition: mixinmetatype.h:29
Physical unit length (length)
Definition: length.h:18
static CLengthUnit m()
Meter m.
Definition: units.h:142
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition: sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.