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

JSON id → IRasterRenderer construction, the raster-side sibling of RendererFactory::makeRenderer. Used wherever a raster style is restored from JSON: StyleFileIO (dialog Cancel / undo / .swmm-style.json) and ProjectSerializer (.oswp). More...

#include <QJsonObject>
#include <memory>
Include dependency graph for rasterrendererfactory.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
 

Functions

std::unique_ptr< IRasterRendererOpenSWMM::Render::makeRasterRenderer (const QJsonObject &j)
 Construct the renderer whose rendererId() equals j["id"] and restore it from j via fromJson(). Known ids: "graduatedraster", "palettedraster", "multibandcolor", "singlebandpseudocolor".
 

Detailed Description

JSON id → IRasterRenderer construction, the raster-side sibling of RendererFactory::makeRenderer. Used wherever a raster style is restored from JSON: StyleFileIO (dialog Cancel / undo / .swmm-style.json) and ProjectSerializer (.oswp).

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