#include <qgspallabeling.h>
|
static void | drawLabelCandidateRect (pal::LabelPosition *lp, QPainter *painter, const QgsMapToPixel *xform, QList< QgsLabelCandidate > *candidates=nullptr) |
|
static bool | geometryRequiresPreparation (const QgsGeometry &geometry, QgsRenderContext &context, const QgsCoordinateTransform &ct, const QgsGeometry &clipGeometry=QgsGeometry()) |
| Checks whether a geometry requires preparation before registration with PAL. More...
|
|
static QgsGeometry | prepareGeometry (const QgsGeometry &geometry, QgsRenderContext &context, const QgsCoordinateTransform &ct, const QgsGeometry &clipGeometry=QgsGeometry()) |
| Prepares a geometry for registration with PAL. More...
|
|
static QStringList | splitToGraphemes (const QString &text) |
| Splits a text string to a list of graphemes, which are the smallest allowable character divisions in the string. More...
|
|
static QStringList | splitToLines (const QString &text, const QString &wrapCharacter) |
| Splits a text string to a list of separate lines, using a specified wrap character. More...
|
|
static bool | staticWillUseLayer (QgsVectorLayer *layer) |
| called to find out whether the layer is used for labeling More...
|
|
Definition at line 953 of file qgspallabeling.h.
◆ drawLabelCandidateRect()
◆ geometryRequiresPreparation()
Checks whether a geometry requires preparation before registration with PAL.
- Parameters
-
geometry | geometry to prepare |
context | render context |
ct | coordinate transform, or invalid transform if no transformation required |
clipGeometry | geometry to clip features to, if applicable |
- Returns
- true if geometry requires preparation
- Since
- QGIS 2.9
Definition at line 2820 of file qgspallabeling.cpp.
◆ prepareGeometry()
Prepares a geometry for registration with PAL.
Handles reprojection, rotation, clipping, etc.
- Parameters
-
geometry | geometry to prepare |
context | render context |
ct | coordinate transform, or invalid transform if no transformation required |
clipGeometry | geometry to clip features to, if applicable |
- Returns
- prepared geometry
- Since
- QGIS 2.9
Definition at line 2880 of file qgspallabeling.cpp.
◆ splitToGraphemes()
QStringList QgsPalLabeling::splitToGraphemes |
( |
const QString & |
text | ) |
|
|
static |
Splits a text string to a list of graphemes, which are the smallest allowable character divisions in the string.
This accounts for scripts were individual characters are not allowed to be split apart (e.g., Arabic and Indic based scripts)
- Parameters
-
- Returns
- list of graphemes
- Since
- QGIS 2.10
Definition at line 2866 of file qgspallabeling.cpp.
◆ splitToLines()
QStringList QgsPalLabeling::splitToLines |
( |
const QString & |
text, |
|
|
const QString & |
wrapCharacter |
|
) |
| |
|
static |
Splits a text string to a list of separate lines, using a specified wrap character.
The text string will be split on either newline characters or the wrap character.
- Parameters
-
text | text string to split |
wrapCharacter | additional character to wrap on |
- Returns
- list of text split to lines
- Since
- QGIS 2.9
Definition at line 2847 of file qgspallabeling.cpp.
◆ staticWillUseLayer()
called to find out whether the layer is used for labeling
- Since
- QGIS 2.4
Definition at line 2814 of file qgspallabeling.cpp.
◆ QgsDxfExport
◆ QgsPalLayerSettings
◆ QgsVectorLayerLabelProvider
The documentation for this class was generated from the following files: