3#include <QtCore/QObject>
4#include <QtPositioning/QGeoCoordinate>
5#include <QtQmlIntegration/QtQmlIntegration>
43 bool dirty (
void)
const {
return _dirty; }
44 QGeoCoordinate
center (
void)
const {
return _center; }
51 void setCenter (QGeoCoordinate newCenter);
72 QGeoCoordinate _center;
76 bool _clockwiseRotation;
78 QMap<QString, FactMetaData*> _nameToMetaDataMap;
80 static constexpr const char* _jsonCenterKey =
"center";
81 static constexpr const char* _jsonRadiusKey =
"radius";
82 static constexpr const char* _radiusFactName =
"Radius";
A Fact is used to hold a single value within the system.
The QGCMapCircle represents a circular area which can be displayed on a Map control.
void dirtyChanged(bool dirty)
QGCMapCircle(const QGeoCoordinate ¢er, double radius, QObject *parent=nullptr)
void setInteractive(bool interactive)
void interactiveChanged(bool interactive)
bool clockwiseRotation(void) const
void setClockwiseRotation(bool clockwiseRotation)
static constexpr const char * jsonCircleKey
void clockwiseRotationChanged(bool clockwiseRotation)
bool interactive(void) const
void saveToJson(QJsonObject &json)
void setShowRotation(bool showRotation)
void centerChanged(QGeoCoordinate center)
bool showRotation(void) const
void showRotationChanged(bool showRotation)
void setDirty(bool dirty)
void setCenter(QGeoCoordinate newCenter)
const QGCMapCircle & operator=(const QGCMapCircle &other)
QGeoCoordinate center(void) const
bool loadFromJson(const QJsonObject &json, QString &errorString)