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

Longitudinal cross-section renderer for a path traced across the 2D surface mesh. Plain QWidget + QPainter (chart-like, not map-like), mirroring ProfilePlotWidget's scaffolding (plotRect / dataToPixel / zoom-pan / legend + timestamp drag overlays) but with continuous ground + water lines instead of node/link glyphs. More...

#include "plot/meshprofileplotoptions.h"
#include "plot/meshprofilesampler.h"
#include <QDateTime>
#include <QPointer>
#include <QString>
#include <QVector>
#include <QWidget>
Include dependency graph for meshprofileplotwidget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MeshProfilePlotWidget
 

Detailed Description

Longitudinal cross-section renderer for a path traced across the 2D surface mesh. Plain QWidget + QPainter (chart-like, not map-like), mirroring ProfilePlotWidget's scaffolding (plotRect / dataToPixel / zoom-pan / legend + timestamp drag overlays) but with continuous ground + water lines instead of node/link glyphs.

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

Render passes (z-order, low → high):

  1. background + axes (x = Distance, y = Elevation)
  2. soil fill — ground polyline down to the plot floor (broken at off-mesh NaN gaps)
  3. max-depth envelope — band (ground → ground+maxDepth) + line
  4. animated depth fill — ground → ground+depthNow
  5. animated water-surface line — ground+depthNow
  6. ground line (crisp terrain edge over the soil)
  7. legend + timestamp overlay

Geometry (chainage/ground/maxDepth) is static once set via setProfile(); only depthNow animates — push it cheaply per frame with setCurrentDepths().