![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Renderer-agnostic section/profile diagram model + QPainter painter. More...
#include <QPalette>#include <QtGlobal>#include <QPointF>#include <QPolygonF>#include <QRectF>#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| struct | openswmmvis::sectionview::DiagramPoly |
| struct | openswmmvis::sectionview::DiagramPolyline |
| struct | openswmmvis::sectionview::DiagramGround |
| struct | openswmmvis::sectionview::DiagramDim |
| struct | openswmmvis::sectionview::DiagramLeader |
| struct | openswmmvis::sectionview::DiagramVegetation |
| struct | openswmmvis::sectionview::DiagramCircle |
| struct | openswmmvis::sectionview::DiagramArrow |
| struct | openswmmvis::sectionview::DiagramSymbol |
| struct | openswmmvis::sectionview::PlanSpoke |
| struct | openswmmvis::sectionview::PlanInset |
| struct | openswmmvis::sectionview::DiagramViewport |
| User zoom / pan applied on top of the automatic fit. More... | |
| struct | openswmmvis::sectionview::SectionDiagramModel |
| Everything one preview pane draws, in model units. More... | |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::sectionview |
Functions | |
| void | openswmmvis::sectionview::paintSectionDiagram (QPainter &painter, const QRectF &target, const SectionDiagramModel &model, const QPalette &palette, const DiagramViewport &viewport={}, QRectF *fitRectOut=nullptr, double *achievedExaggerationOut=nullptr) |
Paint model into target using palette for all colours. | |
| QColor | openswmmvis::sectionview::diagramFillColor (DiagramRole role, const QPalette &palette) |
| QColor | openswmmvis::sectionview::diagramStrokeColor (DiagramRole role, const QPalette &palette) |
Renderer-agnostic section/profile diagram model + QPainter painter.
Slice SP.2 (workplans/SECTION_PREVIEW_WORKPLAN.md).
A SectionDiagramModel is a plain value describing WHAT to draw in model units (feet or metres — the diagram never converts): filled shapes, ground hatch, dimension lines with arrowheads, leader lines with landing text, and an optional plan-view compass inset. paintSectionDiagram() maps it into a pixel rect and paints it.
The split keeps every builder headlessly testable: a builder produces a model from engine state with no QWidget, no palette and no event loop, and tests assert on the model's contents rather than on rendered pixels.
All colours come from the supplied QPalette, so the diagrams follow the app theme (including dark mode) with no per-widget stylesheet.