![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Renderer that classifies a numeric attribute into bins, each with its own colour. More...
#include "render/attributesource.h"#include "render/colorramp.h"#include "render/ifeaturerenderer.h"#include "render/intervalbinner.h"#include <QColor>#include <QHash>#include <QList>#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| class | OpenSWMM::Render::GraduatedRenderer |
| Classifies a numeric attribute into bins and assigns a colour per bin. More... | |
Namespaces | |
| namespace | OpenSWMM |
| namespace | OpenSWMM::Render |
Renderer that classifies a numeric attribute into bins, each with its own colour.
GraduatedRenderer is what drives the per-attribute heatmap on
SWMMResultsLayer (depth / head / flow) and SWMM2DResultsLayer
(depth). It carries:
- classifyAttribute — which attribute drives binning
- minValue / maxValue — the value range covered by the bins
- binColors — N QColors, one per bin
- baseSymbol — the SymbolStyle template; the renderer
overrides "color" in every SymbolLayer
with the per-bin colour at paint time.
v1 uses equal-interval binning (linear) only. Slice BB Phase
8.6.2 will swap binColors[] for a proper ColorRamp + IntervalBinner
(Quantile / StdDev / Jenks / Log binning). The public symbolFor /
legendSymbolItems contract does not change at that swap.
Cross-slice: Slice BI Phase 8.13.6 (see GUI_IMPLEMENTATION_PLAN.md
§J.2 + §J.4). Sub-phase 8.13.6.2 — concrete renderer class.