![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Transparent QGraphicsView overlay for interactive vector content in the MapCanvas. More...
#include <openswmmvisgraphicsview.h>
Public Member Functions | |
| OpenSWMMVisGraphicsView (OpenSWMMVisScene *scene, QWidget *parent=nullptr) | |
Constructs a view displaying scene. | |
| OpenSWMMVisGraphicsView (QWidget *parent=nullptr) | |
| Default constructor without a pre-created scene. | |
| virtual | ~OpenSWMMVisGraphicsView () |
| Destructor. | |
Transparent QGraphicsView overlay for interactive vector content in the MapCanvas.
The view is stacked on top of the MapCanvas widget and sized to cover it exactly. The scene coordinate system uses map CRS coordinates (Y-up) so that items added to the scene already sit in the correct geographic location without any per-item transform.
The MapCanvas is responsible for keeping the view's transform synchronised with the current extent via applyExtentToOverlay().
| OpenSWMMVisGraphicsView::OpenSWMMVisGraphicsView | ( | OpenSWMMVisScene * | scene, |
| QWidget * | parent = nullptr |
||
| ) |
Constructs a view displaying scene.
| scene | Shared scene hosting all layer items. |
| parent | Qt parent widget (typically the MapCanvas). |
|
explicit |
Default constructor without a pre-created scene.
| parent | Qt parent widget. |
|
virtual |
Destructor.