6 , _inclusion (inclusion)
13 , _inclusion (other._inclusion)
18void QGCFencePolygon::_init(
void)
32void QGCFencePolygon::_setDirty(
void)
40 json[_jsonInclusionKey] = _inclusion;
48 QList<JsonParsing::KeyValidateInfo> keyInfoList = {
50 { _jsonInclusionKey, QJsonValue::Bool,
true },
57 errorString = tr(
"GeoFence Polygon only supports version %1").arg(_jsonCurrentVersion);
The QGCFencePolygon class provides a polygon used by GeoFence support.
void saveToJson(QJsonObject &json)
void inclusionChanged(bool inclusion)
bool loadFromJson(const QJsonObject &json, bool required, QString &errorString)
QGCFencePolygon(bool inclusion, QObject *parent=nullptr)
bool inclusion(void) const
void setInclusion(bool inclusion)
const QGCFencePolygon & operator=(const QGCFencePolygon &other)
The QGCMapPolygon class provides a polygon which can be displayed on a map using a map visuals contro...
void setDirty(bool dirty)
const QGCMapPolygon & operator=(const QGCMapPolygon &other)
void saveToJson(QJsonObject &json)
bool loadFromJson(const QJsonObject &json, bool required, QString &errorString)
bool validateKeys(const QJsonObject &jsonObject, const QList< KeyValidateInfo > &keyInfo, QString &errorString)
Validates that all required keys are present and that listed keys have the expected type.
constexpr const char * jsonVersionKey