![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Classes | |
| class | SpeciesMissWarner |
| D-G1 warn-on-miss (Y2b-3): a saved theme or series may name a species the currently-open run does not carry (saved against a 3-species run, reopened against 1). Resolution already degrades to "no theme" (−1); this class supplies the WORDS — once per token, so per-frame resolution cannot spam the log. One instance per results layer; reset() when the run changes (the new run may carry it). More... | |
Functions | |
| QString | speciesAttributeName (const QString &species) |
"TSS" → "qual:TSS" — the token persisted in .oswp. | |
| bool | isSpeciesAttribute (const QString &attr) |
True if attr is a species attribute token. | |
| QString | speciesFromAttribute (const QString &attr) |
"qual:TSS" → "TSS"; empty for a non-species attribute. | |
| QString | speciesDisplayLabel (const QString &species) |
| Picker label for a species: friendly text for the reserved pair, the bare name for an ordinary pollutant. | |
| QString | speciesUnitLabel (const QString &species, const QString &concentrationUnit) |
Unit string for a species. The reserved pair carry fixed units the .out enum cannot express (hours / °C — engine A2b); an ordinary pollutant uses concentrationUnit as reported. | |
| bool | isReservedSpecies (const QString &species) |
| True for the reserved species (age / temperature). | |
| int | speciesOutCode (const QString &attr, const QStringList &species, int pollutBase) |
Resolve attr to an engine output variable code. | |
| QStringList | inflowConstituentNames (const QStringList &pollutants) |
| Y4 (amendment D-Y4): constituent choices for an [INFLOWS] editor — FLOW, every pollutant, then the reserved AGE species (§3.3's exclusion lifted for age ONLY; temperature keeps the dedicated-page treatment until heat's round and must NOT appear). Engine NAMES — combo labels come from inflowConstituentLabel(). | |
| QString | inflowConstituentLabel (const QString &name) |
| Combo label for an inflow constituent: the species display label for the reserved pair ("Water age (hours)" — the row's value column means HOURS, never mg/L), the bare name otherwise. | |
| bool | inflowMassAllowed (const QString &name) |
| MASS is a pollutant-only inflow type: meaningless for FLOW and for the age species (the engine takes a MASS-typed age row as hours WITH a warning — the editor must not author what warns). | |
Variables | |
| constexpr const char * | kWaterAgeName = "__WATER_AGE__" |
| constexpr const char * | kTemperatureName = "__TEMPERATURE__" |
| constexpr const char * | kSpeciesAttrPrefix = "qual:" |
| QString OpenSWMMVis::Species::inflowConstituentLabel | ( | const QString & | name | ) |
Combo label for an inflow constituent: the species display label for the reserved pair ("Water age (hours)" — the row's value column means HOURS, never mg/L), the bare name otherwise.
| QStringList OpenSWMMVis::Species::inflowConstituentNames | ( | const QStringList & | pollutants | ) |
Y4 (amendment D-Y4): constituent choices for an [INFLOWS] editor — FLOW, every pollutant, then the reserved AGE species (§3.3's exclusion lifted for age ONLY; temperature keeps the dedicated-page treatment until heat's round and must NOT appear). Engine NAMES — combo labels come from inflowConstituentLabel().
| bool OpenSWMMVis::Species::inflowMassAllowed | ( | const QString & | name | ) |
MASS is a pollutant-only inflow type: meaningless for FLOW and for the age species (the engine takes a MASS-typed age row as hours WITH a warning — the editor must not author what warns).
| bool OpenSWMMVis::Species::isReservedSpecies | ( | const QString & | species | ) |
True for the reserved species (age / temperature).
| bool OpenSWMMVis::Species::isSpeciesAttribute | ( | const QString & | attr | ) |
True if attr is a species attribute token.
| QString OpenSWMMVis::Species::speciesAttributeName | ( | const QString & | species | ) |
"TSS" → "qual:TSS" — the token persisted in .oswp.
| QString OpenSWMMVis::Species::speciesDisplayLabel | ( | const QString & | species | ) |
Picker label for a species: friendly text for the reserved pair, the bare name for an ordinary pollutant.
| QString OpenSWMMVis::Species::speciesFromAttribute | ( | const QString & | attr | ) |
"qual:TSS" → "TSS"; empty for a non-species attribute.
"qual:" cannot resolve to index 0. | int OpenSWMMVis::Species::speciesOutCode | ( | const QString & | attr, |
| const QStringList & | species, | ||
| int | pollutBase | ||
| ) |
Resolve attr to an engine output variable code.
| attr | a "qual:<name>" token. |
| species | the loaded run's species list, in .out order. |
| pollutBase | SWMM_OUT_NODE_POLLUT_BASE, …_LINK_… or …_SUBCATCH_… for the element kind being themed. |
pollutBase + index, or −1 when attr is not a species token or names a species this run does not carry. | QString OpenSWMMVis::Species::speciesUnitLabel | ( | const QString & | species, |
| const QString & | concentrationUnit | ||
| ) |
Unit string for a species. The reserved pair carry fixed units the .out enum cannot express (hours / °C — engine A2b); an ordinary pollutant uses concentrationUnit as reported.
|
inlineconstexpr |
Prefix marking a themeable attribute as a species column.
|
inlineconstexpr |
|
inlineconstexpr |
The reserved species names the engine writes into the .out species list. They are transported like pollutants but are not concentrations, so pickers label and unit them differently (GUI plan §3.3).