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
layertreecategories.h
Go to the documentation of this file.
1
19#ifndef OPENSWMMVIS_UI_PANELS_LAYERTREECATEGORIES_H
20#define OPENSWMMVIS_UI_PANELS_LAYERTREECATEGORIES_H
21
22namespace openswmmvis::ui {
23
45
53 const char *name;
54 const char *iconAlias;
55};
56
84
93[[nodiscard]] CategoryId categoryForLayerType(int layerTypeOrdinal);
94
97{
98 return categoryForLayerType(static_cast<int>(t));
99}
100
102[[nodiscard]] CategoryInfo categoryInfo(CategoryId id);
103
125
126} // namespace openswmmvis::ui
127
128#endif // OPENSWMMVIS_UI_PANELS_LAYERTREECATEGORIES_H
Definition swmm2dmeshlayer.h:64
Definition swmm2dresultslayer.h:550
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
DiagramType t
Definition diagramspec.cpp:20
Definition openswmmvislayer.h:43
CategoryId categoryForLayerType(int layerTypeOrdinal)
Maps a layer-type ordinal to its tree category.
Definition layertreecategories.cpp:22
CategoryId
Top-level layer-tree groups.
Definition layertreecategories.h:34
@ CatBasemaps
Definition layertreecategories.h:41
@ CatSwmm
Definition layertreecategories.h:35
@ CatRasterLayers
Definition layertreecategories.h:40
@ CatSwmm1DOutputs
Definition layertreecategories.h:37
@ CatMeshes
Definition layertreecategories.h:36
@ CatSwmm2DOutputs
Definition layertreecategories.h:38
@ CatTables
Definition layertreecategories.h:42
@ CatCount
Definition layertreecategories.h:43
@ CatFeatureLayers
Definition layertreecategories.h:39
LayerTypeOrdinal
Mirror of OpenSWMMVisLayer::OpenSWMMVisLayerType — same ordinals, no Qt include cost....
Definition layertreecategories.h:67
constexpr int kDefaultCategoryDisplayOrder[CatCount]
Default top-to-bottom order of the category groups in the layer tree AND in the canvas paint stack (i...
Definition layertreecategories.h:115
CategoryInfo categoryInfo(CategoryId id)
Returns the display label + icon alias for a category.
Definition layertreecategories.cpp:57
User-visible label + Qt resource alias for a category. Returned by categoryInfo(); the strings are st...
Definition layertreecategories.h:52
const char * iconAlias
Definition layertreecategories.h:54
const char * name
Definition layertreecategories.h:53