java.lang.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 class QGeoCoordinate
- Since:
- This class was introduced in Qt 5.2.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQGeoCoordinate::CoordinateFormat
static enum
Java wrapper for Qt enumQGeoCoordinate::CoordinateType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQGeoCoordinate
(double latitude, double longitude) QGeoCoordinate
(double latitude, double longitude, double altitude) QGeoCoordinate
(QGeoCoordinate other) -
Method Summary
Modifier and TypeMethodDescriptionfinal double
altitude()
final void
assign
(QGeoCoordinate other) 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()
Creates and returns a copy of this object.final double
distanceTo
(QGeoCoordinate other) final boolean
equals
(QGeoCoordinate other) boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QGeoCoordinate)
.final boolean
isValid()
final double
latitude()
final double
void
readFrom
(QDataStream stream) Seeoperator>>(QDataStream&,
QGeoCoordinate&) 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) Seeoperator<<(QDataStream&,
QGeoCoordinate) 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
- Parameters:
other
-
-
QGeoCoordinate
public QGeoCoordinate(double latitude, double longitude) - Parameters:
latitude
-longitude
-
-
QGeoCoordinate
public QGeoCoordinate(double latitude, double longitude, double altitude) - Parameters:
latitude
-longitude
-altitude
-
-
-
Method Details
-
altitude
- Returns:
-
atDistanceAndAzimuth
public final QGeoCoordinate atDistanceAndAzimuth(double distance, double azimuth, double distanceUp) - Parameters:
distance
-azimuth
-distanceUp
-- Returns:
-
azimuthTo
- Parameters:
other
-- Returns:
-
distanceTo
- Parameters:
other
-- Returns:
-
isValid
- Returns:
-
latitude
- Returns:
-
longitude
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QGeoCoordinate) - Parameters:
stream
-
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QGeoCoordinate&) - Parameters:
stream
-
-
setAltitude
- Parameters:
altitude
-
-
setLatitude
- Parameters:
latitude
-
-
setLongitude
- Parameters:
longitude
-
-
toString
- Parameters:
format
-- Returns:
-
type
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QGeoCoordinate)
. -
clone
Creates and returns a copy of this object.
-
atDistanceAndAzimuth
Overloaded function for
atDistanceAndAzimuth(double, double, double)
withdistanceUp = 0.0
. -
toString
Overloaded function for
toString(io.qt.positioning.QGeoCoordinate.CoordinateFormat)
withformat = io.qt.positioning.QGeoCoordinate.CoordinateFormat.DegreesMinutesSecondsWithHemisphere
.
-