16 #ifndef QGSLABELATTRIBUTES_H
17 #define QGSLABELATTRIBUTES_H
93 static QString unitsName(
int units );
94 static int unitsCode(
const QString &name );
96 static QString alignmentName(
int alignment );
97 static int alignmentCode(
const QString &name );
100 void setText(
const QString & text );
101 bool textIsSet()
const;
102 const QString text()
const;
105 void setFamily(
const QString & family );
106 bool familyIsSet()
const;
107 const QString family()
const;
109 void setBold(
bool enable );
110 bool boldIsSet()
const;
113 void setItalic(
bool enable );
114 bool italicIsSet()
const;
117 void setUnderline(
bool enable );
118 bool underlineIsSet()
const;
119 bool underline()
const;
122 void setStrikeOut(
bool enable );
123 bool strikeOutIsSet()
const;
124 bool strikeOut()
const;
126 void setSize(
double size,
int type );
127 bool sizeIsSet()
const;
128 int sizeType()
const;
131 void setColor(
const QColor &color );
132 bool colorIsSet()
const;
133 const QColor & color()
const;
136 void setOffset(
double x,
double y,
int type );
137 bool offsetIsSet()
const;
138 int offsetType()
const;
139 double xOffset()
const;
140 double yOffset()
const;
143 void setAngle(
double angle );
144 bool angleIsSet()
const;
145 double angle()
const;
147 bool angleIsAuto()
const;
148 void setAutoAngle(
bool state );
151 void setAlignment(
int alignment );
152 bool alignmentIsSet()
const;
153 int alignment()
const;
156 bool bufferEnabled()
const;
157 void setBufferEnabled(
bool useBufferFlag );
158 void setBufferSize(
double size,
int type );
159 bool bufferSizeIsSet()
const;
160 int bufferSizeType()
const;
161 double bufferSize()
const;
163 void setBufferColor(
const QColor &color );
164 bool bufferColorIsSet()
const;
165 QColor bufferColor()
const;
167 void setBufferStyle( Qt::BrushStyle style );
168 bool bufferStyleIsSet()
const;
169 Qt::BrushStyle bufferStyle()
const;
172 void setBorderColor(
const QColor &color );
173 bool borderColorIsSet()
const;
174 QColor borderColor()
const;
176 void setBorderWidth(
int width );
177 bool borderWidthIsSet()
const;
178 int borderWidth()
const;
180 void setBorderStyle( Qt::PenStyle style );
181 bool borderStyleIsSet()
const;
182 Qt::PenStyle borderStyle()
const;
184 bool multilineEnabled()
const;
185 void setMultilineEnabled(
bool useMultiline );
190 bool selectedOnly()
const;
191 void setSelectedOnly(
bool selectedonly );
bool mSelectedOnly
Label only selected.
QBrush mBufferBrush
Buffer brush (color, style)
int mSizeType
Font size, size type.
double mAngle
Angle (degrees)
bool mBufferEnabledFlag
Buffer enablement.
bool mMultilineEnabledFlag
Multiline enablement.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
QFont mFont
Font (family, weight, italic, underline, strikeout)
QPen mBorderPen
Border pen (color, width, style)
int mBufferSizeType
Buffer size, size type.
A class to store attributes needed for label rendering.