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

QWidget host that paints one SectionDiagramModel. More...

#include <QPointF>
#include <QRectF>
#include <QWidget>
#include "ui/sectionview/sectiondiagram.h"
Include dependency graph for sectionpreviewwidget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::sectionview::SectionPreviewWidget
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::sectionview
 

Detailed Description

QWidget host that paints one SectionDiagramModel.

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

Slice SP.2 (workplans/SECTION_PREVIEW_WORKPLAN.md).

Deliberately dumb: it owns a model, repaints when the model is replaced, and nothing else. Every surface that shows a section diagram — the Section View dock, the cross-section editor, the LID editor — hosts one of these and feeds it from its own builder, so the drawing code exists once.

Follows the StreetSectionPreview / StylePreviewSwatch idiom already in the codebase (plain QWidget + paintEvent, palette-driven colours).