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

Raster renderer that maps a single-band value to a colour ramp. More...

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

Go to the source code of this file.

Classes

class  OpenSWMM::Render::SingleBandPseudoColorRenderer
 Continuous colour ramp for single-band raster data. More...
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

Raster renderer that maps a single-band value to a colour ramp.

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
    SingleBandPseudoColorRenderer is the IRasterRenderer counterpart
    to GraduatedRenderer on the feature side.  It carries:
      - minValue / maxValue — the value range covered by the ramp
      - stops               — sorted list of (pos [0..1], QColor)
      - clampMin / clampMax — when true, out-of-range values are
                              rendered transparent (matches the
                              existing RasterColorRamp policy on
                              GISRasterLayer)

    v1 uses linear interpolation between adjacent stops only.  A
    later slice can introduce log / discrete interpolation modes;
    the public colorForValue / legendSymbolItems contract does not
    change at that swap.

    Cross-slice: Slice BI Phase 8.13.6 (see GUI_IMPLEMENTATION_PLAN.md
    §J.2). Sub-phase 8.13.6.7 — concrete raster renderer class.