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

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>
Include dependency graph for graduatedrenderer.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Renderer that classifies a numeric attribute into bins, each with its own colour.

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