58 double mapX,
double mapY);
68 const QColor &color = QColor(255, 165, 0));
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Stateless helper that finds the nearest snap point for a given cursor position, respecting the applic...
Definition snapengine.h:34
static Result snap(const OpenSWMMVisMapTool *tool, SWMMModelLayer *layer, double mapX, double mapY)
Find the nearest snap point within the configured tolerance.
Definition snapengine.cpp:29
static void paintSnapRing(QPainter *painter, const OpenSWMMVisMapTool *tool, const Result &result, const QColor &color=QColor(255, 165, 0))
Paint a snap indicator ring on the overlay channel.
Definition snapengine.cpp:116
Kind
Definition snapengine.h:36
Definition snapengine.h:38
double x
Definition snapengine.h:40
QString elementName
Definition snapengine.h:43
Kind kind
Definition snapengine.h:42
double y
Definition snapengine.h:41
bool snapped
Definition snapengine.h:39