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

One canonical copy of the legend-content helpers (gap B1). More...

#include "render/legendsymbolitem.h"
#include <QColor>
#include <QList>
Include dependency graph for legendcontent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 
namespace  openswmmvis
 
namespace  openswmmvis::map
 
namespace  openswmmvis::map::LegendContent
 

Functions

OpenSWMM::Render::IFeatureRendereropenswmmvis::map::LegendContent::featureRendererFor (OpenSWMMVisLayer *layer)
 
QList< OpenSWMM::Render::LegendSymbolItemopenswmmvis::map::LegendContent::legendItemsFor (OpenSWMMVisLayer *layer)
 
QColor openswmmvis::map::LegendContent::firstSymbolColor (const OpenSWMM::Render::SymbolStyle &style)
 
bool openswmmvis::map::LegendContent::supportsClassEdit (OpenSWMMVisLayer *layer, OpenSWMM::Render::ClassEditKind kind)
 
QColor openswmmvis::map::LegendContent::colorForClass (OpenSWMMVisLayer *layer, const QString &classKey)
 

Detailed Description

One canonical copy of the legend-content helpers (gap B1).

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
    Historically three near-copies — LegendOverlay,
    LegendLayerTreeModel and legendclasseditcommands — each resolved
    "which renderer / which rows / which swatch colour" for a layer
    and had to stay in lockstep manually. This namespace is the
    single copy both legend views and the undo commands consume, so
    the on-canvas legend, the dock tree and the edit routing cannot
    drift (§J.5 legend-from-renderer invariant).