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
- Since:
- This class was introduced in Qt 5.10.
-
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
(int index) final boolean
equals
(QGeoPolygon other) boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QGeoPolygon)
.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, equals, extendShape, 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
- Parameters:
other
-
-
QGeoPolygon
- Parameters:
other
-
-
QGeoPolygon
- Parameters:
path
-
-
-
Method Details
-
addCoordinate
- Parameters:
coordinate
-
-
addHole
- Parameters:
holePath
-- Since:
- This function was introduced in Qt 5.12.
-
addHole
- Parameters:
holePath
-- Since:
- This function was introduced in Qt 5.12.
-
containsCoordinate
- Parameters:
coordinate
-- Returns:
-
coordinateAt
- Parameters:
index
-- Returns:
-
hole
- Parameters:
index
-- Returns:
- Since:
- This function was introduced in Qt 5.12.
-
holePath
- Parameters:
index
-- Returns:
- Since:
- This function was introduced in Qt 5.12.
-
holesCount
public final int holesCount()- Returns:
- Since:
- This function was introduced in Qt 5.12.
-
insertCoordinate
- Parameters:
index
-coordinate
-
-
length
public final double length(int indexFrom, int indexTo) - Parameters:
indexFrom
-indexTo
-- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
path
- Returns:
-
perimeter
- Returns:
- Since:
- This function was introduced in Qt QtPositioning 5.12.
-
removeCoordinate
- Parameters:
coordinate
-
-
removeCoordinate
public final void removeCoordinate(int index) - Parameters:
index
-
-
removeHole
public final void removeHole(int index) - Parameters:
index
-- Since:
- This function was introduced in Qt 5.12.
-
replaceCoordinate
- Parameters:
index
-coordinate
-
-
setPath
- Parameters:
path
-
-
setPerimeter
- Parameters:
path
-- Since:
- This function was introduced in Qt QtPositioning 5.12.
-
size
public final int size()- Returns:
- Since:
- This function was introduced in Qt 5.10.
-
toString
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) - Parameters:
degreesLatitude
-degreesLongitude
-
-
translated
- Parameters:
degreesLatitude
-degreesLongitude
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QGeoPolygon)
. -
clone
Creates and returns a copy of this object.
-
length
public final double length(int indexFrom) Overloaded function for
length(int, int)
withindexTo = -1
. -
length
public final double length()
-