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
-
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
ConstructorsConstructorDescriptionQGeoRectangle(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 voidassign(QGeoRectangle other) final QGeoCoordinatefinal QGeoCoordinateclone()Creates and returns a copy of this object.final booleancontains(QGeoRectangle rectangle) final voidextendRectangle(QGeoCoordinate coordinate) inthashCode()Returns the objects's hash code computed byqHash(QGeoRectangle).final doubleheight()final booleanintersects(QGeoRectangle rectangle) voidreadFrom(QDataStream stream) Seeoperator>>(QDataStream&,QGeoRectangle&) final voidsetBottomLeft(QGeoCoordinate bottomLeft) final voidsetBottomRight(QGeoCoordinate bottomRight) final voidsetCenter(QGeoCoordinate center) final voidsetHeight(double degreesHeight) final voidsetTopLeft(QGeoCoordinate topLeft) final voidsetTopRight(QGeoCoordinate topRight) final voidsetWidth(double degreesWidth) final QGeoCoordinatetopLeft()final QGeoCoordinatetopRight()final StringtoString()final voidtranslate(double degreesLatitude, double degreesLongitude) final QGeoRectangletranslated(double degreesLatitude, double degreesLongitude) final QGeoRectangleunited(QGeoRectangle rectangle) final doublewidth()voidwriteTo(QDataStream stream) Seeoperator<<(QDataStream&,QGeoRectangle) 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
-
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-
-
height
- Returns:
-
intersects
- Parameters:
rectangle-- Returns:
-
writeTo
See
operator<<(QDataStream&,QGeoRectangle) -
assign
- Parameters:
other-
-
readFrom
See
operator>>(QDataStream&,QGeoRectangle&) -
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:
-
hashCode
Returns the objects's hash code computed byqHash(QGeoRectangle). -
clone
Creates and returns a copy of this object.
-