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
noderenderingprefs.h
Go to the documentation of this file.
1
17#ifndef NODERENDERINGPREFS_H
18#define NODERENDERINGPREFS_H
19
20#include <QBrush>
21#include <QObject>
22#include <QPen>
23
24class NodeRenderingPrefs : public QObject
25{
26 Q_OBJECT
27 Q_PROPERTY(QPen junctionPen READ junctionPen WRITE setJunctionPen NOTIFY junctionPenChanged)
28 Q_PROPERTY(QBrush junctionFill READ junctionFill WRITE setJunctionFill NOTIFY junctionFillChanged)
29 Q_PROPERTY(double junctionSize READ junctionSize WRITE setJunctionSize NOTIFY junctionSizeChanged)
30
31 Q_PROPERTY(QPen outfallPen READ outfallPen WRITE setOutfallPen NOTIFY outfallPenChanged)
32 Q_PROPERTY(QBrush outfallFill READ outfallFill WRITE setOutfallFill NOTIFY outfallFillChanged)
33 Q_PROPERTY(double outfallSize READ outfallSize WRITE setOutfallSize NOTIFY outfallSizeChanged)
34
35 Q_PROPERTY(QPen storagePen READ storagePen WRITE setStoragePen NOTIFY storagePenChanged)
36 Q_PROPERTY(QBrush storageFill READ storageFill WRITE setStorageFill NOTIFY storageFillChanged)
37 Q_PROPERTY(double storageSize READ storageSize WRITE setStorageSize NOTIFY storageSizeChanged)
38
39 Q_PROPERTY(QPen dividerPen READ dividerPen WRITE setDividerPen NOTIFY dividerPenChanged)
40 Q_PROPERTY(QBrush dividerFill READ dividerFill WRITE setDividerFill NOTIFY dividerFillChanged)
41 Q_PROPERTY(double dividerSize READ dividerSize WRITE setDividerSize NOTIFY dividerSizeChanged)
42
46
50
51public:
52 explicit NodeRenderingPrefs(QObject *parent = nullptr);
53
54 [[nodiscard]] QPen junctionPen() const;
55 [[nodiscard]] QBrush junctionFill() const;
56 [[nodiscard]] double junctionSize() const;
57
58 [[nodiscard]] QPen outfallPen() const;
59 [[nodiscard]] QBrush outfallFill() const;
60 [[nodiscard]] double outfallSize() const;
61
62 [[nodiscard]] QPen storagePen() const;
63 [[nodiscard]] QBrush storageFill() const;
64 [[nodiscard]] double storageSize() const;
65
66 [[nodiscard]] QPen dividerPen() const;
67 [[nodiscard]] QBrush dividerFill() const;
68 [[nodiscard]] double dividerSize() const;
69
70 [[nodiscard]] QPen virtualJunctionPen() const;
71 [[nodiscard]] QBrush virtualJunctionFill() const;
72 [[nodiscard]] double virtualJunctionSize() const;
73
74 [[nodiscard]] QPen inletJunctionPen() const;
75 [[nodiscard]] QBrush inletJunctionFill() const;
76 [[nodiscard]] double inletJunctionSize() const;
77
78 void setJunctionPen(const QPen &pen);
79 void setJunctionFill(const QBrush &brush);
80 void setJunctionSize(double sizePx);
81
82 void setOutfallPen(const QPen &pen);
83 void setOutfallFill(const QBrush &brush);
84 void setOutfallSize(double sizePx);
85
86 void setStoragePen(const QPen &pen);
87 void setStorageFill(const QBrush &brush);
88 void setStorageSize(double sizePx);
89
90 void setDividerPen(const QPen &pen);
91 void setDividerFill(const QBrush &brush);
92 void setDividerSize(double sizePx);
93
94 void setVirtualJunctionPen(const QPen &pen);
95 void setVirtualJunctionFill(const QBrush &brush);
96 void setVirtualJunctionSize(double sizePx);
97
98 void setInletJunctionPen(const QPen &pen);
99 void setInletJunctionFill(const QBrush &brush);
100 void setInletJunctionSize(double sizePx);
101
102signals:
103 void junctionPenChanged(const QPen &pen);
104 void junctionFillChanged(const QBrush &brush);
105 void junctionSizeChanged(double sizePx);
106
107 void outfallPenChanged(const QPen &pen);
108 void outfallFillChanged(const QBrush &brush);
109 void outfallSizeChanged(double sizePx);
110
111 void storagePenChanged(const QPen &pen);
112 void storageFillChanged(const QBrush &brush);
113 void storageSizeChanged(double sizePx);
114
115 void dividerPenChanged(const QPen &pen);
116 void dividerFillChanged(const QBrush &brush);
117 void dividerSizeChanged(double sizePx);
118
119 void virtualJunctionPenChanged(const QPen &pen);
120 void virtualJunctionFillChanged(const QBrush &brush);
121 void virtualJunctionSizeChanged(double sizePx);
122
123 void inletJunctionPenChanged(const QPen &pen);
124 void inletJunctionFillChanged(const QBrush &brush);
125 void inletJunctionSizeChanged(double sizePx);
126};
127
128#endif // NODERENDERINGPREFS_H
Definition noderenderingprefs.h:25
void inletJunctionPenChanged(const QPen &pen)
QPen outfallPen
Definition noderenderingprefs.h:31
void junctionSizeChanged(double sizePx)
QBrush outfallFill
Definition noderenderingprefs.h:32
QPen inletJunctionPen
Definition noderenderingprefs.h:47
void setJunctionPen(const QPen &pen)
Definition noderenderingprefs.cpp:49
void storagePenChanged(const QPen &pen)
void inletJunctionFillChanged(const QBrush &brush)
QPen virtualJunctionPen
Definition noderenderingprefs.h:43
void virtualJunctionPenChanged(const QPen &pen)
void setJunctionFill(const QBrush &brush)
Definition noderenderingprefs.cpp:55
void setDividerSize(double sizePx)
Definition noderenderingprefs.cpp:118
void setInletJunctionFill(const QBrush &brush)
Definition noderenderingprefs.cpp:150
void inletJunctionSizeChanged(double sizePx)
QPen junctionPen
Definition noderenderingprefs.h:27
void setDividerFill(const QBrush &brush)
Definition noderenderingprefs.cpp:112
void setOutfallSize(double sizePx)
Definition noderenderingprefs.cpp:80
void outfallPenChanged(const QPen &pen)
void outfallFillChanged(const QBrush &brush)
double dividerSize
Definition noderenderingprefs.h:41
void setStoragePen(const QPen &pen)
Definition noderenderingprefs.cpp:87
void setStorageFill(const QBrush &brush)
Definition noderenderingprefs.cpp:93
void virtualJunctionSizeChanged(double sizePx)
void setOutfallFill(const QBrush &brush)
Definition noderenderingprefs.cpp:74
double outfallSize
Definition noderenderingprefs.h:33
void storageSizeChanged(double sizePx)
void setVirtualJunctionPen(const QPen &pen)
Definition noderenderingprefs.cpp:125
void setOutfallPen(const QPen &pen)
Definition noderenderingprefs.cpp:68
double inletJunctionSize
Definition noderenderingprefs.h:49
QBrush storageFill
Definition noderenderingprefs.h:36
void setDividerPen(const QPen &pen)
Definition noderenderingprefs.cpp:106
void virtualJunctionFillChanged(const QBrush &brush)
void dividerFillChanged(const QBrush &brush)
QBrush inletJunctionFill
Definition noderenderingprefs.h:48
void setInletJunctionPen(const QPen &pen)
Definition noderenderingprefs.cpp:144
void storageFillChanged(const QBrush &brush)
double storageSize
Definition noderenderingprefs.h:37
double junctionSize
Definition noderenderingprefs.h:29
double virtualJunctionSize
Definition noderenderingprefs.h:45
void setVirtualJunctionSize(double sizePx)
Definition noderenderingprefs.cpp:137
void outfallSizeChanged(double sizePx)
QPen storagePen
Definition noderenderingprefs.h:35
QBrush junctionFill
Definition noderenderingprefs.h:28
QPen dividerPen
Definition noderenderingprefs.h:39
QBrush virtualJunctionFill
Definition noderenderingprefs.h:44
void setVirtualJunctionFill(const QBrush &brush)
Definition noderenderingprefs.cpp:131
void setJunctionSize(double sizePx)
Definition noderenderingprefs.cpp:61
void dividerSizeChanged(double sizePx)
QBrush dividerFill
Definition noderenderingprefs.h:40
void dividerPenChanged(const QPen &pen)
void junctionPenChanged(const QPen &pen)
void junctionFillChanged(const QBrush &brush)
void setStorageSize(double sizePx)
Definition noderenderingprefs.cpp:99
void setInletJunctionSize(double sizePx)
Definition noderenderingprefs.cpp:156
QVector< int > parent
union-find
Definition pslgminsize.cpp:176