![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QAbstractTableModel>#include <QPointer>#include <QStringList>#include <QVariantMap>#include "layers/swmmmodellayer.h"#include "layers/swmmresultslayer.h"Go to the source code of this file.
Classes | |
| struct | openswmmvis::ColumnSpec |
| class | SWMMAttributeTableModel |
Namespaces | |
| namespace | openswmmvis |
Variables | |
| constexpr int | openswmmvis::kFileColumnOptionsRole = Qt::UserRole + 21 |
Slice Z.1 — Per-category tabular model over the active SWMMModelLayer.
One instance is bound to one (layer, category) pair via setSource(). Rows correspond 1:1 to objects in that category in the layer's stable ordering (matches Object Browser's row order); the column schema is fixed per category and currently sourced from SWMMModelLayer::identifyByName() for parity with the Identify tool.
The model is intentionally NOT a generic QAbstractItemModel<Category> template — keeping it a concrete class avoids template-in-header compile-time overhead and lets AttributeTablePanel swap the bound category in O(1) without rebuilding the model object.