![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BL — canonical enumeration of plottable result attributes. More...
#include <QString>#include <QVector>Go to the source code of this file.
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::plot |
Functions | |
| QString | openswmmvis::plot::labelFor (PlotAttribute a) |
| Short human label, e.g. "Depth", "Flow", "Velocity |V|". | |
| QString | openswmmvis::plot::unitsFor (PlotAttribute a, UnitSystem u) |
| Unit string for the given attribute + unit system, e.g. "m", "ft³/s". | |
| QString | openswmmvis::plot::labelWithUnits (PlotAttribute a, UnitSystem u) |
Concatenation of labelFor(a) + "(" + unitsFor(a,u) + ")". | |
| UnitSystem | openswmmvis::plot::unitSystemFromFlowUnits (int flowUnits) |
Map an engine swmm_output_get_flow_units return value to UnitSystem. | |
| const QVector< PlotAttribute > & | openswmmvis::plot::nodePlotAttributes () |
| The 6 per-node attributes, presentation order. | |
| const QVector< PlotAttribute > & | openswmmvis::plot::linkPlotAttributes () |
| The 5 per-link attributes, presentation order. | |
| const QVector< PlotAttribute > & | openswmmvis::plot::subcatchPlotAttributes () |
| The 5 per-subcatchment attributes, presentation order. | |
| const QVector< PlotAttribute > & | openswmmvis::plot::systemPlotAttributes () |
| The 14 system-wide attributes, presentation order (matches the long-standing system picker menu: Rainfall first, Temperature last). | |
| const QVector< PlotAttribute > & | openswmmvis::plot::mesh2DCellPlotAttributes () |
| The 7 per-2D-cell attributes, presentation order. | |
| const QVector< PlotAttribute > & | openswmmvis::plot::mesh2DEdgePlotAttributes () |
| The 2 per-2D-edge attributes (flow, unit-width flux). | |
| const QVector< PlotAttribute > & | openswmmvis::plot::mesh2DVertexPlotAttributes () |
| The 2 per-2D-vertex attributes (depth, HGL — interpolated). | |
| bool | openswmmvis::plot::isMesh2DAttribute (PlotAttribute a) noexcept |
| True iff the attribute is a 2D mesh-cell quantity (CF.3). | |
| bool | openswmmvis::plot::isSystemAttribute (PlotAttribute a) noexcept |
True iff the attribute is a system-wide quantity (Slice AT.2). System attributes resolve via swmm_output_get_system_series and carry no per-object name (ObjectRef::Kind::System suffices). | |
Slice BL — canonical enumeration of plottable result attributes.
A PlotAttribute names what is being plotted (Depth, Flow, …) decoupled from the object kind that produced it (node/link/subcatch/mesh-cell). Series with the same attribute land on the same chart row in the Comparison Plot Dialog, which lets two runs of the same junction's depth be compared even when the engine indexing differs.
CF.3 amendment (2026-05-21): five Mesh2D* attributes anchor per-cell 2D mesh series in their own chart rows. They're separate enumerators from the 1D node/link equivalents on purpose — node depth (free-surface above invert in a manhole) and mesh-cell depth (water column over a triangle) share units but are physically different quantities; sharing a row would mis-axis them.