21 Q_PROPERTY(
Fact* corridorWidth READ corridorWidth CONSTANT)
25 enum EntryPointLocation {
26 EntryPointDefaultOrder = 0,
27 EntryPointStartSameEndOppositeSide = 1,
28 EntryPointStartOppositeEndSameSide = 2,
29 EntryPointStartOppositeEndOppositeSide = 3,
31 Q_ENUM(EntryPointLocation)
33 Fact* corridorWidth (
void) {
return &_corridorWidthFact; }
36 Q_INVOKABLE
void rotateEntryPoint(
void);
40 void save (QJsonArray& planItems)
final;
41 bool specifiesCoordinate (
void)
const final;
42 double timeBetweenShots (
void)
final;
45 bool load (
const QJsonObject& complexObject,
int sequenceNumber, QString&
errorString)
final;
46 QString
mapVisualQML (
void)
const final {
return QStringLiteral(
"CorridorScanMapVisual.qml"); }
48 void savePreset (
const QString& name);
49 void loadPreset (
const QString& name);
53 QString
commandName (
void)
const final {
return tr(
"Corridor Scan"); }
55 void setCoordinate (
const QGeoCoordinate& coordinate)
final;
56 ReadyForSaveState readyForSaveState (
void)
const final;
61 static constexpr const char* settingsGroup =
"CorridorScan";
62 static constexpr const char* corridorWidthName =
"CorridorWidth";
64 static constexpr const char* jsonComplexItemTypeValue =
"CorridorScan";
67 void _polylineDirtyChanged (
bool dirty);
68 void _rebuildCorridorPolygon (
void);
69 void _updateWizardMode (
void);
72 void _rebuildTransectsPhase1 (
void)
final;
73 void _recalcCameraShots (
void)
final;
76 double _calcTransectSpacing (
void)
const;
77 int _calcTransectCount (
void)
const;
78 void _saveCommon (QJsonObject& complexObject);
79 bool _loadWorker (
const QJsonObject& complexObject,
int sequenceNumber, QString&
errorString,
bool forPresets);
82 QList<QList<QGeoCoordinate>> _transectSegments;
84 EntryPointLocation _entryPointLocation;
86 QMap<QString, FactMetaData*> _metaDataMap;
89 static constexpr const char* _jsonEntryPointKey =
"EntryPoint";