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
openswmmvis::XsectShapeRow Struct Reference

#include <xsectshapegeom.h>

Collaboration diagram for openswmmvis::XsectShapeRow:

Public Attributes

const char * name
 "CIRCULAR", "RECT_CLOSED", …
 
int engineId
 SWMM_XSECT_* numeric.
 
const char * geom1Label
 "Diameter", "Max Depth", … ("" if unused).
 
const char * geom2Label
 
const char * geom3Label
 
const char * geom4Label
 

Detailed Description

One SWMM_XSectShape row.

engineId MUST be spelled as the engine's own SWMM_XSECT_* constant, never as a bare integer: this table is fed straight to swmm_link_set_xsect(), so a literal that drifts from the engine's numbering silently writes the WRONG cross-section into the model. (Before 6.0 exactly that happened — the table carried the pre-renumbering literals, so picking e.g. EGGSHAPED stored a baskethandle and IRREGULAR stored a vertical ellipse.)

Row order is the legacy SWMM-GUI (Dxsect.pas) presentation order, which the shape picker shows verbatim; it is deliberately NOT the engine's numeric order. A geomNLabel is the empty string when that geom is unused.

Member Data Documentation

◆ engineId

int openswmmvis::XsectShapeRow::engineId

SWMM_XSECT_* numeric.

◆ geom1Label

const char* openswmmvis::XsectShapeRow::geom1Label

"Diameter", "Max Depth", … ("" if unused).

◆ geom2Label

const char* openswmmvis::XsectShapeRow::geom2Label

◆ geom3Label

const char* openswmmvis::XsectShapeRow::geom3Label

◆ geom4Label

const char* openswmmvis::XsectShapeRow::geom4Label

◆ name

const char* openswmmvis::XsectShapeRow::name

"CIRCULAR", "RECT_CLOSED", …


The documentation for this struct was generated from the following file: