1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/labeling/qgslabellinesettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsLabelLineSettings
{
%Docstring(signature="appended")
Contains settings related to how the label engine places and formats
labels for line features (or polygon features which are labeled in a
"perimeter" style mode).
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgslabellinesettings.h"
%End
public:
static const QMetaObject staticMetaObject;
public:
enum class DirectionSymbolPlacement /BaseType=IntEnum/
{
SymbolLeftRight,
SymbolAbove,
SymbolBelow
};
enum class AnchorType /BaseType=IntEnum/
{
HintOnly,
Strict,
};
enum class AnchorClipping /BaseType=IntEnum/
{
UseVisiblePartsOfLine,
UseEntireLine,
};
enum class AnchorTextPoint /BaseType=IntEnum/
{
StartOfText,
CenterOfText,
EndOfText,
FollowPlacement,
};
Qgis::LabelLinePlacementFlags placementFlags() const;
%Docstring
Returns the line placement flags, which dictate how line labels can be
placed above or below the lines.
.. seealso:: :py:func:`setPlacementFlags`
%End
void setPlacementFlags( Qgis::LabelLinePlacementFlags flags );
%Docstring
Returns the line placement ``flags``, which dictate how line labels can
be placed above or below the lines.
.. seealso:: :py:func:`placementFlags`
%End
bool mergeLines() const;
%Docstring
Returns ``True`` if connected line features with identical label text
should be merged prior to generating label positions.
.. seealso:: :py:func:`setMergeLines`
%End
void setMergeLines( bool merge );
%Docstring
Sets whether connected line features with identical label text should be
merged prior to generating label positions.
.. seealso:: :py:func:`mergeLines`
%End
void updateDataDefinedProperties( const QgsPropertyCollection &properties, QgsExpressionContext &context );
%Docstring
Updates the line settings to respect any data defined properties set
within the specified ``properties`` collection.
%End
bool addDirectionSymbol() const;
%Docstring
Returns ``True`` if '<' or '>' (or custom strings set via
leftDirectionSymbol and rightDirectionSymbol) will be automatically
added to the label text, pointing in the direction of the line or
polygon ring.
.. seealso:: :py:func:`setAddDirectionSymbol`
.. seealso:: :py:func:`leftDirectionSymbol`
.. seealso:: :py:func:`rightDirectionSymbol`
.. seealso:: :py:func:`directionSymbolPlacement`
.. seealso:: :py:func:`reverseDirectionSymbol`
%End
void setAddDirectionSymbol( bool enabled );
%Docstring
Sets whether '<' or '>' (or custom strings set via leftDirectionSymbol
and rightDirectionSymbol) will be automatically added to the label text,
pointing in the direction of the line or polygon ring.
.. seealso:: :py:func:`addDirectionSymbol`
.. seealso:: :py:func:`setLeftDirectionSymbol`
.. seealso:: :py:func:`setRightDirectionSymbol`
.. seealso:: :py:func:`setDirectionSymbolPlacement`
.. seealso:: :py:func:`setReverseDirectionSymbol`
%End
QString leftDirectionSymbol() const;
%Docstring
Returns the string to use for left direction arrows.
.. seealso:: :py:func:`setLeftDirectionSymbol`
.. seealso:: :py:func:`addDirectionSymbol`
.. seealso:: :py:func:`rightDirectionSymbol`
%End
void setLeftDirectionSymbol( const QString &symbol );
%Docstring
Sets the string to use for left direction arrows.
.. seealso:: :py:func:`leftDirectionSymbol`
.. seealso:: :py:func:`addDirectionSymbol`
.. seealso:: :py:func:`rightDirectionSymbol`
%End
QString rightDirectionSymbol() const;
%Docstring
Returns the string to use for right direction arrows.
.. seealso:: :py:func:`setRightDirectionSymbol`
.. seealso:: :py:func:`addDirectionSymbol`
.. seealso:: :py:func:`leftDirectionSymbol`
%End
void setRightDirectionSymbol( const QString &symbol );
%Docstring
Sets the string to use for right direction arrows.
.. seealso:: :py:func:`setLeftDirectionSymbol`
.. seealso:: :py:func:`addDirectionSymbol`
.. seealso:: :py:func:`rightDirectionSymbol`
%End
bool reverseDirectionSymbol() const;
%Docstring
Returns ``True`` if direction symbols should be reversed.
.. seealso:: :py:func:`setReverseDirectionSymbol`
%End
void setReverseDirectionSymbol( bool reversed );
%Docstring
Sets whether the direction symbols should be ``reversed``.
.. seealso:: :py:func:`reverseDirectionSymbol`
%End
DirectionSymbolPlacement directionSymbolPlacement() const;
%Docstring
Returns the placement for direction symbols.
This setting controls whether to place direction symbols to the
left/right, above or below label.
.. seealso:: :py:func:`setDirectionSymbolPlacement`
.. seealso:: :py:func:`addDirectionSymbol`
%End
void setDirectionSymbolPlacement( DirectionSymbolPlacement placement );
%Docstring
Sets the ``placement`` for direction symbols.
This setting controls whether to place direction symbols to the
left/right, above or below label.
.. seealso:: :py:func:`directionSymbolPlacement`
.. seealso:: :py:func:`addDirectionSymbol`
%End
double overrunDistance() const;
%Docstring
Returns the distance which labels are allowed to overrun past the start
or end of line features.
.. seealso:: :py:func:`setOverrunDistance`
.. seealso:: :py:func:`overrunDistanceUnit`
.. seealso:: :py:func:`overrunDistanceMapUnitScale`
%End
void setOverrunDistance( double distance );
%Docstring
Sets the ``distance`` which labels are allowed to overrun past the start
or end of line features.
.. seealso:: :py:func:`overrunDistance`
.. seealso:: :py:func:`overrunDistanceUnit`
.. seealso:: :py:func:`overrunDistanceMapUnitScale`
%End
Qgis::RenderUnit overrunDistanceUnit() const;
%Docstring
Returns the units for label overrun distance.
.. seealso:: :py:func:`setOverrunDistanceUnit`
.. seealso:: :py:func:`overrunDistance`
.. seealso:: :py:func:`overrunDistanceMapUnitScale`
%End
void setOverrunDistanceUnit( const Qgis::RenderUnit &unit );
%Docstring
Sets the ``unit`` for label overrun distance.
.. seealso:: :py:func:`overrunDistanceUnit`
.. seealso:: :py:func:`overrunDistance`
.. seealso:: :py:func:`overrunDistanceMapUnitScale`
%End
QgsMapUnitScale overrunDistanceMapUnitScale() const;
%Docstring
Returns the map unit scale for label overrun distance.
.. seealso:: :py:func:`setOverrunDistanceMapUnitScale`
.. seealso:: :py:func:`overrunDistance`
.. seealso:: :py:func:`overrunDistanceUnit`
%End
void setOverrunDistanceMapUnitScale( const QgsMapUnitScale &scale );
%Docstring
Sets the map unit ``scale`` for label overrun distance.
.. seealso:: :py:func:`overrunDistanceMapUnitScale`
.. seealso:: :py:func:`overrunDistance`
.. seealso:: :py:func:`overrunDistanceUnit`
%End
double lineAnchorPercent() const;
%Docstring
Returns the percent along the line at which labels should be placed.
By default, this is 0.5 which indicates that labels should be placed as
close to the center of the line as possible. A value of 0.0 indicates
that the labels should be placed as close to the start of the line as
possible, while a value of 1.0 pushes labels towards the end of the
line.
.. seealso:: :py:func:`setLineAnchorPercent`
.. seealso:: :py:func:`anchorTextPoint`
.. seealso:: :py:func:`anchorType`
.. seealso:: :py:func:`anchorClipping`
%End
void setLineAnchorPercent( double percent );
%Docstring
Sets the ``percent`` along the line at which labels should be placed.
By default, this is 0.5 which indicates that labels should be placed as
close to the center of the line as possible. A value of 0.0 indicates
that the labels should be placed as close to the start of the line as
possible, while a value of 1.0 pushes labels towards the end of the
line.
.. seealso:: :py:func:`lineAnchorPercent`
.. seealso:: :py:func:`setAnchorTextPoint`
.. seealso:: :py:func:`setAnchorType`
.. seealso:: :py:func:`setAnchorClipping`
%End
AnchorType anchorType() const;
%Docstring
Returns the line anchor type, which dictates how the
:py:func:`~QgsLabelLineSettings.lineAnchorPercent` setting is handled.
.. seealso:: :py:func:`setAnchorType`
.. seealso:: :py:func:`lineAnchorPercent`
.. seealso:: :py:func:`anchorClipping`
%End
void setAnchorType( AnchorType type );
%Docstring
Sets the line anchor ``type``, which dictates how the
:py:func:`~QgsLabelLineSettings.lineAnchorPercent` setting is handled.
.. seealso:: :py:func:`anchorType`
.. seealso:: :py:func:`setLineAnchorPercent`
.. seealso:: :py:func:`setAnchorClipping`
%End
AnchorClipping anchorClipping() const;
%Docstring
Returns the line anchor clipping mode, which dictates how line strings
are clipped before calculating the line anchor placement.
.. seealso:: :py:func:`setAnchorClipping`
.. seealso:: :py:func:`anchorType`
.. seealso:: :py:func:`lineAnchorPercent`
.. versionadded:: 3.20
%End
void setAnchorClipping( AnchorClipping clipping );
%Docstring
Sets the line anchor ``clipping`` mode, which dictates how line strings
are clipped before calculating the line anchor placement.
.. seealso:: :py:func:`anchorClipping`
.. seealso:: :py:func:`setAnchorType`
.. seealso:: :py:func:`setLineAnchorPercent`
.. versionadded:: 3.20
%End
AnchorTextPoint anchorTextPoint() const;
%Docstring
Returns the line anchor text point, which dictates which part of the
label text should be placed at the
:py:func:`~QgsLabelLineSettings.lineAnchorPercent`.
.. seealso:: :py:func:`setAnchorTextPoint`
.. versionadded:: 3.26
%End
void setAnchorTextPoint( AnchorTextPoint point );
%Docstring
Sets the line anchor text ``point``, which dictates which part of the
label text should be placed at the
:py:func:`~QgsLabelLineSettings.lineAnchorPercent`.
.. seealso:: :py:func:`anchorTextPoint`
.. versionadded:: 3.26
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/labeling/qgslabellinesettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|