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
perattributethemingwidget.h
Go to the documentation of this file.
1
16#ifndef OPENSWMMVIS_UI_WIDGETS_PERATTRIBUTETHEMINGWIDGET_H
17#define OPENSWMMVIS_UI_WIDGETS_PERATTRIBUTETHEMINGWIDGET_H
18
20
21#include <QPointer>
22#include <QWidget>
23
24class QComboBox;
25class QLabel;
27
28namespace openswmmvis::ui {
29
30class PerAttributeThemingWidget : public QWidget
31{
32 Q_OBJECT
33public:
34 explicit PerAttributeThemingWidget(QWidget *parent = nullptr);
35
40
43
44private slots:
45 void onNodeVarChanged(int index);
46 void onLinkVarChanged(int index);
47 void onSubVarChanged(int index);
48 void onPrimaryLayerChanged(SWMMResultsLayer *layer);
49 void onLayerVariableChanged(SWMMResultVariable var);
50
51private:
52 void buildUi();
53 void populateCombos();
54 void pushLayerVariableToCombos();
55
56 QComboBox *m_nodeCombo = nullptr;
57 QComboBox *m_linkCombo = nullptr;
58 QComboBox *m_subCombo = nullptr;
59 QLabel *m_layerLabel = nullptr;
60
61 QPointer<AnimationController> m_ac;
62 QPointer<SWMMResultsLayer> m_layer;
63 bool m_suppress = false;
64};
65
66} // namespace openswmmvis::ui
67
68#endif // OPENSWMMVIS_UI_WIDGETS_PERATTRIBUTETHEMINGWIDGET_H
Central coordinator for result-layer time-stepping and playback.
Definition animationcontroller.h:43
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
Definition perattributethemingwidget.h:31
void setAnimationController(AnimationController *ac)
Bind to the animation controller; subscribes to primaryLayerChanged so the combos always reflect the ...
Definition perattributethemingwidget.cpp:80
void setPrimaryLayer(SWMMResultsLayer *layer)
Direct binding (bypasses the AC) used in test fixtures.
Definition perattributethemingwidget.cpp:91
Mesh2DVariable var
Definition mesh2dresultsexport.cpp:294
int index
Position in m_quadRegions / m_quadReports.
Definition meshgenerator.cpp:153
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Layer that colour-maps SWMM simulation output over the network geometry for interactive time-stepped ...
SWMMResultVariable
Selectable result output variables for colour-mapped display.
Definition swmmresultslayer.h:57