#pragma once #include #include "WimaArea.h" #include "WimaServiceArea.h" #include "WimaMeasurementArea.h" class WimaCorridor : public WimaArea { Q_OBJECT public: WimaCorridor(QObject* parent = nullptr); WimaCorridor(const WimaCorridor& other, QObject* parent = nullptr); // Overrides from WimaPolygon QString mapVisualQML (void) const { return "WimaCorridorMapVisual.qml";} QString editorQML (void) const { return "WimaCorridorEditor.qml";} // Methodes void saveToJson (QJsonObject& json); bool loadFromJson (const QJsonObject& json, QString& errorString); // static Members static const char* WimaCorridorName; // Friends friend void print(const WimaCorridor& area, QString& outputString); friend void print(const WimaCorridor& area); signals: public slots: /// Updates this with data from area void update(const WimaCorridor& area); private: void init(); };