8#ifndef MAPTOOLADDLINK_H
9#define MAPTOOLADDLINK_H
49 const QString &elementKind, QObject *
parent =
nullptr);
51 [[nodiscard]] QCursor
cursor()
const override;
73 const QString &fromNode,
const QString &toNode);
76 enum class State {
Idle, Drawing };
79 [[nodiscard]] QString nextAvailableName(
SWMMModelLayer *layer)
const;
83 double mapX,
double mapY,
84 double *snapX,
double *snapY)
const;
88 double toX,
double toY);
91 QString m_elementKind;
93 State m_state = State::Idle;
96 QVector<QPointF> m_vertices;
103 double m_terrainOffset = 0.0;
104 double m_terrainFactor = 1.0;
A map layer backed by a GDAL raster dataset.
Definition gisrasterlayer.h:61
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
@ Idle
Row exists for an open model; no run yet.
Shared vertex-snapping helper for all drawing map tools.
Definition snapengine.h:38