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
swmmattributetablemodel.h File Reference
#include <QAbstractTableModel>
#include <QPointer>
#include <QStringList>
#include <QVariantMap>
#include "layers/swmmmodellayer.h"
#include "layers/swmmresultslayer.h"
Include dependency graph for swmmattributetablemodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmmvis::ColumnSpec
 
class  SWMMAttributeTableModel
 

Namespaces

namespace  openswmmvis
 

Enumerations

enum class  openswmmvis::EditorKind {
  openswmmvis::ReadOnly ,
  openswmmvis::Numeric ,
  openswmmvis::Integer ,
  openswmmvis::Enum ,
  openswmmvis::Text ,
  openswmmvis::Compound ,
  openswmmvis::Interval ,
  openswmmvis::FileBrowse ,
  openswmmvis::FileColumn
}
 
enum class  openswmmvis::UnitKind {
  openswmmvis::None ,
  openswmmvis::Length ,
  openswmmvis::Area ,
  openswmmvis::SubcatchArea ,
  openswmmvis::Volume ,
  openswmmvis::Velocity ,
  openswmmvis::FlowRate ,
  openswmmvis::Depression ,
  openswmmvis::Percent ,
  openswmmvis::Rate
}
 

Variables

constexpr int openswmmvis::kFileColumnOptionsRole = Qt::UserRole + 21
 

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 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.