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
annotationlayer.h File Reference

Layer holding user-placed text annotations. More...

#include "layers/openswmmvislayer.h"
#include <QHash>
#include <QJsonArray>
#include <QString>
#include <QVector>
Include dependency graph for annotationlayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMMVisAnnotationLayer
 

Detailed Description

Layer holding user-placed text annotations.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.