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::map::LegendContent Namespace Reference

Functions

OpenSWMM::Render::IFeatureRendererfeatureRendererFor (OpenSWMMVisLayer *layer)
 
QList< OpenSWMM::Render::LegendSymbolItemlegendItemsFor (OpenSWMMVisLayer *layer)
 
QColor firstSymbolColor (const OpenSWMM::Render::SymbolStyle &style)
 
bool supportsClassEdit (OpenSWMMVisLayer *layer, OpenSWMM::Render::ClassEditKind kind)
 
QColor colorForClass (OpenSWMMVisLayer *layer, const QString &classKey)
 

Function Documentation

◆ colorForClass()

QColor openswmmvis::map::LegendContent::colorForClass ( OpenSWMMVisLayer layer,
const QString &  classKey 
)
Here is the call graph for this function:

◆ featureRendererFor()

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.

Here is the caller graph for this function:

◆ firstSymbolColor()

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.

Here is the call graph for this function:

◆ legendItemsFor()

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.

Here is the call graph for this function:

◆ supportsClassEdit()

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).

Here is the call graph for this function: