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 class QGeoRectangle
- Since:
- This class was introduced in Qt 5.2.
-
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
ConstructorDescriptionQGeoRectangle
(QGeoCoordinate center, double degreesWidth, double degreesHeight) QGeoRectangle
(QGeoCoordinate topLeft, QGeoCoordinate bottomRight) QGeoRectangle
(QGeoRectangle other) QGeoRectangle
(QGeoShape other) QGeoRectangle
(Collection<? extends QGeoCoordinate> coordinates) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QGeoRectangle other) final QGeoCoordinate
final QGeoCoordinate
clone()
Creates and returns a copy of this object.final boolean
contains
(QGeoRectangle rectangle) final boolean
equals
(QGeoRectangle other) boolean
final void
extendRectangle
(QGeoCoordinate coordinate) int
hashCode()
Returns the objects's hash code computed byqHash(QGeoRectangle)
.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, 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
-
QGeoRectangle
public QGeoRectangle() -
QGeoRectangle
- Parameters:
topLeft
-bottomRight
-
-
QGeoRectangle
- Parameters:
center
-degreesWidth
-degreesHeight
-
-
QGeoRectangle
- Parameters:
other
-
-
QGeoRectangle
- Parameters:
other
-
-
QGeoRectangle
- Parameters:
coordinates
-
-
-
Method Details
-
bottomLeft
- Returns:
-
bottomRight
- Returns:
-
contains
- Parameters:
rectangle
-- Returns:
-
extendRectangle
- Parameters:
coordinate
-- Since:
- This function was introduced in Qt 5.9.
-
height
- Returns:
-
intersects
- Parameters:
rectangle
-- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
setBottomLeft
- Parameters:
bottomLeft
-
-
setBottomRight
- Parameters:
bottomRight
-
-
setCenter
- Parameters:
center
-
-
setHeight
- Parameters:
degreesHeight
-
-
setTopLeft
- Parameters:
topLeft
-
-
setTopRight
- Parameters:
topRight
-
-
setWidth
- Parameters:
degreesWidth
-
-
toString
-
topLeft
- Returns:
-
topRight
- Returns:
-
translate
public final void translate(double degreesLatitude, double degreesLongitude) - Parameters:
degreesLatitude
-degreesLongitude
-
-
translated
- Parameters:
degreesLatitude
-degreesLongitude
-- Returns:
-
united
- Parameters:
rectangle
-- Returns:
-
width
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QGeoRectangle)
. -
clone
Creates and returns a copy of this object.
-