32#ifndef OPENSWMMVIS_MAP_TOOLS_MAPTOOLMESHSELECTEDGE_H
33#define OPENSWMMVIS_MAP_TOOLS_MAPTOOLMESHSELECTEDGE_H
50 QObject *
parent =
nullptr);
63 void paint(QPainter *painter,
81 QPointF pixelToScene_(
int px,
int py)
const;
86 void handlePathClick_(
const QPoint &
pos);
89 int pathStartFromSelection_()
const;
91 void clearPathAnchor_();
93 void onMeshGeometryReady_();
95 void retargetMeshLayer_();
97 QPointer<SelectionManager> m_selection;
98 QPointer<SWMM2DMeshLayer> m_target;
105 bool m_boundaryOnly =
false;
106 bool m_dragging =
false;
108 QPoint m_currentPixel;
116 int m_pathAnchorSlot = -1;
117 bool m_pathClickHandled =
false;
123 int m_lastEdgeSlot = -1;
124 static constexpr int kDragThreshPx = 6;
125 static constexpr double kPickTolPx = 8.0;
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
An axis-aligned bounding box in the coordinate space of a given CRS.
Definition mapextent.h:26
Definition swmm2dmeshlayer.h:64
Owner of the canonical selection set for one SWMM project.
Definition selectionmanager.h:112
Represents a coordinate reference system backed by a GDAL OGRSpatialReference.
Definition spatialreferencesystem.h:28
Definition meshcommands.h:302
PlotAttribute
What a series plots. One row per attribute in the Nx2 grid.
Definition plotattribute.h:38
Slice BL — canonical enumeration of plottable result attributes.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
int pos
Definition queryparser.cpp:36
QString message
Definition queryparser.cpp:150