java.lang.Object
io.qt.QtObject
io.qt.positioning.QGeoShape
io.qt.positioning.QGeoPath
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a geographic path
Java wrapper for Qt's class QGeoPath
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.positioning.QGeoShape
QGeoShape.ShapeType
Nested 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
ModifierConstructorDescriptionQGeoPath()
QGeoPath
(Collection<? extends QGeoCoordinate> path) Overloaded constructor forQGeoPath(java.util.Collection, double)
withwidth = 0.0
.QGeoPath
(Collection<? extends QGeoCoordinate> path, double width) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCoordinate
(QGeoCoordinate coordinate) final void
final void
clone()
final boolean
containsCoordinate
(QGeoCoordinate coordinate) final QGeoCoordinate
coordinateAt
(int index) 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.getPath()
Kotlin property getter.final double
getWidth()
Kotlin property getter.int
hashCode()
final void
insertCoordinate
(int index, QGeoCoordinate coordinate) final double
length()
Overloaded function forlength(int, int)
final double
length
(int indexFrom) Overloaded function forlength(int, int)
withindexTo = -1
.final double
length
(int indexFrom, int indexTo) final QList<QGeoCoordinate>
path()
final void
removeCoordinate
(int index) final void
removeCoordinate
(QGeoCoordinate coordinate) final void
replaceCoordinate
(int index, QGeoCoordinate coordinate) final void
setPath
(Collection<? extends QGeoCoordinate> path) final void
setVariantPath
(Collection<? extends Object> path) This property holds the list of coordinates for the geo pathfinal void
setWidth
(double width) final int
size()
final String
toString()
final void
translate
(double degreesLatitude, double degreesLongitude) final QGeoPath
translated
(double degreesLatitude, double degreesLongitude) This property holds the list of coordinates for the geo pathfinal double
width()
Methods inherited from class io.qt.positioning.QGeoShape
assign, boundingGeoRectangle, center, contains, extendShape, getType, isEmpty, isValid, readFrom, type, writeTo
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QGeoPath
public QGeoPath() -
QGeoPath
-
QGeoPath
-
QGeoPath
Overloaded constructor for
QGeoPath(java.util.Collection, double)
withwidth = 0.0
. -
QGeoPath
-
QGeoPath
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addCoordinate
-
clearPath
-
containsCoordinate
-
coordinateAt
-
insertCoordinate
-
length
public final double length(int indexFrom) Overloaded function for
length(int, int)
withindexTo = -1
. -
length
public final double length() -
length
public final double length(int indexFrom, int indexTo) -
assign
-
path
-
removeCoordinate
-
removeCoordinate
public final void removeCoordinate(int index) -
replaceCoordinate
-
setPath
-
setVariantPath
This property holds the list of coordinates for the geo path
-
setWidth
-
size
public final int size() -
toString
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) -
translated
-
getPath
Kotlin property getter. In Java use
variantPath()
instead. -
variantPath
This property holds the list of coordinates for the geo path
-
getWidth
Kotlin property getter. In Java use
width()
instead. -
width
-
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
-