3#include <QtCore/QObject>
4#include <QtPositioning/QGeoCoordinate>
5#include <QtQmlIntegration/QtQmlIntegration>
32 void saveToJson(QJsonObject& json);
42 bool dirty (
void)
const {
return _dirty; }
43 QGeoCoordinate
center (
void)
const {
return _center; }
50 void setCenter (QGeoCoordinate newCenter);
71 QGeoCoordinate _center;
75 bool _clockwiseRotation;
77 QMap<QString, FactMetaData*> _nameToMetaDataMap;
79 static constexpr const char* _jsonCenterKey =
"center";
80 static constexpr const char* _jsonRadiusKey =
"radius";
81 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)
bool dirty READ dirty WRITE setDirty NOTIFY dirtyChanged(QGeoCoordinate center READ center WRITE setCenter NOTIFY centerChanged) 1(Fact *radius READ radius CONSTANT) 1(bool interactive READ interactive WRITE setInteractive NOTIFY interactiveChanged) 1(bool showRotation READ showRotation WRITE setShowRotation NOTIFY showRotationChanged) 1(bool clockwiseRotation READ clockwiseRotation WRITE setClockwiseRotation NOTIFY clockwiseRotationChanged) void saveToJson(QJsonObject &json)
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 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)