![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BS Phase 6.9.2 — hydrograph MVC layer implementation. More...
#include "layers/hydrographmodels.h"#include "layers/swmmmodellayer.h"#include <openswmm/engine/openswmm_inflows.h>#include <openswmm/engine/openswmm_callbacks.h>#include <QStringList>#include <cstring>Slice BS Phase 6.9.2 — hydrograph MVC layer implementation.
Each of the four models is a thin Qt view over engine state. The models never cache parameter values — every data() call reads from the engine via swmm_hydrograph_get / swmm_rdii_decay_get. This keeps the four views (editor + property panel + Object Browser + picker combos) trivially synchronized: any mutation routed through SWMMModelLayer::applyHydrograph* fires hydrographChanged(), the models emit modelReset() / dataChanged(), and all attached widgets repaint from the (now-updated) engine state.