java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.positioning.QGeoCoordinate
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a geographical position on the surface of the Earth
Java wrapper for Qt's class QGeoCoordinate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QGeoCoordinate::CoordinateFormatstatic enum
Java wrapper for Qt enum QGeoCoordinate::CoordinateTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQGeoCoordinate
(double latitude, double longitude) QGeoCoordinate
(double latitude, double longitude, double altitude) QGeoCoordinate
(QGeoCoordinate other) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
altitude()
final QGeoCoordinate
atDistanceAndAzimuth
(double distance, double azimuth) Overloaded function foratDistanceAndAzimuth(double, double, double)
withdistanceUp = 0.0
.final QGeoCoordinate
atDistanceAndAzimuth
(double distance, double azimuth, double distanceUp) final double
azimuthTo
(QGeoCoordinate other) clone()
final double
distanceTo
(QGeoCoordinate other) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final boolean
isValid()
final double
latitude()
final double
void
readFrom
(QDataStream stream) final void
setAltitude
(double altitude) final void
setLatitude
(double latitude) final void
setLongitude
(double longitude) final String
toString()
Overloaded function fortoString(io.qt.positioning.QGeoCoordinate.CoordinateFormat)
withformat = io.qt.positioning.QGeoCoordinate.CoordinateFormat.DegreesMinutesSecondsWithHemisphere
.final String
type()
void
writeTo
(QDataStream stream) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QGeoCoordinate
public QGeoCoordinate() -
QGeoCoordinate
-
QGeoCoordinate
public QGeoCoordinate(double latitude, double longitude) -
QGeoCoordinate
public QGeoCoordinate(double latitude, double longitude, double altitude) -
QGeoCoordinate
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
altitude
-
atDistanceAndAzimuth
Overloaded function for
atDistanceAndAzimuth(double, double, double)
withdistanceUp = 0.0
. -
atDistanceAndAzimuth
public final QGeoCoordinate atDistanceAndAzimuth(double distance, double azimuth, double distanceUp) -
azimuthTo
-
distanceTo
-
isValid
-
latitude
-
longitude
-
writeTo
-
readFrom
-
setAltitude
-
setLatitude
-
setLongitude
-
toString
Overloaded function for
toString(io.qt.positioning.QGeoCoordinate.CoordinateFormat)
withformat = io.qt.positioning.QGeoCoordinate.CoordinateFormat.DegreesMinutesSecondsWithHemisphere
. -
toString
-
type
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-