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
meshtrianglepropertyadapter.h File Reference
#include "map/mapcanvas.h"
#include <QObject>
#include <QPointer>
#include <QString>
Include dependency graph for meshtrianglepropertyadapter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MeshTrianglePropertyAdapter
 

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

Q_PROPERTY-backed view of one 2D mesh triangle (cell). Mirrors MeshVertexPropertyAdapter / MeshEdgePropertyAdapter: every READ calls into the layer's mesh(); every WRITE calls an applyMeshTriangle* helper, which emits attributeChanged so all views stay in sync. Exposes the editable per-triangle attributes — Manning's roughness, the initial water depth (INIT_DEPTH, mesh length units, default 0 = dry), and the descriptive tag — all round-tripped through [2D_TRIANGLES].

Numeric writes route through mesh::pushCellParamEdit when a canvas is set, so a panel edit lands on the same undo stack as a toolbar or Cell Data edit.