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
culvertcodes.cpp File Reference
#include "ui/properties/culvertcodes.h"
#include <QCoreApplication>
Include dependency graph for culvertcodes.cpp:

Functions

const std::vector< CulvertCodeInfo > & culvertCodes ()
 
QString culvertCodeLabel (int code)
 

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

Phase 0 of docs/ATTRIBUTE_EDITOR_WIRING_PLAN_2026-06-04.md. Codes/groups/labels transcribed 1:1 from the legacy selector tree (SWMM-GUI/Epaswmm5/Dculvert.dfm, TreeView1 NodeData). Two deviations from the legacy text, both deliberate:

  • code 11 reads "0 deg. wingwall flares" (the legacy string lost the leading "0"; HDS-5 chart 11 is the straight-sides 0-deg case);
  • em-dashes/quotes normalised to ASCII (encoding hygiene rule).

Function Documentation

◆ culvertCodeLabel()

QString culvertCodeLabel ( int  code)

Short display label for a code, e.g. "3) Circular Concrete: Groove end projecting". Returns "(none)" for code <= 0 and "Code N" for an unknown positive code.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ culvertCodes()

const std::vector< CulvertCodeInfo > & culvertCodes ( )

All 57 codes in ascending order (code 0 "(none)" is NOT included — callers prepend it so they control its wording).

Here is the caller graph for this function: