The QGeoCircle class defines a circular geographic area. More...
Header: | #include <QGeoCircle> |
qmake: | QT += positioning |
Since: | Qt 5.2 |
Inherits: | QGeoShape |
QGeoCircle() | |
QGeoCircle(const QGeoCoordinate ¢er, qreal radius = -1.0) | |
QGeoCircle(const QGeoCircle &other) | |
QGeoCircle(const QGeoShape &other) | |
~QGeoCircle() | |
QGeoCoordinate | center() const |
void | extendCircle(const QGeoCoordinate &coordinate) |
qreal | radius() const |
void | setCenter(const QGeoCoordinate ¢er) |
void | setRadius(qreal radius) |
QString | toString() const |
void | translate(double degreesLatitude, double degreesLongitude) |
QGeoCircle | translated(double degreesLatitude, double degreesLongitude) const |
bool | operator!=(const QGeoCircle &other) const |
QGeoCircle & | operator=(const QGeoCircle &other) |
bool | operator==(const QGeoCircle &other) const |
The QGeoCircle class defines a circular geographic area.
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.
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 QGeoCircle uses an invalid QGeoCoordinate as center.
While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.
This property was introduced in Qt 5.5.
Access functions:
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.
This property was introduced in Qt 5.5.
Access functions:
Constructs a new, invalid geo circle.
Constructs a new geo circle centered at center and with a radius of radius meters.
Constructs a new geo circle from the contents of other.
Constructs a new geo circle from the contents of other.
Destroys this geo circle.
Returns the center coordinate of this geo circle. Equivalent to QGeoShape::center().
Note: Getter function for property center.
See also setCenter().
Extends the geo circle to also cover the coordinate coordinate
This function was introduced in Qt 5.9.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Returns the radius in meters of this geo circle.
Note: Getter function for property radius.
See also setRadius().
Sets the center coordinate of this geo circle to center.
Note: Setter function for property center.
See also center().
Sets the radius in meters of this geo circle to radius.
Note: Setter function for property radius.
See also radius().
Returns the geo circle properties as a string.
This function was introduced in Qt 5.5.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Translates this geo circle by degreesLatitude northwards and degreesLongitude eastwards.
Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Returns a copy of this geo circle translated by degreesLatitude northwards and degreesLongitude eastwards.
Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
See also translate().
Returns whether this geo circle is not equal to other.
Assigns other to this geo circle and returns a reference to this geo circle.
Returns whether this geo circle is equal to other.