![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Functions | |
| OpenSWMM::Render::IFeatureRenderer * | featureRendererFor (OpenSWMMVisLayer *layer) |
| QList< OpenSWMM::Render::LegendSymbolItem > | legendItemsFor (OpenSWMMVisLayer *layer) |
| QColor | firstSymbolColor (const OpenSWMM::Render::SymbolStyle &style) |
| bool | supportsClassEdit (OpenSWMMVisLayer *layer, OpenSWMM::Render::ClassEditKind kind) |
| QColor | colorForClass (OpenSWMMVisLayer *layer, const QString &classKey) |
| QColor openswmmvis::map::LegendContent::colorForClass | ( | OpenSWMMVisLayer * | layer, |
| const QString & | classKey | ||
| ) |
| OpenSWMM::Render::IFeatureRenderer * openswmmvis::map::LegendContent::featureRendererFor | ( | OpenSWMMVisLayer * | layer | ) |
The layer's single IFeatureRenderer when it has one (results / 2D / mesh / GIS vector). Returns nullptr for multi-kind layers (SWMMModelLayer) and raster layers — their rows and edits go through the layer facades instead.
| QColor openswmmvis::map::LegendContent::firstSymbolColor | ( | const OpenSWMM::Render::SymbolStyle & | style | ) |
First resolvable swatch colour of a symbol (tolerant of both colour encodings; checks fillColor → color → outlineColor). Gray fallback matches the historical legend convention.
| QList< OpenSWMM::Render::LegendSymbolItem > openswmmvis::map::LegendContent::legendItemsFor | ( | OpenSWMMVisLayer * | layer | ) |
Renderer-derived legend rows for any layer kind. Multi-kind layers (SWMMModelLayer) and results layers aggregate their per-kind renderers through their legend facades; single-renderer layers return the renderer's rows; raster layers the raster renderer's.
| bool openswmmvis::map::LegendContent::supportsClassEdit | ( | OpenSWMMVisLayer * | layer, |
| OpenSWMM::Render::ClassEditKind | kind | ||
| ) |
Per-class edit dispatch — renderer first, then the layer facades (SWMMModelLayer / SWMMResultsLayer kind-qualified keys).