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
mesheditingtoolbar.h File Reference
#include <QPair>
#include <QPointF>
#include <QPointer>
#include <QToolBar>
#include <QVector>
#include <functional>
Include dependency graph for mesheditingtoolbar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MeshEditingToolbar
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 
namespace  mesh
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.