|
swift
|
Geodetic coordinate, a position in 3D space relative to the reference geoid. More...
#include <coordinategeodetic.h>
Public Types | |
| enum | ColumnIndex { IndexLatitude = CPropertyIndexRef::GlobalIndexICoordinateGeodetic , IndexLongitude , IndexLatitudeAsString , IndexLongitudeAsString , IndexGeodeticHeight , IndexGeodeticHeightAsString , IndexNormalVector } |
| Properties by index. More... | |
Public Member Functions | |
| ICoordinateGeodetic ()=default | |
| Ctor. | |
| virtual | ~ICoordinateGeodetic ()=default |
| Destructor. | |
| ICoordinateGeodetic (const ICoordinateGeodetic &)=default | |
| Copy constructor. | |
| ICoordinateGeodetic & | operator= (const ICoordinateGeodetic &)=default |
| Copy assignment operator. | |
| virtual CLatitude | latitude () const =0 |
| Latitude. | |
| virtual CLongitude | longitude () const =0 |
| Longitude. | |
| virtual const aviation::CAltitude & | geodeticHeight () const =0 |
| Height, ellipsoidal or geodetic height (used in GPS). | |
| virtual QVector3D | normalVector () const =0 |
| Normal vector. | |
| virtual std::array< double, 3 > | normalVectorDouble () const =0 |
| Normal vector with double precision. | |
| bool | equalNormalVectorDouble (const std::array< double, 3 > &otherVector) const |
| Is equal? Epsilon considered. | |
| bool | equalNormalVectorDouble (const ICoordinateGeodetic &otherCoordinate) const |
| Is equal, epsilon considered? | |
| QString | latitudeAsString () const |
| Latitude as string. | |
| QString | longitudeAsString () const |
| Longitude as string. | |
| QString | geodeticHeightAsString () const |
| Height as string. | |
| bool | isGeodeticHeightNull () const |
| Geodetic height null? | |
| bool | hasMSLGeodeticHeight () const |
| Geodetic height not null and aviation::CAltitude::MeanSeaLevel. | |
| virtual bool | isNull () const |
| Is null, means vector x, y, z == 0. | |
| physical_quantities::CLength | calculateGreatCircleDistance (const ICoordinateGeodetic &otherCoordinate) const |
| Great circle distance. | |
| bool | isWithinRange (const ICoordinateGeodetic &otherCoordinate, const physical_quantities::CLength &range) const |
| Object within range? | |
| physical_quantities::CAngle | calculateBearing (const ICoordinateGeodetic &otherCoordinate) const |
| Initial bearing. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const ICoordinateGeodetic &compareValue) const |
| Compare for index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
Static Protected Member Functions | |
| static bool | canHandleIndex (CPropertyIndexRef index) |
| Can given index be handled? | |
| bool | isNaNVector () const |
| Check values. | |
| bool | isNaNVectorDouble () const |
| Check values. | |
| bool | isInfVector () const |
| Check values. | |
| bool | isInfVectorDouble () const |
| Check values. | |
| bool | isValidVectorRange () const |
| Check values. | |
| static bool | isValidVector (const std::array< double, 3 > &v) |
| Check values. | |
Geodetic coordinate, a position in 3D space relative to the reference geoid.
Composed of a latitude, longitude, and height (aka altitude, aka elevation).
Definition at line 38 of file coordinategeodetic.h.
Properties by index.
Definition at line 42 of file coordinategeodetic.h.
| CAngle swift::misc::geo::ICoordinateGeodetic::calculateBearing | ( | const ICoordinateGeodetic & | otherCoordinate | ) | const |
Initial bearing.
Definition at line 139 of file coordinategeodetic.cpp.
| CLength swift::misc::geo::ICoordinateGeodetic::calculateGreatCircleDistance | ( | const ICoordinateGeodetic & | otherCoordinate | ) | const |
Great circle distance.
Definition at line 120 of file coordinategeodetic.cpp.
|
staticprotected |
Can given index be handled?
Definition at line 144 of file coordinategeodetic.cpp.
| int swift::misc::geo::ICoordinateGeodetic::comparePropertyByIndex | ( | CPropertyIndexRef | index, |
| const ICoordinateGeodetic & | compareValue ) const |
Compare for index.
Definition at line 173 of file coordinategeodetic.cpp.
| QString swift::misc::geo::ICoordinateGeodetic::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 201 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::equalNormalVectorDouble | ( | const ICoordinateGeodetic & | otherCoordinate | ) | const |
Is equal, epsilon considered?
Definition at line 115 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::equalNormalVectorDouble | ( | const std::array< double, 3 > & | otherVector | ) | const |
Is equal? Epsilon considered.
Definition at line 100 of file coordinategeodetic.cpp.
|
pure virtual |
Height, ellipsoidal or geodetic height (used in GPS).
This is approximately MSL (orthometric) height, aka altitude, aka elevation. The terms "geodetic height", "altitude", and "elevation" are interchangable. "Geodetic height" is the generic, context-free term for the vertical component of a position. This is commonly called "altitude" for objects that can move freely in the vertical component. By a similar convention, "elevation" is commonly used for objects that are fixed to the ground.
Implemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::aviation::CAtcStation, swift::misc::geo::CCoordinateGeodetic, swift::misc::simulation::CSimulatedAircraft, and swift::misc::simulation::xplane::CNavDataReference.
|
inline |
Height as string.
Definition at line 104 of file coordinategeodetic.h.
|
inline |
Geodetic height not null and aviation::CAltitude::MeanSeaLevel.
Definition at line 110 of file coordinategeodetic.h.
|
inline |
Geodetic height null?
Definition at line 107 of file coordinategeodetic.h.
| bool swift::misc::geo::ICoordinateGeodetic::isInfVector | ( | ) | const |
Check values.
Definition at line 225 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::isInfVectorDouble | ( | ) | const |
Check values.
Definition at line 231 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::isNaNVector | ( | ) | const |
Check values.
Definition at line 213 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::isNaNVectorDouble | ( | ) | const |
Check values.
Definition at line 219 of file coordinategeodetic.cpp.
|
inlinevirtual |
Is null, means vector x, y, z == 0.
Reimplemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::geo::CCoordinateGeodetic, and swift::misc::geo::CElevationPlane.
Definition at line 115 of file coordinategeodetic.h.
|
static |
Check values.
Definition at line 244 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::isValidVectorRange | ( | ) | const |
Check values.
Definition at line 237 of file coordinategeodetic.cpp.
| bool swift::misc::geo::ICoordinateGeodetic::isWithinRange | ( | const ICoordinateGeodetic & | otherCoordinate, |
| const physical_quantities::CLength & | range ) const |
Object within range?
Definition at line 125 of file coordinategeodetic.cpp.
|
pure virtual |
|
inline |
Latitude as string.
Definition at line 98 of file coordinategeodetic.h.
|
pure virtual |
|
inline |
Longitude as string.
Definition at line 101 of file coordinategeodetic.h.
|
pure virtual |
Normal vector.
Implemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::aviation::CAtcStation, swift::misc::geo::CCoordinateGeodetic, swift::misc::simulation::CSimulatedAircraft, and swift::misc::simulation::xplane::CNavDataReference.
|
pure virtual |
Normal vector with double precision.
Implemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::aviation::CAtcStation, swift::misc::geo::CCoordinateGeodetic, swift::misc::simulation::CSimulatedAircraft, and swift::misc::simulation::xplane::CNavDataReference.
| QVariant swift::misc::geo::ICoordinateGeodetic::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 150 of file coordinategeodetic.cpp.