![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qpositioningquickmodule_p.h>
Additional Inherited Members | |
| Public Types inherited from QGeoCoordinate | |
| enum | CoordinateType { InvalidCoordinate , Coordinate2D , Coordinate3D } |
| Defines the types of a coordinate. More... | |
| enum | CoordinateFormat { Degrees , DegreesWithHemisphere , DegreesMinutes , DegreesMinutesWithHemisphere , DegreesMinutesSeconds , DegreesMinutesSecondsWithHemisphere } |
| Defines the possible formatting options for toString(). More... | |
| enum class | AltitudeType { Unknown , MSL , WGS84 } |
| Public Member Functions inherited from QGeoCoordinate | |
| QGeoCoordinate () | |
| Constructs a coordinate. | |
| QGeoCoordinate (double latitude, double longitude) | |
| Constructs a coordinate with the given latitude and longitude. | |
| QGeoCoordinate (double latitude, double longitude, double altitude) | |
| Constructs a coordinate with the given latitude, longitude and altitude. | |
| QGeoCoordinate (const QGeoCoordinate &other) | |
| Constructs a coordinate from the contents of other. | |
| QGeoCoordinate (QGeoCoordinate &&other) noexcept=default | |
| ~QGeoCoordinate () | |
| Destroys the coordinate object. | |
| QGeoCoordinate & | operator= (const QGeoCoordinate &other) |
| Assigns other to this coordinate and returns a reference to this coordinate. | |
| void | swap (QGeoCoordinate &other) noexcept |
| bool | isValid () const |
Returns true if the \l longitude and \l latitude are valid. | |
| CoordinateType | type () const |
| Returns the type of this coordinate. | |
| void | setLatitude (double latitude) |
| Sets the latitude (in decimal degrees) to latitude. | |
| double | latitude () const |
| Returns the latitude, in decimal degrees. | |
| void | setLongitude (double longitude) |
| Sets the longitude (in decimal degrees) to longitude. | |
| double | longitude () const |
| Returns the longitude, in decimal degrees. | |
| void | setAltitude (double altitude) |
| Sets the altitude (in meters) to altitude. | |
| double | altitude () const |
| Returns the altitude in meters. | |
| void | setAltitudeType (AltitudeType typetype) |
| AltitudeType | altitudeType () const |
| Q_INVOKABLE qreal | distanceTo (const QGeoCoordinate &other) const |
| Returns the distance (in meters) from this coordinate to the coordinate specified by other. | |
| Q_INVOKABLE qreal | azimuthTo (const QGeoCoordinate &other) const |
| Returns the azimuth (or bearing) in degrees from this coordinate to the coordinate specified by other. | |
| Q_INVOKABLE QGeoCoordinate | atDistanceAndAzimuth (qreal distancedistance, qreal azimuth, qreal distanceUp=0.0) const |
| Returns the coordinate that is reached by traveling distance meters from the current coordinate at azimuth (or bearing) along a great-circle. | |
| Q_INVOKABLE QString | toString (CoordinateFormat formatformat=DegreesMinutesSecondsWithHemisphere) const |
| Returns this coordinate as a string in the specified format. | |
| Properties inherited from QGeoCoordinate | |
| double | latitude |
| This property holds the latitude in decimal degrees. | |
| double | longitude |
| This property holds the longitude in decimal degrees. | |
| double | altitude |
| This property holds the altitude in meters. | |
| bool | isValid |
| This property holds the validity of this geo coordinate. | |
| AltitudeType | altitudeType |
| This property holds the type of the altitude. | |
Definition at line 46 of file qpositioningquickmodule_p.h.