13#ifndef MAPTOOLEDITVERTEX_H
14#define MAPTOOLEDITVERTEX_H
48 [[nodiscard]] QCursor
cursor()
const override;
59 void paint(QPainter *painter,
76 bool valid()
const {
return layer && linkIdx >= 0; }
79 void clearActiveLink();
80 LinkHit pickLink(
const QPoint &pixel)
const;
81 int hitTestInteriorHandle(
const QPoint &pixel)
const;
82 void commitInterior(QVector<QPointF> newInterior);
89 QVector<QPointF> m_interior;
92 bool m_dragging =
false;
93 int m_dragVertex = -1;
98 bool m_snapping =
false;
101 static constexpr int kSnapRadiusPx = 15;
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
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Represents a coordinate reference system backed by a GDAL OGRSpatialReference.
Definition spatialreferencesystem.h:28
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString name
Definition sectionmodelbuilders.cpp:474