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 class QGeoPolygon
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.positioning.QGeoShape
QGeoShape.ShapeType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQGeoPolygon
(QGeoPolygon other) QGeoPolygon
(QGeoShape other) QGeoPolygon
(Collection<? extends QGeoCoordinate> path) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCoordinate
(QGeoCoordinate coordinate) final void
final void
addHole
(Collection<? extends QGeoCoordinate> holePath) final void
assign
(QGeoPolygon other) clone()
Creates and returns a copy of this object.final boolean
containsCoordinate
(QGeoCoordinate coordinate) final QGeoCoordinate
coordinateAt
(long index) int
hashCode()
Returns the objects's hash code computed byqHash(QGeoPolygon)
.hole
(long index) final QList<QGeoCoordinate>
holePath
(long index) final long
final void
insertCoordinate
(long index, QGeoCoordinate coordinate) final double
length()
Overloaded function forlength(long, long)
final double
length
(long indexFrom) Overloaded function forlength(long, long)
withindexTo = -1
.final double
length
(long indexFrom, long indexTo) final QList<QGeoCoordinate>
void
readFrom
(QDataStream stream) Seeoperator>>(QDataStream&,
QGeoPolygon&) final void
removeCoordinate
(long index) final void
removeCoordinate
(QGeoCoordinate coordinate) final void
removeHole
(long index) final void
replaceCoordinate
(long index, QGeoCoordinate coordinate) final void
setPerimeter
(Collection<? extends QGeoCoordinate> path) final long
size()
final String
toString()
final void
translate
(double degreesLatitude, double degreesLongitude) final QGeoPolygon
translated
(double degreesLatitude, double degreesLongitude) void
writeTo
(QDataStream stream) Methods inherited from class io.qt.positioning.QGeoShape
assign, boundingGeoRectangle, center, contains, equals, equals, isEmpty, isValid, type
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
-
-
Method Details
-
addCoordinate
-
addHole
-
addHole
-
containsCoordinate
-
coordinateAt
-
hole
-
holePath
-
holesCount
public final long holesCount() -
insertCoordinate
-
length
public final double length(long indexFrom, long indexTo) -
writeTo
-
assign
-
readFrom
See
operator>>(QDataStream&,
QGeoPolygon&) -
perimeter
See
QGeoPolygon::
perimeter()const This function was introduced in Qt QtPositioning 5.12.
-
removeCoordinate
-
removeCoordinate
public final void removeCoordinate(long index) -
removeHole
public final void removeHole(long index) -
replaceCoordinate
-
setPerimeter
See
QGeoPolygon::
setPerimeter(QList<QGeoCoordinate>) This function was introduced in Qt QtPositioning 5.12.
-
size
public final long size() -
toString
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) -
translated
-
hashCode
Returns the objects's hash code computed byqHash(QGeoPolygon)
. -
clone
Creates and returns a copy of this object.
-
length
public final double length(long indexFrom) Overloaded function for
length(long, long)
withindexTo = -1
. -
length
public final double length()
-