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
profilesourcestyleadapter.h
Go to the documentation of this file.
1
24#ifndef PROFILE_SOURCE_STYLE_ADAPTER_H
25#define PROFILE_SOURCE_STYLE_ADAPTER_H
26
27#include <QBrush>
28#include <QColor>
29#include <QObject>
30#include <QPen>
31#include <QPointer>
32
34
35class ProfileSourceStyleAdapter : public QObject
36{
37 Q_OBJECT
38 Q_PROPERTY(QColor lineColor READ lineColor WRITE setLineColor NOTIFY changed)
39 Q_PROPERTY(QPen hglLinePen READ hglLinePen WRITE setHglLinePen NOTIFY changed)
40 Q_PROPERTY(QBrush hglFillBrush READ hglFillBrush WRITE setHglFillBrush NOTIFY changed)
41 Q_PROPERTY(QPen eglLinePen READ eglLinePen WRITE setEglLinePen NOTIFY changed)
42 // EGL renders as a line only — no fill brush (no physical meaning).
43 Q_PROPERTY(QPen maxHglLinePen READ maxHglLinePen WRITE setMaxHglLinePen NOTIFY changed)
44 Q_PROPERTY(QBrush maxHglFillBrush READ maxHglFillBrush WRITE setMaxHglFillBrush NOTIFY changed)
45 Q_PROPERTY(QPen maxEglLinePen READ maxEglLinePen WRITE setMaxEglLinePen NOTIFY changed)
46public:
47 explicit ProfileSourceStyleAdapter(QObject *parent = nullptr);
48
52 [[nodiscard]] SWMMResultsLayer *layer() const { return m_layer.data(); }
53
54 [[nodiscard]] QColor lineColor() const;
55 [[nodiscard]] QPen hglLinePen() const;
56 [[nodiscard]] QBrush hglFillBrush() const;
57 [[nodiscard]] QPen eglLinePen() const;
58 [[nodiscard]] QPen maxHglLinePen() const;
59 [[nodiscard]] QBrush maxHglFillBrush() const;
60 [[nodiscard]] QPen maxEglLinePen() const;
61
62 void setLineColor (const QColor &v);
63 void setHglLinePen (const QPen &v);
64 void setHglFillBrush (const QBrush &v);
65 void setEglLinePen (const QPen &v);
66 void setMaxHglLinePen (const QPen &v);
67 void setMaxHglFillBrush(const QBrush &v);
68 void setMaxEglLinePen (const QPen &v);
69
70signals:
74 void changed();
75
76private:
77 QPointer<SWMMResultsLayer> m_layer;
78};
79
80#endif // PROFILE_SOURCE_STYLE_ADAPTER_H
Definition profilesourcestyleadapter.h:36
QColor lineColor
Definition profilesourcestyleadapter.h:38
void setEglLinePen(const QPen &v)
Definition profilesourcestyleadapter.cpp:77
void setMaxHglLinePen(const QPen &v)
Definition profilesourcestyleadapter.cpp:81
void setHglLinePen(const QPen &v)
Definition profilesourcestyleadapter.cpp:69
void setLayer(SWMMResultsLayer *layer)
Definition profilesourcestyleadapter.cpp:15
void setMaxHglFillBrush(const QBrush &v)
Definition profilesourcestyleadapter.cpp:85
QPen maxHglLinePen
Definition profilesourcestyleadapter.h:43
void setMaxEglLinePen(const QPen &v)
Definition profilesourcestyleadapter.cpp:89
QPen maxEglLinePen
Definition profilesourcestyleadapter.h:45
void setLineColor(const QColor &v)
Definition profilesourcestyleadapter.cpp:65
void setHglFillBrush(const QBrush &v)
Definition profilesourcestyleadapter.cpp:73
SWMMResultsLayer * layer() const
Definition profilesourcestyleadapter.h:52
QBrush hglFillBrush
Definition profilesourcestyleadapter.h:40
QPen eglLinePen
Definition profilesourcestyleadapter.h:41
QBrush maxHglFillBrush
Definition profilesourcestyleadapter.h:44
QPen hglLinePen
Definition profilesourcestyleadapter.h:39
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
QVector< int > v
pool vertex indices
Definition pslgminsize.cpp:159
QVector< int > parent
union-find
Definition pslgminsize.cpp:176