java.lang.Object
io.qt.QtObject
io.qt.positioning.QGeoShape
io.qt.positioning.QGeoRectangle
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a rectangular geographic area
Java wrapper for Qt's class QGeoRectangle
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.positioning.QGeoShape
QGeoShape.ShapeType
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQGeoRectangle
(QGeoCoordinate center, double degreesWidth, double degreesHeight) QGeoRectangle
(QGeoCoordinate topLeft, QGeoCoordinate bottomRight) QGeoRectangle
(QGeoRectangle other) QGeoRectangle
(QGeoShape other) QGeoRectangle
(Collection<? extends QGeoCoordinate> coordinates) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QGeoRectangle other) final QGeoCoordinate
final QGeoCoordinate
clone()
final boolean
contains
(QGeoRectangle rectangle) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final void
extendRectangle
(QGeoCoordinate coordinate) final QGeoCoordinate
Kotlin property getter.final QGeoCoordinate
Kotlin property getter.final double
Kotlin property getter.final QGeoCoordinate
Kotlin property getter.final QGeoCoordinate
Kotlin property getter.final double
getWidth()
Kotlin property getter.int
hashCode()
final double
height()
final boolean
intersects
(QGeoRectangle rectangle) final void
setBottomLeft
(QGeoCoordinate bottomLeft) final void
setBottomRight
(QGeoCoordinate bottomRight) final void
setCenter
(QGeoCoordinate center) final void
setHeight
(double degreesHeight) final void
setTopLeft
(QGeoCoordinate topLeft) final void
setTopRight
(QGeoCoordinate topRight) final void
setWidth
(double degreesWidth) final QGeoCoordinate
topLeft()
final QGeoCoordinate
topRight()
final String
toString()
final void
translate
(double degreesLatitude, double degreesLongitude) final QGeoRectangle
translated
(double degreesLatitude, double degreesLongitude) final QGeoRectangle
united
(QGeoRectangle rectangle) final double
width()
Methods inherited from class io.qt.positioning.QGeoShape
assign, boundingGeoRectangle, center, contains, extendShape, getType, 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
-
QGeoRectangle
public QGeoRectangle() -
QGeoRectangle
-
QGeoRectangle
-
QGeoRectangle
-
QGeoRectangle
-
QGeoRectangle
-
QGeoRectangle
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
getBottomLeft
Kotlin property getter. In Java use
bottomLeft()
instead. -
bottomLeft
-
getBottomRight
Kotlin property getter. In Java use
bottomRight()
instead. -
bottomRight
-
contains
-
extendRectangle
-
getHeight
Kotlin property getter. In Java use
height()
instead. -
height
-
intersects
-
assign
-
setBottomLeft
-
setBottomRight
-
setCenter
-
setHeight
-
setTopLeft
-
setTopRight
-
setWidth
-
toString
-
getTopLeft
Kotlin property getter. In Java use
topLeft()
instead. -
topLeft
-
getTopRight
Kotlin property getter. In Java use
topRight()
instead. -
topRight
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) -
translated
-
united
-
getWidth
Kotlin property getter. In Java use
width()
instead. -
width
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-