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

Renderer that assigns a distinct symbol per unique value of an attribute. More...

#include "render/ifeaturerenderer.h"
#include <QHash>
#include <QString>
Include dependency graph for categorizedrenderer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMM::Render::CategorizedRenderer
 Distinct symbol per unique value of a string / enum attribute. More...
 
struct  OpenSWMM::Render::CategorizedRenderer::Category
 One named category and its symbol. More...
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

Renderer that assigns a distinct symbol per unique value of an attribute.

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
    Sub-phase 8.13.6.2 STUB: this v1 stores the categories + per-category
    symbols + a fallback symbol, JSON-round-trips them faithfully, and
    returns the matching symbol for a given value (or fallback when
    missing). The full Map Symbology Dialog editor for adding /
    renaming / colouring categories is deferred to Slice **BI.3**.

    The stub is intentionally functional rather than a no-op: existing
    tests in the renderer test file can confirm full round-trip + paint
    behaviour, so when BI.3 lands its editor it inherits a working
    engine instead of having to build one from scratch.

    Cross-slice: Slice BI Phase 8.13.6 (see GUI_IMPLEMENTATION_PLAN.md
    §J.2). Sub-phase 8.13.6.2 — stub.