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

Map-canvas overlay for a 2D-mesh longitudinal profile: the traced path drawn persistently on the map plus a position arrow that mirrors the profile chart's cursor (and can be dragged on the map via MapToolProfileMarker). More...

#include <QPointF>
#include <QVector>
#include <functional>
Include dependency graph for meshprofileoverlay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MeshProfileOverlay
 

Detailed Description

Map-canvas overlay for a 2D-mesh longitudinal profile: the traced path drawn persistently on the map plus a position arrow that mirrors the profile chart's cursor (and can be dragged on the map via MapToolProfileMarker).

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

A lightweight geometry model + widget-space painter (NOT a QGraphicsItem). MapCanvas owns the pointer and paints it via paint() AFTER the QSG mesh frame is composited, so the line and marker always sit on top of the 2D flood-map mesh (a scene item can't — the QSG frame is blitted over the whole QGraphicsScene buffer). Its lifetime is owned by the MeshProfilePlotDialog — created when the profile window opens and detached/destroyed when it closes. The traced polyline is already in scene coords (sx = mapX, sy = -mapY, the MapToolMeshProfile convention).