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
FieldsModifier and TypeFieldDescriptionstatic final QMetaObjectThis variable stores the meta-object for the class. -
Constructor Summary
ConstructorsConstructorDescriptionQGeoPolygon(QGeoPolygon other) QGeoPolygon(QGeoShape other) QGeoPolygon(Collection<? extends QGeoCoordinate> path) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddCoordinate(QGeoCoordinate coordinate) final voidfinal voidaddHole(Collection<? extends QGeoCoordinate> holePath) final voidassign(QGeoPolygon other) clone()Creates and returns a copy of this object.final booleancontainsCoordinate(QGeoCoordinate coordinate) final QGeoCoordinatecoordinateAt(long index) inthashCode()Returns the objects's hash code computed byqHash(QGeoPolygon).hole(long index) final QList<QGeoCoordinate>holePath(long index) final longfinal voidinsertCoordinate(long index, QGeoCoordinate coordinate) final doublelength()Overloaded function forlength(long, long)final doublelength(long indexFrom) Overloaded function forlength(long, long)withindexTo = -1.final doublelength(long indexFrom, long indexTo) final QList<QGeoCoordinate>voidreadFrom(QDataStream stream) Seeoperator>>(QDataStream&,QGeoPolygon&) final voidremoveCoordinate(long index) final voidremoveCoordinate(QGeoCoordinate coordinate) final voidremoveHole(long index) final voidreplaceCoordinate(long index, QGeoCoordinate coordinate) final voidsetPerimeter(Collection<? extends QGeoCoordinate> path) final longsize()final StringtoString()final voidtranslate(double degreesLatitude, double degreesLongitude) final QGeoPolygontranslated(double degreesLatitude, double degreesLongitude) voidwriteTo(QDataStream stream) Seeoperator<<(QDataStream&,QGeoPolygon) Methods inherited from class io.qt.positioning.QGeoShape
assign, boundingGeoRectangle, center, contains, equals, equals, isEmpty, isValid, typeMethods 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
- Parameters:
other-
-
QGeoPolygon
- Parameters:
other-
-
QGeoPolygon
- Parameters:
path-
-
-
Method Details
-
addCoordinate
- Parameters:
coordinate-
-
addHole
- Parameters:
holePath-
-
addHole
- Parameters:
holePath-
-
containsCoordinate
- Parameters:
coordinate-- Returns:
-
coordinateAt
- Parameters:
index-- Returns:
-
hole
- Parameters:
index-- Returns:
-
holePath
- Parameters:
index-- Returns:
-
holesCount
public final long holesCount()- Returns:
-
insertCoordinate
- Parameters:
index-coordinate-
-
length
public final double length(long indexFrom, long indexTo) - Parameters:
indexFrom-indexTo-- Returns:
-
writeTo
See
operator<<(QDataStream&,QGeoPolygon) -
assign
- Parameters:
other-
-
readFrom
See
operator>>(QDataStream&,QGeoPolygon&) -
perimeter
- Returns:
- Since:
- This function was introduced in Qt QtPositioning 5.12.
-
removeCoordinate
- Parameters:
coordinate-
-
removeCoordinate
public final void removeCoordinate(long index) - Parameters:
index-
-
removeHole
public final void removeHole(long index) - Parameters:
index-
-
replaceCoordinate
- Parameters:
index-coordinate-
-
setPerimeter
- Parameters:
path-- Since:
- This function was introduced in Qt QtPositioning 5.12.
-
size
public final long size()- Returns:
-
toString
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) - Parameters:
degreesLatitude-degreesLongitude-
-
translated
- Parameters:
degreesLatitude-degreesLongitude-- Returns:
-
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()
-