18#ifndef OPENSWMMVIS_MESH_MESHHOVERPROBE_H
19#define OPENSWMMVIS_MESH_MESHHOVERPROBE_H
21#include <QElapsedTimer>
40 [[nodiscard]]
double lastZ()
const {
return m_lastZ; }
41 [[nodiscard]]
bool lastValid()
const {
return m_lastValid; }
49 void onCursor(
double mapX,
double mapY);
52 QPointer<MapCanvas> m_canvas;
53 QPointer<SWMM2DMeshLayer> m_mesh;
54 QElapsedTimer m_throttle;
56 bool m_lastValid =
false;
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Definition swmm2dmeshlayer.h:64
Definition meshhoverprobe.h:31
bool lastValid() const
Definition meshhoverprobe.h:41
~MeshHoverProbe() override
void setActiveMesh(SWMM2DMeshLayer *layer)
Definition meshhoverprobe.cpp:38
double lastZ() const
Definition meshhoverprobe.h:40
void elevationChanged(double z, bool finite)
Emitted on every (throttled) cursor update. When the cursor is outside every triangle,...
void setCanvas(MapCanvas *canvas)
Definition meshhoverprobe.cpp:24
Definition meshcommands.h:302
QVector< int > parent
union-find
Definition pslgminsize.cpp:176