WimaVCorridor.h 1.05 KB
Newer Older
1
#pragma once
2

3 4
#include <QObject>
#include "WimaArea.h"
5 6
#include "WimaServiceArea.h"
#include "WimaGOperationArea.h"
7

8
class WimaVCorridor : public WimaArea
9
{
10
    Q_OBJECT
11
public:
12 13 14 15 16 17
    WimaVCorridor(QObject* parent = nullptr);
    WimaVCorridor(WimaArea* other = nullptr, QObject* parent = nullptr);

    // Overrides from WimaPolygon
    QString         mapVisualQML    (void) const { return "WimaVCorridorMapVisual.qml";}
    QString         editorQML       (void) const { return "WimaVCorridorEditor.qml";}
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

    // Methodes
    void                setServiceArea (WimaServiceArea* serviceArea);
    void                setOpArea      (WimaGOperationArea* opArea);
    WimaServiceArea*    serviceArea    (void)                           const {return _serviceArea;}
    WimaGOperationArea* opArea         (void)                           const {return _opArea;}

signals:
    void serviceAreaChanged (WimaServiceArea* serviceArea);
    void opAreaChanged      (WimaGOperationArea* opArea);

private:
    WimaServiceArea*    _serviceArea;
    WimaGOperationArea* _opArea;

33 34
};