java.lang.Object
io.qt.QtObject
io.qt.positioning.QGeoShape
io.qt.positioning.QGeoPolygon
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a geographic polygon
Java wrapper for Qt's class QGeoPolygon
-
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
ModifierConstructorDescriptionQGeoPolygon
(QGeoPolygon other) QGeoPolygon
(QGeoShape other) QGeoPolygon
(Collection<? extends QGeoCoordinate> path) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCoordinate
(QGeoCoordinate coordinate) final void
addHole
(Collection<? extends QGeoCoordinate> holePath) final void
final void
assign
(QGeoPolygon other) 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.Kotlin property getter.int
hashCode()
hole
(int index) final QList<QGeoCoordinate>
holePath
(int index) final int
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
removeHole
(int index) final void
replaceCoordinate
(int index, QGeoCoordinate coordinate) final void
setPath
(Collection<? extends QGeoCoordinate> path) protected final void
setPerimeter
(Collection<? extends Object> path) final int
size()
final String
toString()
final void
translate
(double degreesLatitude, double degreesLongitude) final QGeoPolygon
translated
(double degreesLatitude, double degreesLongitude) 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
-
QGeoPolygon
public QGeoPolygon() -
QGeoPolygon
-
QGeoPolygon
-
QGeoPolygon
-
QGeoPolygon
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addCoordinate
-
addHole
-
addHole
-
containsCoordinate
-
coordinateAt
-
hole
-
holePath
-
holesCount
public final int holesCount() -
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
-
getPerimeter
Kotlin property getter. In Java use
perimeter()
instead. -
perimeter
-
removeCoordinate
-
removeCoordinate
public final void removeCoordinate(int index) -
removeHole
public final void removeHole(int index) -
replaceCoordinate
-
setPath
-
setPerimeter
-
size
public final int size() -
toString
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) -
translated
-
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
-