16 #ifndef QGSLABELATTRIBUTES_H 17 #define QGSLABELATTRIBUTES_H 91 static QString unitsName(
int units );
92 static int unitsCode(
const QString &name );
94 static QString alignmentName(
int alignment );
95 static int alignmentCode(
const QString &name );
98 void setText(
const QString & text );
99 bool textIsSet()
const;
103 void setFamily(
const QString & family );
104 bool familyIsSet()
const;
107 void setBold(
bool enable );
108 bool boldIsSet()
const;
111 void setItalic(
bool enable );
112 bool italicIsSet()
const;
115 void setUnderline(
bool enable );
116 bool underlineIsSet()
const;
117 bool underline()
const;
119 void setStrikeOut(
bool enable );
120 bool strikeOutIsSet()
const;
121 bool strikeOut()
const;
123 void setSize(
double size,
int type );
124 bool sizeIsSet()
const;
125 int sizeType()
const;
128 void setColor(
const QColor &color );
129 bool colorIsSet()
const;
130 const QColor & color()
const;
133 void setOffset(
double x,
double y,
int type );
134 bool offsetIsSet()
const;
135 int offsetType()
const;
136 double xOffset()
const;
137 double yOffset()
const;
140 void setAngle(
double angle );
141 bool angleIsSet()
const;
142 double angle()
const;
144 bool angleIsAuto()
const;
145 void setAutoAngle(
bool state );
148 void setAlignment(
int alignment );
149 bool alignmentIsSet()
const;
150 int alignment()
const;
153 bool bufferEnabled()
const;
154 void setBufferEnabled(
bool useBufferFlag );
155 void setBufferSize(
double size,
int type );
156 bool bufferSizeIsSet()
const;
157 int bufferSizeType()
const;
158 double bufferSize()
const;
160 void setBufferColor(
const QColor &color );
161 bool bufferColorIsSet()
const;
162 QColor bufferColor()
const;
164 void setBufferStyle( Qt::BrushStyle style );
165 bool bufferStyleIsSet()
const;
166 Qt::BrushStyle bufferStyle()
const;
169 void setBorderColor(
const QColor &color );
170 bool borderColorIsSet()
const;
171 QColor borderColor()
const;
173 void setBorderWidth(
int width );
174 bool borderWidthIsSet()
const;
175 int borderWidth()
const;
177 void setBorderStyle( Qt::PenStyle style );
178 bool borderStyleIsSet()
const;
179 Qt::PenStyle borderStyle()
const;
181 bool multilineEnabled()
const;
182 void setMultilineEnabled(
bool useMultiline );
185 bool selectedOnly()
const;
186 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.