![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Data model for a single styled text annotation. More...
#include <annotationtextitem.h>
Properties | |
Identity & content | |
| QString | text |
Position (layer CRS, double precision) | |
Stored in the owning layer's CRS. The annotation layer reprojects to canvas CRS when populating the scene so the annotation stays pinned to its map location under pan / zoom. | |
| double | x |
| double | y |
| double | rotation |
Font + fill (text body) | |
| QFont | font |
| QColor | fillColor |
Outline (per-glyph stroke around the text shape) | |
| bool | outlineEnabled |
| QColor | outlineColor |
| double | outlineWidth |
Halo (soft glow behind text for legibility) | |
| bool | haloEnabled |
| QColor | haloColor |
| double | haloRadius |
Data model for a single styled text annotation.
Style attributes are exposed as Q_PROPERTYs so they can be driven by a QPropertyModel-backed editor. A single aggregate changed() signal fires after each setter, letting the layer's graphics item issue a single update() per edit.
|
explicit |
|
overridedefault |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
signal |
Aggregate signal — fires once after any setter mutates state. The layer's graphics item connects to this to trigger a single repaint per edit, instead of subscribing to every per-field NOTIFY.
|
inline |
|
signal |
|
inline |
|
signal |
| void AnnotationTextItem::fromJson | ( | const QJsonObject & | obj | ) |
Replace every field from a JSON entry. Missing keys keep current defaults so older saves restore cleanly under additive schema changes. Restores the persisted id (does NOT regenerate).
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
Immutable identifier — used by undo commands to find the right item across redo/undo and by the project serializer for round-tripping.
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
signal |
|
inline |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
inline |
Mostly used by load-from-JSON to preserve identifiers across saves.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
inline |
|
signal |
| QJsonObject AnnotationTextItem::toJson | ( | ) | const |
Serialize to a project-file JSON entry.
|
inline |
|
inline |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |