![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Layer holding user-placed text annotations. More...
#include "layers/openswmmvislayer.h"#include <QHash>#include <QJsonArray>#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| class | OpenSWMMVisAnnotationLayer |
Layer holding user-placed text annotations.
Mirrors GISVectorLayer's populate / depopulate / refresh pattern: the data model (AnnotationTextItem*'s) is persistent across scene rebuilds; the QGraphicsItem instances are throwaway, recreated on canvas CRS change.
Positions are stored in the layer's CRS (typically inherited from the SWMM model layer). On populate, each position is reprojected to canvas CRS so the annotation stays pinned to its map location.