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
storageshapegeom.h File Reference

Per-shape meaning of a storage unit's three raw dimensions. More...

#include <QCoreApplication>
#include <QString>
Include dependency graph for storageshapegeom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmmvis::StorageShapeRow
 

Namespaces

namespace  openswmmvis
 

Functions

const StorageShapeRowopenswmmvis::findStorageShapeRow (int engineId)
 
bool openswmmvis::storageShapeIsGeometric (int shapeId)
 
QString openswmmvis::storageGeomLabel (int shapeId, int ordinal)
 
bool openswmmvis::storageGeomApplies (int shapeId, int ordinal)
 

Variables

constexpr int openswmmvis::kStorageTabularId = 0
 Engine ids, spelled out so call sites don't hard-code magic numbers.
 
constexpr int openswmmvis::kStorageFunctionalId = 1
 
constexpr int openswmmvis::kStorageCylindricalId = 2
 
constexpr int openswmmvis::kStorageConicalId = 3
 
constexpr int openswmmvis::kStorageParaboloidId = 4
 
constexpr int openswmmvis::kStoragePyramidalId = 5
 
constexpr StorageShapeRow openswmmvis::kStorageShapes []
 

Detailed Description

Per-shape meaning of a storage unit's three raw dimensions.

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
    A storage node's Param 1/2/3 rows carry different quantities depending
    on the shape — "Major Axis Length" for a cone, "Base Length" for a
    pyramid, nothing at all for a tabular curve. QPropertyModel reflects
    its rows from `metaObject()` and can neither rename nor hide them at
    runtime, so (exactly as `xsectshapegeom.h` does for link geom1..geom4)
    the rows stay generic and this table supplies the shape-specific label
    and applicability that PropertiesPanel / the attribute table use to
    label, tooltip and grey them.

    Ordinals match `SWMMNodePropertyAdapter::StorageShape` and the engine's
    `SWMM_StorageShape`.