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

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

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

import io.qt.*;


/**
 * 

Defines a geographic polygon

*

Java wrapper for Qt class QGeoPolygon

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

See QGeoPolygon::QGeoPolygon()

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

See QGeoPolygon::QGeoPolygon(QGeoPolygon)

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

See QGeoPolygon::QGeoPolygon(QGeoShape)

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

See QGeoPolygon::QGeoPolygon(QList<QGeoCoordinate>)

*/ public QGeoPolygon(java.util.@NonNull Collection path){ super((QPrivateConstructor)null); initialize_native(this, path); } private native static void initialize_native(QGeoPolygon instance, java.util.Collection path); /** *

See QGeoPolygon::addCoordinate(QGeoCoordinate)

*/ public final void addCoordinate(io.qt.positioning.@NonNull QGeoCoordinate coordinate){ addCoordinate_native_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(coordinate)); } private native void addCoordinate_native_cref_QGeoCoordinate(long __this__nativeId, long coordinate); /** *

See QGeoPolygon::addHole(QList<QGeoCoordinate>)

*/ @QtUninvokable public final void addHole(java.util.@NonNull Collection holePath){ addHole_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), holePath); } @QtUninvokable private native void addHole_native_cref_QList(long __this__nativeId, java.util.Collection holePath); /** *

See QGeoPolygon::addHole(QVariant)

*/ public final void addHole(java.lang.Object holePath){ addHole_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), holePath); } private native void addHole_native_cref_QVariant(long __this__nativeId, java.lang.Object holePath); /** *

See QGeoPolygon::containsCoordinate(QGeoCoordinate)const

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

See QGeoPolygon::coordinateAt(qsizetype)const

*/ public final io.qt.positioning.@NonNull QGeoCoordinate coordinateAt(long index){ return coordinateAt_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native io.qt.positioning.QGeoCoordinate coordinateAt_native_qsizetype_constfct(long __this__nativeId, long index); /** *

See QGeoPolygon::hole(qsizetype)const

*/ public final io.qt.core.@NonNull QList hole(long index){ return hole_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native io.qt.core.QList hole_native_qsizetype_constfct(long __this__nativeId, long index); /** *

See QGeoPolygon::holePath(qsizetype)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList holePath(long index){ return holePath_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.core.QList holePath_native_qsizetype_constfct(long __this__nativeId, long index); /** *

See QGeoPolygon::holesCount()const

*/ public final long holesCount(){ return holesCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native long holesCount_native_constfct(long __this__nativeId); /** *

See QGeoPolygon::insertCoordinate(qsizetype,QGeoCoordinate)

*/ public final void insertCoordinate(long index, io.qt.positioning.@NonNull QGeoCoordinate coordinate){ insertCoordinate_native_qsizetype_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(coordinate)); } private native void insertCoordinate_native_qsizetype_cref_QGeoCoordinate(long __this__nativeId, long index, long coordinate); /** *

See QGeoPolygon::length(qsizetype,qsizetype)const

*/ public final double length(long indexFrom, long indexTo){ return length_native_qsizetype_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indexFrom, indexTo); } private native double length_native_qsizetype_qsizetype_constfct(long __this__nativeId, long indexFrom, long indexTo); /** *

See operator<<(QDataStream&,QGeoPolygon)

*/ @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 QGeoPolygon::operator=(QGeoPolygon)

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

See operator>>(QDataStream&,QGeoPolygon&)

*/ @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 QGeoPolygon::perimeter()const

*/ @QtPropertyReader(name="perimeter") @QtUninvokable public final io.qt.core.@NonNull QList perimeter(){ return perimeter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList perimeter_native_constfct(long __this__nativeId); /** *

See QGeoPolygon::removeCoordinate(QGeoCoordinate)

*/ public final void removeCoordinate(io.qt.positioning.@NonNull QGeoCoordinate coordinate){ removeCoordinate_native_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(coordinate)); } private native void removeCoordinate_native_cref_QGeoCoordinate(long __this__nativeId, long coordinate); /** *

See QGeoPolygon::removeCoordinate(qsizetype)

*/ public final void removeCoordinate(long index){ removeCoordinate_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native void removeCoordinate_native_qsizetype(long __this__nativeId, long index); /** *

See QGeoPolygon::removeHole(qsizetype)

*/ public final void removeHole(long index){ removeHole_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native void removeHole_native_qsizetype(long __this__nativeId, long index); /** *

See QGeoPolygon::replaceCoordinate(qsizetype,QGeoCoordinate)

*/ public final void replaceCoordinate(long index, io.qt.positioning.@NonNull QGeoCoordinate coordinate){ replaceCoordinate_native_qsizetype_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(coordinate)); } private native void replaceCoordinate_native_qsizetype_cref_QGeoCoordinate(long __this__nativeId, long index, long coordinate); /** *

See QGeoPolygon::setPerimeter(QList<QGeoCoordinate>)

*/ @QtPropertyWriter(name="perimeter") @QtUninvokable public final void setPerimeter(java.util.@NonNull Collection path){ setPerimeter_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), path); } @QtUninvokable private native void setPerimeter_native_cref_QList(long __this__nativeId, java.util.Collection path); /** *

See QGeoPolygon::size()const

*/ public final long size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native long size_native_constfct(long __this__nativeId); /** *

See QGeoShape::toString()const

*/ public final java.lang.@NonNull String toString(){ return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native java.lang.String toString_native_constfct(long __this__nativeId); /** *

See QGeoPolygon::translate(double,double)

*/ public final void translate(double degreesLatitude, double degreesLongitude){ translate_native_double_double(QtJambi_LibraryUtilities.internal.nativeId(this), degreesLatitude, degreesLongitude); } private native void translate_native_double_double(long __this__nativeId, double degreesLatitude, double degreesLongitude); /** *

See QGeoPolygon::translated(double,double)const

*/ public final io.qt.positioning.@NonNull QGeoPolygon translated(double degreesLatitude, double degreesLongitude){ return translated_native_double_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), degreesLatitude, degreesLongitude); } private native io.qt.positioning.QGeoPolygon translated_native_double_double_constfct(long __this__nativeId, double degreesLatitude, double degreesLongitude); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGeoPolygon(QPrivateConstructor p) { super(p); } /** * Returns the objects's hash code computed by qHash(QGeoPolygon). */ @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 QGeoPolygon::QGeoPolygon(QGeoPolygon)

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

Overloaded function for {@link #length(long, long)} * with indexTo = -1.

*/ public final double length(long indexFrom) { return length(indexFrom, (long)-1); } /** *

Overloaded function for {@link #length(long, long)}

*

with:

    *
  • indexFrom = 0
  • *
  • indexTo = -1
  • *
*/ public final double length() { return length((long)0, (long)-1); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QList getPerimeter() { return perimeter(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy