![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
MVC model for a single SWMM inlet design ([INLETS]). More...
#include <QObject>#include <QString>Go to the source code of this file.
Classes | |
| struct | openswmmvis::inlet::InletDesignData |
Every parameter of one inlet design, mirroring SWMM_InletDesign. Snapshot type for the undo commands and the engine round-trip. More... | |
| class | openswmmvis::inlet::InletProvider |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::inlet |
Functions | |
| bool | openswmmvis::inlet::operator== (const InletDesignData &a, const InletDesignData &b) |
Field-by-field equality — used by setDesign to suppress no-op notifications and by the undo commands to skip empty pushes. | |
| bool | openswmmvis::inlet::operator!= (const InletDesignData &a, const InletDesignData &b) |
| QString | openswmmvis::inlet::inletTypeLabel (InletType t) |
| Legacy editor label for a type ("GRATE", "CURB OPENING", "COMBINATION", "SLOTTED DRAIN", "DROP GRATE", "DROP CURB", "CUSTOM"). These are the strings the type combo shows (Uinlet.pas:31-44). | |
| const char * | openswmmvis::inlet::inletTypeKeyword (InletType t) |
[INLETS] type keyword handed to swmm_inlet_add. A COMBINATION design is created as a GRATE and then promoted by swmm_inlet_set_design, which is the authority on the stored type. | |
| QString | openswmmvis::inlet::grateTypeLabel (GrateType t) |
| HEC-22 grate name ("P_BAR-50", "CURVED_VANE", "GENERIC", …). | |
MVC model for a single SWMM inlet design ([INLETS]).
One InletProvider per [INLETS] entry. Owned by a project-scoped InletRegistry. Engine I/O walks the full-design surface of openswmm_infrastructure.h — swmm_inlet_get_design / swmm_inlet_set_design plus swmm_inlet_get_comment / swmm_inlet_set_comment — so every field of the [INLETS] grammar (curb height, throat angle, combination inlets, custom capture curves) round-trips.
The provider is the single source of truth for one design: the editor's list, property tree and drawing view all subscribe to its signals. InletDesignData mirrors SWMM_InletDesign field-for-field so a snapshot can be taken for undo (see inletundocommands.h) and pushed to the engine without an intermediate translation table.