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
swmm2dmeshlayer.h File Reference
#include "layers/meshspatialgrid.h"
#include "layers/openswmmvislayer.h"
#include "mesh/meshboundarygraph.h"
#include "mesh/meshresult.h"
#include "mesh/meshedgebc.h"
#include "render/isublayerhost.h"
#include <QByteArray>
#include <QColor>
#include <QLineF>
#include <QPair>
#include <QPointF>
#include <QPolygonF>
#include <QRectF>
#include <QSet>
#include <QString>
#include <QVector>
#include <ogr_spatialref.h>
#include <memory>
Include dependency graph for swmm2dmeshlayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SWMM2DMeshLayer
 
struct  SWMM2DMeshLayer::SceneTri
 
struct  SWMM2DMeshLayer::SceneEdge
 
struct  SWMM2DMeshLayer::SceneNode
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

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 AU.6 — renders a generated 2D triangular mesh on the canvas.

Rendering is handled entirely by SWMM2DMeshQSGRenderer (a QQuickItem inside MapCanvas's QQuickWidget), which replaces the former per-triangle QPainter path. All scene-space geometry is pre-computed into the public m_scene* caches by rebuildSceneGeometry(); the renderer reads them directly.

Elevation visualisation:

  • Filled triangles: terrain colour ramp (deep-blue → near-white) × slope-based hillshade.
  • Edges: colour-mapped by slope; steep breaks rendered wider.
  • Nodes: SWMM-coupled (tagged) vertices; off by default (setShowMeshNodes).