![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include "core/gageblend.h"#include <QDialog>#include <QPointF>#include <QPointer>#include <QStringList>#include <QVector>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::AssignRainGagesDialog |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Bind rain gages to subcatchments spatially, in one undoable step.
Two methods:
Proximity — assign the gage whose Thiessen (Voronoi) cell covers the largest share of the subcatchment's area. Uses the real watershed boundary rather than a representative point, which matters as soon as a subcatchment is large relative to the gage spacing.
Interpolated — area-average natural-neighbour weights over the gage network for each subcatchment, group subcatchments whose weight vectors agree, and materialise each group as a generated gage backed by a generated series. SWMM binds exactly one gage per subcatchment, so an interpolated field cannot be expressed any other way.
Everything is computed before any mutation: the volume-conservation gate can therefore abort with nothing written. The whole assignment is one undo macro.
Complements the per-object gage field in the Properties panel and the attribute table — those set one subcatchment at a time.