The [2D_AQUIFER] rows: scope, the five positional columns, and the law/closure selections.
More...
#include <mesh2daquifermodel.h>
|
| enum | Column {
ColScope = 0
,
ColTarget
,
ColKs
,
ColZs
,
ColThetaS
,
ColThetaR
,
ColAlpha
,
ColSoil
,
ColClosure
,
ColHg0
,
ColCLoss
,
ColCount
} |
| |
The [2D_AQUIFER] rows: scope, the five positional columns, and the law/closure selections.
◆ Column
| Enumerator |
|---|
| ColScope | "*", "TAG <t>" or "CELL <n>"
|
| ColTarget | the tag name or the 1-based cell index
|
| ColKs | |
| ColZs | |
| ColThetaS | |
| ColThetaR | |
| ColAlpha | |
| ColSoil | |
| ColClosure | |
| ColHg0 | |
| ColCLoss | |
| ColCount | |
◆ Mesh2DAquiferModel()
| openswmmvis::ui::Mesh2DAquiferModel::Mesh2DAquiferModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ appendRow()
| int openswmmvis::ui::Mesh2DAquiferModel::appendRow |
( |
| ) |
|
Append a row seeded with the defaults the parser uses.
◆ closureCodeAt()
| int openswmmvis::ui::Mesh2DAquiferModel::closureCodeAt |
( |
int |
index | ) |
|
|
static |
◆ closureIndexOf()
| int openswmmvis::ui::Mesh2DAquiferModel::closureIndexOf |
( |
int |
code | ) |
|
|
static |
◆ closureTokens()
| QStringList openswmmvis::ui::Mesh2DAquiferModel::closureTokens |
( |
| ) |
|
|
static |
Closure tokens. Index 0 is AUTO (code −1); the rest are 0..2 — see closureCodeAt().
◆ columnCount()
| int openswmmvis::ui::Mesh2DAquiferModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ commit()
| QString openswmmvis::ui::Mesh2DAquiferModel::commit |
( |
SWMM_Engine |
engine | ) |
|
Apply the staged rows to the engine. Every row is rewritten (the C API has no "set row"), which is also what makes a reorder work.
- Returns
- an empty string on success, else the first engine complaint.
◆ data()
| QVariant openswmmvis::ui::Mesh2DAquiferModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags openswmmvis::ui::Mesh2DAquiferModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
| QVariant openswmmvis::ui::Mesh2DAquiferModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ isDirty()
| bool openswmmvis::ui::Mesh2DAquiferModel::isDirty |
( |
| ) |
const |
◆ load()
| void openswmmvis::ui::Mesh2DAquiferModel::load |
( |
SWMM_Engine |
engine | ) |
|
Replace the staged rows with the engine's.
◆ removeRows()
| bool openswmmvis::ui::Mesh2DAquiferModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
| int openswmmvis::ui::Mesh2DAquiferModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
| bool openswmmvis::ui::Mesh2DAquiferModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ setUnitLabels()
| void openswmmvis::ui::Mesh2DAquiferModel::setUnitLabels |
( |
const QString & |
lengthLabel, |
|
|
const QString & |
rateLabel |
|
) |
| |
Column labels want the project's length/rate words.
◆ soilTokens()
| QStringList openswmmvis::ui::Mesh2DAquiferModel::soilTokens |
( |
| ) |
|
|
static |
Soil-law tokens in the engine's enum order, so the row index IS the SWMM_GW2D_SOIL_* code. Do not reorder.
The documentation for this class was generated from the following files: