java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.positioning.QGeoShape
io.qt.positioning.QGeoPolygon
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QGeoPolygon extends QGeoShape implements Cloneable
Defines a geographic polygon
Java wrapper for Qt class QGeoPolygon
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QGeoPolygon()
QGeoPolygon(QGeoPolygon other)
QGeoPolygon(QGeoShape other)
protected
QGeoPolygon(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGeoPolygon(Collection<QGeoCoordinate> path)
-
Method Summary
Modifier and Type Method Description void
addCoordinate(QGeoCoordinate coordinate)
void
addHole(Object holePath)
void
addHole(Collection<QGeoCoordinate> holePath)
QGeoPolygon
clone()
boolean
containsCoordinate(QGeoCoordinate coordinate)
QGeoCoordinate
coordinateAt(int index)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QList<Object>
hole(int index)
QList<QGeoCoordinate>
holePath(int index)
int
holesCount()
void
insertCoordinate(int index, QGeoCoordinate coordinate)
double
length()
Overloaded function forlength(int, int)
double
length(int indexFrom)
Overloaded function forlength(int, int)
withindexTo = -1
.double
length(int indexFrom, int indexTo)
QList<QGeoCoordinate>
path()
protected QList<Object>
perimeter()
void
removeCoordinate(int index)
void
removeCoordinate(QGeoCoordinate coordinate)
void
removeHole(int index)
void
replaceCoordinate(int index, QGeoCoordinate coordinate)
void
setPath(Collection<QGeoCoordinate> path)
protected void
setPerimeter(Collection<Object> path)
int
size()
void
translate(double degreesLatitude, double degreesLongitude)
QGeoPolygon
translated(double degreesLatitude, double degreesLongitude)
-
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) -
path
-
perimeter
-
removeCoordinate
-
removeCoordinate
public final void removeCoordinate(int index) -
removeHole
public final void removeHole(int index) -
replaceCoordinate
-
setPath
-
setPerimeter
-
size
public final int size() -
translate
public final void translate(double degreesLatitude, double degreesLongitude) -
translated
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-