![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Identifies what object a series is about. Kind is the discriminator; the active union member is implied by kind. More...
#include <irunlayer.h>
Public Types | |
| enum class | Kind { Unknown = 0 , Node = 1 , Link = 2 , Subcatch = 3 , Mesh2DCell = 4 , Observed = 5 , System = 6 , Mesh2DEdge = 7 , Mesh2DVertex = 8 } |
Public Member Functions | |
| constexpr | ObjectRef ()=default |
| ObjectRef (Kind k, QString n) | |
| bool | isValid () const noexcept |
| bool | operator== (const ObjectRef &other) const noexcept |
| bool | operator!= (const ObjectRef &other) const noexcept |
Static Public Member Functions | |
| static ObjectRef | forNode (QString n) |
| static ObjectRef | forLink (QString n) |
| static ObjectRef | forSubcatch (QString n) |
| static ObjectRef | forMesh2DCell (int idx) |
| static ObjectRef | forMesh2DEdge (int tri, int edge) |
| static ObjectRef | forMesh2DVertex (int idx) |
| static ObjectRef | forObserved (QString lbl) |
| static ObjectRef | forSystem () |
Public Attributes | |
| Kind | kind = Kind::Unknown |
| QString | name |
| SWMM ID for 1D kinds; observed-series label for Observed; unused for System. | |
| int | triIdx = -1 |
| Triangle index for Mesh2DCell / Mesh2DEdge; vertex index for Mesh2DVertex; -1 otherwise. | |
| int | edgeLocal = -1 |
| Local edge index 0..2 for Mesh2DEdge; -1 otherwise. | |
Identifies what object a series is about. Kind is the discriminator; the active union member is implied by kind.
|
strong |
|
constexprdefault |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| int openswmmvis::plot::ObjectRef::edgeLocal = -1 |
Local edge index 0..2 for Mesh2DEdge; -1 otherwise.
| Kind openswmmvis::plot::ObjectRef::kind = Kind::Unknown |
| QString openswmmvis::plot::ObjectRef::name |
SWMM ID for 1D kinds; observed-series label for Observed; unused for System.
| int openswmmvis::plot::ObjectRef::triIdx = -1 |
Triangle index for Mesh2DCell / Mesh2DEdge; vertex index for Mesh2DVertex; -1 otherwise.