All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.positioning.QGeoCoordinate Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.positioning;

import io.qt.*;


/**
 * 

Defines a geographical position on the surface of the Earth

*

Java wrapper for Qt class QGeoCoordinate

*/ public class QGeoCoordinate extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGeoCoordinate.class); /** *

Java wrapper for Qt enum QGeoCoordinate::CoordinateFormat

*/ public enum CoordinateFormat implements QtEnumerator { /** *

Representing QGeoCoordinate::Degrees

*/ Degrees(0), /** *

Representing QGeoCoordinate::DegreesWithHemisphere

*/ DegreesWithHemisphere(1), /** *

Representing QGeoCoordinate::DegreesMinutes

*/ DegreesMinutes(2), /** *

Representing QGeoCoordinate::DegreesMinutesWithHemisphere

*/ DegreesMinutesWithHemisphere(3), /** *

Representing QGeoCoordinate::DegreesMinutesSeconds

*/ DegreesMinutesSeconds(4), /** *

Representing QGeoCoordinate::DegreesMinutesSecondsWithHemisphere

*/ DegreesMinutesSecondsWithHemisphere(5); static { QtJambi_LibraryUtilities.initialize(); } private CoordinateFormat(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull CoordinateFormat resolve(int value) { switch (value) { case 0: return Degrees; case 1: return DegreesWithHemisphere; case 2: return DegreesMinutes; case 3: return DegreesMinutesWithHemisphere; case 4: return DegreesMinutesSeconds; case 5: return DegreesMinutesSecondsWithHemisphere; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QGeoCoordinate::CoordinateType

*/ public enum CoordinateType implements QtEnumerator { /** *

Representing QGeoCoordinate::InvalidCoordinate

*/ InvalidCoordinate(0), /** *

Representing QGeoCoordinate::Coordinate2D

*/ Coordinate2D(1), /** *

Representing QGeoCoordinate::Coordinate3D

*/ Coordinate3D(2); static { QtJambi_LibraryUtilities.initialize(); } private CoordinateType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull CoordinateType resolve(int value) { switch (value) { case 0: return InvalidCoordinate; case 1: return Coordinate2D; case 2: return Coordinate3D; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QGeoCoordinate::QGeoCoordinate()

*/ public QGeoCoordinate(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QGeoCoordinate instance); /** *

See QGeoCoordinate::QGeoCoordinate(QGeoCoordinate)

*/ public QGeoCoordinate(io.qt.positioning.@NonNull QGeoCoordinate other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QGeoCoordinate instance, io.qt.positioning.QGeoCoordinate other); /** *

See QGeoCoordinate::QGeoCoordinate(double,double)

*/ public QGeoCoordinate(double latitude, double longitude){ super((QPrivateConstructor)null); initialize_native(this, latitude, longitude); } private native static void initialize_native(QGeoCoordinate instance, double latitude, double longitude); /** *

See QGeoCoordinate::QGeoCoordinate(double,double,double)

*/ public QGeoCoordinate(double latitude, double longitude, double altitude){ super((QPrivateConstructor)null); initialize_native(this, latitude, longitude, altitude); } private native static void initialize_native(QGeoCoordinate instance, double latitude, double longitude, double altitude); /** *

See QGeoCoordinate::altitude()const

*/ @QtPropertyReader(name="altitude") @QtUninvokable public final double altitude(){ return altitude_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double altitude_native_constfct(long __this__nativeId); /** *

See QGeoCoordinate::atDistanceAndAzimuth(qreal,qreal,qreal)const

*/ public final io.qt.positioning.@NonNull QGeoCoordinate atDistanceAndAzimuth(double distance, double azimuth, double distanceUp){ return atDistanceAndAzimuth_native_qreal_qreal_qreal_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), distance, azimuth, distanceUp); } private native io.qt.positioning.QGeoCoordinate atDistanceAndAzimuth_native_qreal_qreal_qreal_constfct(long __this__nativeId, double distance, double azimuth, double distanceUp); /** *

See QGeoCoordinate::azimuthTo(QGeoCoordinate)const

*/ public final double azimuthTo(io.qt.positioning.@NonNull QGeoCoordinate other){ return azimuthTo_native_cref_QGeoCoordinate_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } private native double azimuthTo_native_cref_QGeoCoordinate_constfct(long __this__nativeId, long other); /** *

See QGeoCoordinate::distanceTo(QGeoCoordinate)const

*/ public final double distanceTo(io.qt.positioning.@NonNull QGeoCoordinate other){ return distanceTo_native_cref_QGeoCoordinate_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } private native double distanceTo_native_cref_QGeoCoordinate_constfct(long __this__nativeId, long other); /** *

See QGeoCoordinate::isValid()const

*/ @QtPropertyReader(name="isValid") @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QGeoCoordinate::latitude()const

*/ @QtPropertyReader(name="latitude") @QtUninvokable public final double latitude(){ return latitude_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double latitude_native_constfct(long __this__nativeId); /** *

See QGeoCoordinate::longitude()const

*/ @QtPropertyReader(name="longitude") @QtUninvokable public final double longitude(){ return longitude_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double longitude_native_constfct(long __this__nativeId); /** *

See operator<<(QDataStream&,QGeoCoordinate)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream stream){ java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stream)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long stream); /** *

See QGeoCoordinate::operator=(QGeoCoordinate)

*/ @QtUninvokable public final void assign(io.qt.positioning.@NonNull QGeoCoordinate other){ assign_native_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QGeoCoordinate(long __this__nativeId, long other); /** *

See operator==(QGeoCoordinate,QGeoCoordinate)

*/ @QtUninvokable public final boolean equals(io.qt.positioning.@NonNull QGeoCoordinate rhs){ return equals_native_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_cref_QGeoCoordinate(long __this__nativeId, long rhs); /** *

See operator>>(QDataStream&,QGeoCoordinate&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream stream){ java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stream)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long stream); /** *

See QGeoCoordinate::setAltitude(double)

*/ @QtPropertyWriter(name="altitude") @QtUninvokable public final void setAltitude(double altitude){ setAltitude_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), altitude); } @QtUninvokable private native void setAltitude_native_double(long __this__nativeId, double altitude); /** *

See QGeoCoordinate::setLatitude(double)

*/ @QtPropertyWriter(name="latitude") @QtUninvokable public final void setLatitude(double latitude){ setLatitude_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), latitude); } @QtUninvokable private native void setLatitude_native_double(long __this__nativeId, double latitude); /** *

See QGeoCoordinate::setLongitude(double)

*/ @QtPropertyWriter(name="longitude") @QtUninvokable public final void setLongitude(double longitude){ setLongitude_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), longitude); } @QtUninvokable private native void setLongitude_native_double(long __this__nativeId, double longitude); /** *

See QGeoCoordinate::swap(QGeoCoordinate&)

*/ @QtUninvokable public final void swap(io.qt.positioning.@StrictNonNull QGeoCoordinate other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QGeoCoordinate(long __this__nativeId, long other); /** *

See QGeoCoordinate::toString(QGeoCoordinate::CoordinateFormat)const

*/ public final java.lang.@NonNull String toString(io.qt.positioning.QGeoCoordinate.@NonNull CoordinateFormat format){ return toString_native_QGeoCoordinate_CoordinateFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format.value()); } private native java.lang.String toString_native_QGeoCoordinate_CoordinateFormat_constfct(long __this__nativeId, int format); /** *

See QGeoCoordinate::type()const

*/ @QtUninvokable public final io.qt.positioning.QGeoCoordinate.@NonNull CoordinateType type(){ return io.qt.positioning.QGeoCoordinate.CoordinateType.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int type_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGeoCoordinate(QPrivateConstructor p) { super(p); } /** *

See operator==(QGeoCoordinate,QGeoCoordinate)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.positioning.QGeoCoordinate) { return equals((io.qt.positioning.QGeoCoordinate) other); } return false; } /** * Returns the objects's hash code computed by qHash(QGeoCoordinate). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QGeoCoordinate::QGeoCoordinate(QGeoCoordinate)

*/ @QtUninvokable @Override public QGeoCoordinate clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QGeoCoordinate clone_native(long __this_nativeId); /** * @hidden *

Kotlin property getter. In Java use {@link #altitude()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getAltitude() { return altitude(); } /** *

Overloaded function for {@link #atDistanceAndAzimuth(double, double, double)} * with distanceUp = 0.0.

*/ public final io.qt.positioning.@NonNull QGeoCoordinate atDistanceAndAzimuth(double distance, double azimuth) { return atDistanceAndAzimuth(distance, azimuth, (double)0.0); } /** * @hidden *

Kotlin property getter. In Java use {@link #latitude()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getLatitude() { return latitude(); } /** * @hidden *

Kotlin property getter. In Java use {@link #longitude()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getLongitude() { return longitude(); } /** *

Overloaded function for {@link #toString(io.qt.positioning.QGeoCoordinate.CoordinateFormat)} * with format = io.qt.positioning.QGeoCoordinate.CoordinateFormat.DegreesMinutesSecondsWithHemisphere.

*/ public final java.lang.@NonNull String toString() { return toString(io.qt.positioning.QGeoCoordinate.CoordinateFormat.DegreesMinutesSecondsWithHemisphere); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy