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
-
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
ConstructorsConstructorDescriptionQGeoPath()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 voidaddCoordinate(QGeoCoordinate coordinate) final voidfinal voidclone()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(QGeoPath).final 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>path()voidreadFrom(QDataStream stream) Seeoperator>>(QDataStream&,QGeoPath&) final voidremoveCoordinate(long index) final voidremoveCoordinate(QGeoCoordinate coordinate) final voidreplaceCoordinate(long index, QGeoCoordinate coordinate) final voidsetPath(Collection<? extends QGeoCoordinate> path) final voidsetVariantPath(Collection<? extends Object> path) This property holds the list of coordinates for the geo pathfinal voidsetWidth(double width) final longsize()final StringtoString()final voidtranslate(double degreesLatitude, double degreesLongitude) final QGeoPathtranslated(double degreesLatitude, double degreesLongitude) This property holds the list of coordinates for the geo pathfinal doublewidth()voidwriteTo(QDataStream stream) Seeoperator<<(QDataStream&,QGeoPath) 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
-
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
-
containsCoordinate
- Parameters:
coordinate-- Returns:
-
coordinateAt
- Parameters:
index-- Returns:
-
insertCoordinate
- Parameters:
index-coordinate-
-
length
public final double length(long indexFrom, long indexTo) - Parameters:
indexFrom-indexTo-- Returns:
-
writeTo
See
operator<<(QDataStream&,QGeoPath) -
assign
- Parameters:
other-
-
readFrom
See
operator>>(QDataStream&,QGeoPath&) -
path
- Returns:
-
removeCoordinate
- Parameters:
coordinate-
-
removeCoordinate
public final void removeCoordinate(long 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 long size()- Returns:
-
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:
-
hashCode
Returns the objects's hash code computed byqHash(QGeoPath). -
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()
-