io.qt.positioning.QGeoPath Maven / Gradle / Ivy
Show all versions of qtjambi-positioning Show documentation
package io.qt.positioning;
import io.qt.*;
/**
* Defines a geographic path
* Java wrapper for Qt class QGeoPath
*/
public class QGeoPath 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(QGeoPath.class);
/**
*
*/
public QGeoPath(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QGeoPath instance);
/**
* See QGeoPath:: QGeoPath(QGeoPath)
*/
public QGeoPath(io.qt.positioning.@NonNull QGeoPath other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QGeoPath instance, io.qt.positioning.QGeoPath other);
/**
* See QGeoPath:: QGeoPath(QGeoShape)
*/
public QGeoPath(io.qt.positioning.@NonNull QGeoShape other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QGeoPath instance, io.qt.positioning.QGeoShape other);
/**
* See QGeoPath:: QGeoPath(QList<QGeoCoordinate>, qreal)
*/
public QGeoPath(java.util.@NonNull Collection extends io.qt.positioning.@NonNull QGeoCoordinate> path, double width){
super((QPrivateConstructor)null);
initialize_native(this, path, width);
}
private native static void initialize_native(QGeoPath instance, java.util.Collection extends io.qt.positioning.QGeoCoordinate> path, double width);
/**
* See QGeoPath:: 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);
/**
*
*/
@QtUninvokable
public final void clearPath(){
clearPath_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearPath_native(long __this__nativeId);
/**
* See QGeoPath:: 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 QGeoPath:: 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 QGeoPath:: 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 QGeoPath:: 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&, QGeoPath)
*/
@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 QGeoPath:: operator=(QGeoPath)
*/
@QtUninvokable
public final void assign(io.qt.positioning.@NonNull QGeoPath other){
assign_native_cref_QGeoPath(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QGeoPath(long __this__nativeId, long other);
/**
* See operator>>(QDataStream&, QGeoPath&)
*/
@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);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList path(){
return path_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList path_native_constfct(long __this__nativeId);
/**
* See QGeoPath:: 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 QGeoPath:: 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 QGeoPath:: 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 QGeoPath:: setPath(QList<QGeoCoordinate>)
*/
@QtUninvokable
public final void setPath(java.util.@NonNull Collection extends io.qt.positioning.@NonNull QGeoCoordinate> path){
setPath_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@QtUninvokable
private native void setPath_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.positioning.QGeoCoordinate> path);
/**
* This property holds the list of coordinates for the geo path
* See QGeoPath:: setVariantPath(QVariantList)
*/
@QtPropertyWriter(name="path")
@QtUninvokable
public final void setVariantPath(java.util.@NonNull Collection extends java.lang.Object> path){
setVariantPath_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@QtUninvokable
private native void setVariantPath_native_cref_QList(long __this__nativeId, java.util.Collection extends java.lang.Object> path);
/**
*
*/
@QtPropertyWriter(name="width")
@QtUninvokable
public final void setWidth(double width){
setWidth_native_cref_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setWidth_native_cref_qreal(long __this__nativeId, double width);
/**
*
*/
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 QGeoPath:: 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 QGeoPath:: translated(double, double)const
*/
public final io.qt.positioning.@NonNull QGeoPath translated(double degreesLatitude, double degreesLongitude){
return translated_native_double_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), degreesLatitude, degreesLongitude);
}
private native io.qt.positioning.QGeoPath translated_native_double_double_constfct(long __this__nativeId, double degreesLatitude, double degreesLongitude);
/**
* This property holds the list of coordinates for the geo path
* See QGeoPath:: variantPath()const
*/
@QtPropertyReader(name="path")
@QtUninvokable
public final io.qt.core.@NonNull QList variantPath(){
return variantPath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList variantPath_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="width")
@QtUninvokable
public final double width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double width_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGeoPath(QPrivateConstructor p) { super(p); }
/**
* Returns the objects's hash code computed by qHash(QGeoPath)
.
*/
@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 QGeoPath:: QGeoPath(QGeoPath)
*/
@QtUninvokable
@Override
public QGeoPath clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QGeoPath clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QGeoPath(java.util.Collection, double)}
* with width = 0.0
.
*/
public QGeoPath(java.util.@NonNull Collection extends io.qt.positioning.@NonNull QGeoCoordinate> path) {
this(path, (double)0.0);
}
/**
* 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 #variantPath()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QList getPath() {
return variantPath();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #width()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getWidth() {
return width();
}
}