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
OpenSWMMVisGraphicsView Class Reference

Transparent QGraphicsView overlay for interactive vector content in the MapCanvas. More...

#include <openswmmvisgraphicsview.h>

Inheritance diagram for OpenSWMMVisGraphicsView:
Collaboration diagram for OpenSWMMVisGraphicsView:

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.
 

Detailed Description

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().

Constructor & Destructor Documentation

◆ OpenSWMMVisGraphicsView() [1/2]

OpenSWMMVisGraphicsView::OpenSWMMVisGraphicsView ( OpenSWMMVisScene scene,
QWidget *  parent = nullptr 
)

Constructs a view displaying scene.

Parameters
sceneShared scene hosting all layer items.
parentQt parent widget (typically the MapCanvas).

◆ OpenSWMMVisGraphicsView() [2/2]

OpenSWMMVisGraphicsView::OpenSWMMVisGraphicsView ( QWidget *  parent = nullptr)
explicit

Default constructor without a pre-created scene.

Parameters
parentQt parent widget.

◆ ~OpenSWMMVisGraphicsView()

OpenSWMMVisGraphicsView::~OpenSWMMVisGraphicsView ( )
virtual

Destructor.


The documentation for this class was generated from the following files: