SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
linkrenderingprefs.h
Go to the documentation of this file.
1
15#ifndef LINKRENDERINGPREFS_H
16#define LINKRENDERINGPREFS_H
17
18#include <QObject>
19#include <QPen>
20
21class LinkRenderingPrefs : public QObject
22{
23 Q_OBJECT
24 Q_PROPERTY(QPen conduit READ conduitPen WRITE setConduitPen NOTIFY conduitPenChanged)
25 Q_PROPERTY(QPen pump READ pumpPen WRITE setPumpPen NOTIFY pumpPenChanged)
26 Q_PROPERTY(QPen orifice READ orificePen WRITE setOrificePen NOTIFY orificePenChanged)
27 Q_PROPERTY(QPen weir READ weirPen WRITE setWeirPen NOTIFY weirPenChanged)
28 Q_PROPERTY(QPen outlet READ outletPen WRITE setOutletPen NOTIFY outletPenChanged)
29
30public:
31 explicit LinkRenderingPrefs(QObject *parent = nullptr);
32
33 [[nodiscard]] QPen conduitPen() const;
34 [[nodiscard]] QPen pumpPen() const;
35 [[nodiscard]] QPen orificePen() const;
36 [[nodiscard]] QPen weirPen() const;
37 [[nodiscard]] QPen outletPen() const;
38
39 void setConduitPen(const QPen &pen);
40 void setPumpPen(const QPen &pen);
41 void setOrificePen(const QPen &pen);
42 void setWeirPen(const QPen &pen);
43 void setOutletPen(const QPen &pen);
44
45signals:
46 void conduitPenChanged(const QPen &pen);
47 void pumpPenChanged(const QPen &pen);
48 void orificePenChanged(const QPen &pen);
49 void weirPenChanged(const QPen &pen);
50 void outletPenChanged(const QPen &pen);
51};
52
53#endif // LINKRENDERINGPREFS_H
QVector< int > parent
union-find
Definition pslgminsize.cpp:176