java.lang.Object
io.qt.QtObject
io.qt.positioning.QGeoShape
io.qt.positioning.QGeoPath
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a geographic path
Java wrapper for Qt class QGeoPath
- Since:
- This class was introduced in Qt 5.9.
-
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
ConstructorDescriptionQGeoPath()
QGeoPath
(Collection<? extends QGeoCoordinate> path) Overloaded constructor forQGeoPath(java.util.Collection, double)
withwidth = 0.0
.QGeoPath
(Collection<? extends QGeoCoordinate> path, double width) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCoordinate
(QGeoCoordinate coordinate) final void
final void
clone()
Creates and returns a copy of this object.final boolean
containsCoordinate
(QGeoCoordinate coordinate) final QGeoCoordinate
coordinateAt
(int index) final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QGeoPath)
.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
replaceCoordinate
(int index, QGeoCoordinate coordinate) final void
setPath
(Collection<? extends QGeoCoordinate> path) final void
setVariantPath
(Collection<? extends Object> path) This property holds the list of coordinates for the geo pathfinal void
setWidth
(double width) final int
size()
final String
toString()
final void
translate
(double degreesLatitude, double degreesLongitude) final QGeoPath
translated
(double degreesLatitude, double degreesLongitude) This property holds the list of coordinates for the geo pathfinal double
width()
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
-
QGeoPath
public QGeoPath() -
QGeoPath
- Parameters:
other
-
-
QGeoPath
- Parameters:
other
-
-
QGeoPath
- Parameters:
path
-width
-
-
QGeoPath
Overloaded constructor for
QGeoPath(java.util.Collection, double)
withwidth = 0.0
.
-
-
Method Details
-
addCoordinate
- Parameters:
coordinate
-
-
clearPath
- Since:
- This function was introduced in Qt 5.12.
-
containsCoordinate
- Parameters:
coordinate
-- Returns:
-
coordinateAt
- Parameters:
index
-- Returns:
-
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:
-
removeCoordinate
- Parameters:
coordinate
-
-
removeCoordinate
public final void removeCoordinate(int index) - Parameters:
index
-
-
replaceCoordinate
- Parameters:
index
-coordinate
-
-
setPath
- Parameters:
path
-
-
setVariantPath
This property holds the list of coordinates for the geo path
- Parameters:
path
-
-
setWidth
- Parameters:
width
-
-
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:
-
variantPath
This property holds the list of coordinates for the geo path
- Returns:
-
width
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QGeoPath)
. -
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()
-