Coordinate
#include <Coordinate.h>
Public Types | |
enum | Notation { Decimal , DMS , DM , UTM , Astro } |
Properties | |
qreal | altitude |
Notation | defaultNotation |
qreal | latitude |
qreal | longitude |
Properties inherited from QObject | |
objectName | |
Signals | |
void | altitudeChanged () |
void | defaultNotationChanged (Notation defaultNotation) |
void | latitudeChanged () |
void | longitudeChanged () |
Detailed Description
Represents a coordinate with the properties of a name and coordinates.
- Todo
- : Introduce GeoDataCoordinates
Definition at line 18 of file Coordinate.h.
Member Enumeration Documentation
◆ Notation
Enumerator | |
---|---|
Decimal | "Decimal" notation (base-10) |
DMS | "Sexagesimal DMS" notation (base-60) |
DM | "Sexagesimal DM" notation (base-60) |
Astro | < "RA and DEC" notation (used for astronomical sky coordinates) |
Definition at line 29 of file Coordinate.h.
Property Documentation
◆ altitude
|
readwrite |
Definition at line 24 of file Coordinate.h.
◆ defaultNotation
|
readwrite |
Definition at line 26 of file Coordinate.h.
◆ latitude
|
readwrite |
Definition at line 23 of file Coordinate.h.
◆ longitude
|
readwrite |
Definition at line 22 of file Coordinate.h.
Constructor & Destructor Documentation
◆ Coordinate() [1/2]
|
explicit |
Constructor.
Definition at line 15 of file Coordinate.cpp.
◆ Coordinate() [2/2]
|
explicit |
Definition at line 23 of file Coordinate.cpp.
Member Function Documentation
◆ altitude()
qreal Coordinate::altitude | ( | ) | const |
Provides access to the altitude (meters) of the coordinate.
Definition at line 50 of file Coordinate.cpp.
◆ bearing()
qreal Coordinate::bearing | ( | qreal | longitude, |
qreal | latitude ) const |
Bearing (in degree) to the given coordinate.
Definition at line 83 of file Coordinate.cpp.
◆ coordinates()
GeoDataCoordinates Coordinate::coordinates | ( | ) | const |
Change the altitude of the coordinate.
Definition at line 61 of file Coordinate.cpp.
◆ distance()
qreal Coordinate::distance | ( | qreal | longitude, |
qreal | latitude ) const |
Distance (in meter) to the given coordinate.
Definition at line 76 of file Coordinate.cpp.
◆ latitude()
qreal Coordinate::latitude | ( | ) | const |
Provides access to the latitude (degree) of the coordinate.
Definition at line 39 of file Coordinate.cpp.
◆ longitude()
qreal Coordinate::longitude | ( | ) | const |
Provides access to the longitude (degree) of the coordinate.
Definition at line 28 of file Coordinate.cpp.
◆ operator!=()
bool Coordinate::operator!= | ( | const Coordinate & | other | ) | const |
Definition at line 97 of file Coordinate.cpp.
◆ operator==()
bool Coordinate::operator== | ( | const Coordinate & | other | ) | const |
Definition at line 92 of file Coordinate.cpp.
◆ setAltitude()
void Coordinate::setAltitude | ( | qreal | alt | ) |
Change the altitude of the coordinate.
Definition at line 55 of file Coordinate.cpp.
◆ setCoordinates()
void Coordinate::setCoordinates | ( | const Marble::GeoDataCoordinates & | coordinates | ) |
Change all coordinates at once.
Definition at line 66 of file Coordinate.cpp.
◆ setDefaultNotation()
void Coordinate::setDefaultNotation | ( | Coordinate::Notation | defaultNotation | ) |
Definition at line 107 of file Coordinate.cpp.
◆ setLatitude()
void Coordinate::setLatitude | ( | qreal | lat | ) |
Change the latitude of the coordinate.
Definition at line 44 of file Coordinate.cpp.
◆ setLongitude()
void Coordinate::setLongitude | ( | qreal | lon | ) |
Change the longitude of the coordinate.
Definition at line 33 of file Coordinate.cpp.
◆ toGeoString()
QString Coordinate::toGeoString | ( | Coordinate::Notation | notation = Coordinate::DMS, |
int | precision = -1 ) const |
Definition at line 71 of file Coordinate.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.