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
Go to the documentation of this file.
1
16#ifndef OPENSWMMVIS_MAP_LEGENDCONTENT_H
17#define OPENSWMMVIS_MAP_LEGENDCONTENT_H
18
20
21#include <QColor>
22#include <QList>
23
25
26namespace OpenSWMM::Render {
27class IFeatureRenderer;
28struct SymbolStyle;
29enum class ClassEditKind;
30}
31
33
40
45[[nodiscard]] QList<OpenSWMM::Render::LegendSymbolItem>
47
51[[nodiscard]] QColor firstSymbolColor(const OpenSWMM::Render::SymbolStyle &style);
52
55[[nodiscard]] bool supportsClassEdit(OpenSWMMVisLayer *layer,
57[[nodiscard]] QColor colorForClass(OpenSWMMVisLayer *layer, const QString &classKey);
58
59} // namespace openswmmvis::map::LegendContent
60
61#endif // OPENSWMMVIS_MAP_LEGENDCONTENT_H
Abstract interface — every vector layer's paint path goes here.
Definition ifeaturerenderer.h:85
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
One row in a layer's legend — label + swatch symbol + optional range.
Definition gisrasterlayer.h:40
ClassEditKind
Categories of per-class mutation that a renderer may support.
Definition ifeaturerenderer.h:64
Definition legendcontent.h:32
OpenSWMM::Render::IFeatureRenderer * featureRendererFor(OpenSWMMVisLayer *layer)
Definition legendcontent.cpp:22
QList< OpenSWMM::Render::LegendSymbolItem > legendItemsFor(OpenSWMMVisLayer *layer)
Definition legendcontent.cpp:34
bool supportsClassEdit(OpenSWMMVisLayer *layer, OpenSWMM::Render::ClassEditKind kind)
Definition legendcontent.cpp:61
QColor colorForClass(OpenSWMMVisLayer *layer, const QString &classKey)
Definition legendcontent.cpp:72
QColor firstSymbolColor(const OpenSWMM::Render::SymbolStyle &style)
Definition legendcontent.cpp:56
TokenKind kind
Definition queryparser.cpp:34
Stack of SymbolLayer paint passes (bottom-up) plus an overall opacity.
Definition symbolstyle.h:39