![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QPair>#include <QPointF>#include <QPointer>#include <QToolBar>#include <QVector>#include <functional>Go to the source code of this file.
Classes | |
| class | MeshEditingToolbar |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
| namespace | mesh |
Slice §V.VB — Mesh Editing toolbar.
Peer of TerrainToolbar. Lets the user pick which 2D mesh is active, hover-read elevation, click a vertex and retype its elevation, and (in §V.VC) select edges and assign per-edge BCs.
MVC contract: the toolbar is one of N views over SWMM2DMeshLayer. It reads from the layer on every focus (no shadow state), writes through applyMesh* helpers, and subscribes to attributeChanged so edits from other views (future Property Browser, Attribute Table) keep the toolbar's spinbox in sync. The active-mesh combo mirrors the existing SWMM2DMeshLayer::isActiveMesh flag (Q-V4-resolved).
Lifecycle: rebindCanvas(MapCanvas*) is called by SWMMVis each time the active project window changes — mirrors TerrainToolbar's pattern.