QGeoCircle¶
The
QGeoCircle
class defines a circular geographic area. More…

Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
extendCircle
(coordinate)def
radius
()def
setCenter
(center)def
setRadius
(radius)def
translate
(degreesLatitude, degreesLongitude)def
translated
(degreesLatitude, degreesLongitude)
Detailed Description¶
The circle is defined in terms of a
QGeoCoordinate
which specifies the center of the circle and a qreal which specifies the radius of the circle in meters.The circle is considered invalid if the center coordinate is invalid or if the radius is less than zero.
This class is a
Q_GADGET
since Qt 5.5. It can be directly used from C++ and QML .
-
class
QGeoCircle
¶ QGeoCircle(other)
QGeoCircle(center[, radius=-1.0])
QGeoCircle(other)
- param radius
qreal
- param other
- param center
Constructs a new, invalid geo circle.
Constructs a new geo circle from the contents of
other
.Constructs a new geo circle centered at
center
and with a radius ofradius
meters.Constructs a new geo circle from the contents of
other
.
-
PySide2.QtPositioning.QGeoCircle.
extendCircle
(coordinate)¶ - Parameters
coordinate –
QGeoCoordinate
Extends the geo circle to also cover the coordinate
coordinate
-
PySide2.QtPositioning.QGeoCircle.
__ne__
(other)¶ - Parameters
other –
QGeoCircle
- Return type
bool
Returns whether this geo circle is not equal to
other
.
-
PySide2.QtPositioning.QGeoCircle.
__eq__
(other)¶ - Parameters
other –
QGeoCircle
- Return type
bool
Returns whether this geo circle is equal to
other
.
-
PySide2.QtPositioning.QGeoCircle.
radius
()¶ - Return type
qreal
Returns the radius in meters of this geo circle.
See also
-
PySide2.QtPositioning.QGeoCircle.
setCenter
(center)¶ - Parameters
center –
QGeoCoordinate
Sets the center coordinate of this geo circle to
center
.See also
center()
-
PySide2.QtPositioning.QGeoCircle.
setRadius
(radius)¶ - Parameters
radius –
qreal
Sets the radius in meters of this geo circle to
radius
.See also
-
PySide2.QtPositioning.QGeoCircle.
translate
(degreesLatitude, degreesLongitude)¶ - Parameters
degreesLatitude –
double
degreesLongitude –
double
Translates this geo circle by
degreesLatitude
northwards anddegreesLongitude
eastwards.Negative values of
degreesLatitude
anddegreesLongitude
correspond to southward and westward translation respectively.
-
PySide2.QtPositioning.QGeoCircle.
translated
(degreesLatitude, degreesLongitude)¶ - Parameters
degreesLatitude –
double
degreesLongitude –
double
- Return type
Returns a copy of this geo circle translated by
degreesLatitude
northwards anddegreesLongitude
eastwards.Negative values of
degreesLatitude
anddegreesLongitude
correspond to southward and westward translation respectively.See also