![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Central QGraphicsScene subclass that holds all map-layer graphics items. More...
#include <openswmmvisscene.h>
Signals | |
| void | itemHovered (QGraphicsItem *item) |
Public Member Functions | |
| OpenSWMMVisScene (QObject *parent=nullptr) | |
| ~OpenSWMMVisScene () override | |
| void | removeItemsForLayer (OpenSWMMVisLayer *layer) |
| Removes all items owned by a particular layer. | |
Central QGraphicsScene subclass that holds all map-layer graphics items.
Layers populate the scene with QGraphicsItems via OpenSWMMVisLayer::populateScene() / depopulateScene(). The scene uses BSP-tree indexing for efficient hit-testing and spatial queries.
The scene coordinates are in map CRS units:
The associated QGraphicsView (MapCanvas) applies a vertical flip in its transform so that screen-Y-down maps to geo-Y-up.
|
explicit |
|
overridedefault |
|
signal |
| void OpenSWMMVisScene::removeItemsForLayer | ( | OpenSWMMVisLayer * | layer | ) |
Removes all items owned by a particular layer.