![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include "contour/marchingtriangles.h"#include "map/mapextent.h"#include "render/colorramp.h"#include "render/qsg2ddirtystate.h"#include "render/qsg2dlodpolicy.h"#include <QByteArray>#include <QHash>#include <QPointer>#include <QQuickItem>#include <QRectF>#include <QSet>#include <QString>#include <limits>#include <vector>Go to the source code of this file.
Classes | |
| class | SWMM2DMeshQSGRenderer |
Qt Quick Scene Graph renderer for SWMM2DMeshLayer. Replaces the per-triangle QPainter path in MeshGraphicsItem::paint() with a single GPU draw call, eliminating O(N) QPainter state changes.
Rendering: Pass 1 — filled triangles: QSGGeometry::ColoredPoint2D + QSGVertexColorMaterial. Per-vertex colors encode elevation colour ramp × hillshade, computed once per geometry/zoom change and reused on pan. Pass 2 — edges: two QSGGeometryNode (thin/wide), thick-segment quads (DrawTriangles) so line widths are consistent across RHI backends (Metal/Vulkan/D3D11).
QSG-2D-1M (2026-07-05) — re-architected for ~1M-cell meshes: