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

Slice US.1 (UNIFIED_STYLING plan S1) — the one classification editor shared by every classified visual. More...

#include "render/classificationscheme.h"
#include <QWidget>
#include <memory>
Include dependency graph for classificationeditor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::ClassificationEditor
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Slice US.1 (UNIFIED_STYLING plan S1) — the one classification editor shared by every classified visual.

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

Extracted from KindRendererPanel's graduated box so the 1D per-kind GraduatedRenderer, the 2D depth fill / contour bands / isolines, and the mesh elevation fill all expose the SAME ArcGIS-Pro-style controls:

┌─ Classification ─────────────────────────────┐ │ [○ Continuous ● Classified] (optional) │ │ Attribute: [ depth ▾ ] (optional) │ │ Colour ramp: [ ▒▒▒ Viridis ▾ ] [ ] Invert │ │ Method: [ Equal interval ▾ ] Classes: 5 │ │ Range: [ Fixed over run ▾ ] (optional) │ │ [ ] Custom range Min ____ Max ____ (opt.) │ │ ┌─────────────────────────────────────────┐ │ │ │ Lower Upper Colour Label │ │ │ └─────────────────────────────────────────┘ │ │ [Auto-classify from data] │ └──────────────────────────────────────────────┘

The editor owns no model state — it talks to an IClassificationBinding. Every edit calls binding->setScheme(), which routes through the model's normal change channel so all views repaint. The host re-shows the editor against the live model via refresh() (e.g. after a Cancel rollback).