25#ifndef OPENSWMMVIS_MAP_TOOLS_MAPTOOLPICK2DCELLS_H
26#define OPENSWMMVIS_MAP_TOOLS_MAPTOOLPICK2DCELLS_H
50 QObject *
parent =
nullptr);
54 [[nodiscard]]
Mode mode() const noexcept {
return m_mode; }
71 void paint(QPainter *painter,
82 const QVector<openswmmvis::plot::PlotAttribute> &attrs);
96 void applySelection_(
const QVector<int> &hits, Qt::KeyboardModifiers mods);
100 [[nodiscard]] QVector<int> selectedCells_()
const;
105 void requestPlotAt_(
const QPoint &pixel,
const QPoint &globalPos);
109 QPointF pixelToScene_(
int px,
int py)
const;
115 int pickCellAtScene_(
const QPointF &scenePt);
118 QVector<int> pickCellsInRectScene_(
const QRectF &sceneRect);
121 QVector<int> pickCellsInPolygonScene_(
const QPolygonF &scenePoly);
126 bool m_dragging =
false;
128 QPoint m_currentPixel;
129 static constexpr int kDragThreshPx = 8;
132 bool m_drawing =
false;
133 QVector<QPointF> m_lassoMapPts;
134 QPoint m_cursorPixel;
142 bool m_pendingRightPlot =
false;
144 QPointer<SWMM2DResultsLayer> m_targetLayer;
145 QPointer<SWMM2DMeshLayer> m_meshLayer;
146 QPointer<SelectionManager> m_selection;
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
Definition swmm2dresultslayer.h:550
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
MaskMode m
Definition maskspec.cpp:18
Slice BL — canonical enumeration of plottable result attributes.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176