14#ifndef OPENSWMMVIS_LAYERS_ANNOTATIONTEXTITEM_H
15#define OPENSWMMVIS_LAYERS_ANNOTATIONTEXTITEM_H
100 [[nodiscard]] QString
id()
const {
return m_id; }
106 [[nodiscard]] QString
text()
const {
return m_text; }
107 [[nodiscard]]
double x()
const {
return m_x; }
108 [[nodiscard]]
double y()
const {
return m_y; }
109 [[nodiscard]]
double rotation()
const {
return m_rotation; }
110 [[nodiscard]] QFont
font()
const {
return m_font; }
111 [[nodiscard]] QColor
fillColor()
const {
return m_fillColor; }
118 [[nodiscard]] QColor
haloColor()
const {
return m_haloColor; }
119 [[nodiscard]]
double haloRadius()
const {
return m_haloRadius; }
129 [[nodiscard]] QJsonObject
toJson()
const;
134 void fromJson(
const QJsonObject &obj);
189 QString m_text = QStringLiteral(
"Text");
192 double m_rotation = 0.0;
195 QColor m_fillColor = Qt::black;
197 bool m_outlineEnabled =
false;
198 QColor m_outlineColor = Qt::white;
199 double m_outlineWidth = 1.0;
201 bool m_haloEnabled =
true;
202 QColor m_haloColor = QColor(255, 255, 255, 220);
203 double m_haloRadius = 2.0;
205 bool m_bgEnabled =
false;
206 QColor m_bgFill = QColor(255, 255, 255, 200);
207 QColor m_bgOutline = QColor(80, 80, 80, 255);
208 double m_bgOutlineWidth = 1.0;
209 double m_bgPadding = 4.0;
210 double m_bgCornerRadius = 3.0;
Data model for a single styled text annotation.
Definition annotationtextitem.h:34
void setBackgroundFillColor(const QColor &c)
Definition annotationtextitem.cpp:216
QColor backgroundFillColor
Definition annotationtextitem.h:87
void setRotation(double deg)
Definition annotationtextitem.cpp:136
double x() const
Definition annotationtextitem.h:107
double rotation() const
Definition annotationtextitem.h:109
double x
Definition annotationtextitem.h:51
void setHaloRadius(double r)
Definition annotationtextitem.cpp:200
QFont font() const
Definition annotationtextitem.h:110
void setPosition(double x, double y)
Definition annotationtextitem.cpp:127
void setId(const QString &id)
Definition annotationtextitem.h:103
double backgroundOutlineWidth
Definition annotationtextitem.h:89
QColor haloColor() const
Definition annotationtextitem.h:118
void setOutlineColor(const QColor &c)
Definition annotationtextitem.cpp:168
double y() const
Definition annotationtextitem.h:108
void setOutlineWidth(double w)
Definition annotationtextitem.cpp:176
void fromJson(const QJsonObject &obj)
Definition annotationtextitem.cpp:64
void backgroundPaddingChanged(double)
void haloColorChanged(const QColor &)
QColor outlineColor() const
Definition annotationtextitem.h:114
double backgroundOutlineWidth() const
Definition annotationtextitem.h:124
QString text() const
Definition annotationtextitem.h:106
void setHaloEnabled(bool on)
Definition annotationtextitem.cpp:184
QColor fillColor() const
Definition annotationtextitem.h:111
void rotationChanged(double)
void backgroundOutlineWidthChanged(double)
void setBackgroundEnabled(bool on)
Definition annotationtextitem.cpp:208
void setY(double v)
Definition annotationtextitem.cpp:119
double haloRadius() const
Definition annotationtextitem.h:119
void textChanged(const QString &)
QFont font
Definition annotationtextitem.h:60
void setBackgroundCornerRadius(double r)
Definition annotationtextitem.cpp:248
void backgroundFillColorChanged(const QColor &)
double rotation
Definition annotationtextitem.h:53
void fillColorChanged(const QColor &)
QColor fillColor
Definition annotationtextitem.h:61
void setBackgroundOutlineColor(const QColor &c)
Definition annotationtextitem.cpp:224
QColor haloColor
Definition annotationtextitem.h:78
bool haloEnabled
Definition annotationtextitem.h:77
bool haloEnabled() const
Definition annotationtextitem.h:117
bool outlineEnabled
Definition annotationtextitem.h:68
double haloRadius
Definition annotationtextitem.h:79
double backgroundPadding
Definition annotationtextitem.h:90
void setBackgroundOutlineWidth(double w)
Definition annotationtextitem.cpp:232
bool backgroundEnabled
Definition annotationtextitem.h:86
QString text
Definition annotationtextitem.h:41
void setBackgroundPadding(double p)
Definition annotationtextitem.cpp:240
void outlineEnabledChanged(bool)
void backgroundOutlineColorChanged(const QColor &)
void outlineWidthChanged(double)
void backgroundCornerRadiusChanged(double)
void setOutlineEnabled(bool on)
Definition annotationtextitem.cpp:160
double backgroundPadding() const
Definition annotationtextitem.h:125
void outlineColorChanged(const QColor &)
void backgroundEnabledChanged(bool)
void setFillColor(const QColor &c)
Definition annotationtextitem.cpp:152
bool backgroundEnabled() const
Definition annotationtextitem.h:121
QColor backgroundOutlineColor() const
Definition annotationtextitem.h:123
double outlineWidth
Definition annotationtextitem.h:70
void haloEnabledChanged(bool)
bool outlineEnabled() const
Definition annotationtextitem.h:113
void setX(double v)
Definition annotationtextitem.cpp:111
double backgroundCornerRadius
Definition annotationtextitem.h:91
QJsonObject toJson() const
Definition annotationtextitem.cpp:35
double y
Definition annotationtextitem.h:52
QString id() const
Definition annotationtextitem.h:100
double outlineWidth() const
Definition annotationtextitem.h:115
void fontChanged(const QFont &)
void setFont(const QFont &f)
Definition annotationtextitem.cpp:144
QColor backgroundOutlineColor
Definition annotationtextitem.h:88
void setText(const QString &t)
Definition annotationtextitem.cpp:103
void setHaloColor(const QColor &c)
Definition annotationtextitem.cpp:192
void haloRadiusChanged(double)
QColor backgroundFillColor() const
Definition annotationtextitem.h:122
double backgroundCornerRadius() const
Definition annotationtextitem.h:126
QColor outlineColor
Definition annotationtextitem.h:69
DiagramType t
Definition diagramspec.cpp:20
ArrowPlacement p
Definition linesymbollayer.cpp:27
int w
Definition mesh2dresultsexport.cpp:387
QVector< int > v
pool vertex indices
Definition pslgminsize.cpp:159
QVector< int > parent
union-find
Definition pslgminsize.cpp:176