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
curvepointtablemodel.h File Reference

Slice BQ Phase 6.7.1 — QAbstractTableModel over one CurveProvider. More...

#include <QAbstractTableModel>
#include <QPointer>
Include dependency graph for curvepointtablemodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::CurvePointTableModel
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::curve
 
namespace  openswmmvis::ui
 

Detailed Description

Slice BQ Phase 6.7.1 — QAbstractTableModel over one CurveProvider.

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

Schema: 2 columns (X / Y) by N rows. Horizontal header text is type-driven via CurveProvider::xLabel(type) / yLabel(type) so the grid reads "Depth | Surface Area" or "Head | Flow" or "Volume | Flow" etc.

setData routes through CurveProvider::setYAt (Y-only edit, X locked to preserve monotonicity) or setPointAt (X edit — validated against neighbours). The provider's mutationRejected signal surfaces UI errors.

Subscribes to the provider's pointsChanged / pointsInserted / pointsRemoved / typeChanged signals so external mutations refresh the view automatically.