QGeoCircle¶
The
QGeoCircleclass 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
QGeoCoordinatewhich 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_GADGETsince Qt 5.5. It can be directly used from C++ and QML .
- class PySide2.QtPositioning.QGeoCircle¶
PySide2.QtPositioning.QGeoCircle(other)
PySide2.QtPositioning.QGeoCircle(center[, radius=-1.0])
PySide2.QtPositioning.QGeoCircle(other)
- param radius:
float
- param other:
- param center:
Constructs a new, invalid geo circle.
Constructs a new geo circle centered at
centerand with a radius ofradiusmeters.
- PySide2.QtPositioning.QGeoCircle.extendCircle(coordinate)¶
- Parameters:
coordinate –
PySide2.QtPositioning.QGeoCoordinate
Extends the geo circle to also cover the coordinate
coordinate
- PySide2.QtPositioning.QGeoCircle.__ne__(other)¶
- Parameters:
other –
PySide2.QtPositioning.QGeoCircle- Return type:
bool
Returns whether this geo circle is not equal to
other.
- PySide2.QtPositioning.QGeoCircle.__eq__(other)¶
- Parameters:
other –
PySide2.QtPositioning.QGeoCircle- Return type:
bool
Returns whether this geo circle is equal to
other.
- PySide2.QtPositioning.QGeoCircle.radius()¶
- Return type:
float
This property holds This property holds the circle radius in meters..
The circle is considered invalid if this property is negative.
By default, the radius is initialized with
-1.While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.
- PySide2.QtPositioning.QGeoCircle.setCenter(center)¶
- Parameters:
center –
PySide2.QtPositioning.QGeoCoordinate
This property holds This property holds the center coordinate for the geo circle..
The circle is considered invalid if this property contains an invalid coordinate.
A default constructed
QGeoCircleuses an invalidQGeoCoordinateas center.While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.
- PySide2.QtPositioning.QGeoCircle.setRadius(radius)¶
- Parameters:
radius – float
This property holds This property holds the circle radius in meters..
The circle is considered invalid if this property is negative.
By default, the radius is initialized with
-1.While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.
- PySide2.QtPositioning.QGeoCircle.translate(degreesLatitude, degreesLongitude)¶
- Parameters:
degreesLatitude –
doubledegreesLongitude –
double
Translates this geo circle by
degreesLatitudenorthwards anddegreesLongitudeeastwards.Negative values of
degreesLatitudeanddegreesLongitudecorrespond to southward and westward translation respectively.
- PySide2.QtPositioning.QGeoCircle.translated(degreesLatitude, degreesLongitude)¶
- Parameters:
degreesLatitude –
doubledegreesLongitude –
double
- Return type:
Returns a copy of this geo circle translated by
degreesLatitudenorthwards anddegreesLongitudeeastwards.Negative values of
degreesLatitudeanddegreesLongitudecorrespond to southward and westward translation respectively.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.