SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
gisselectionbridge.h
Go to the documentation of this file.
1
26#ifndef OPENSWMMVIS_SELECTION_GISSELECTIONBRIDGE_H
27#define OPENSWMMVIS_SELECTION_GISSELECTIONBRIDGE_H
28
29#include <QObject>
30#include <QPointer>
31
32class MapCanvas;
33class GISVectorLayer;
36
37class GisSelectionBridge : public QObject
38{
39 Q_OBJECT
40
41public:
43 QObject *parent = nullptr);
44
45private slots:
46 void onLayerAdded(OpenSWMMVisLayer *layer);
47 void onLayerRemoved(OpenSWMMVisLayer *layer);
48 void onLayerSelectionChanged();
49 void onBusSelectionChanged();
50
51private:
52 void hook(GISVectorLayer *gis);
53
54 QPointer<SelectionManager> m_selection;
55 QPointer<MapCanvas> m_canvas;
56 bool m_busy = false;
57};
58
59#endif // OPENSWMMVIS_SELECTION_GISSELECTIONBRIDGE_H
A map layer backed by a GDAL/OGR vector dataset.
Definition gisvectorlayer.h:103
Definition gisselectionbridge.h:38
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
Owner of the canonical selection set for one SWMM project.
Definition selectionmanager.h:112
QVector< int > parent
union-find
Definition pslgminsize.cpp:176