QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Static Public Member Functions | List of all members
QgsLabelingUtils Class Reference

Contains helper utilities for working with QGIS' labeling engine. More...

#include <qgslabelingenginev2.h>

Static Public Member Functions

static QVector< QgsPalLayerSettings::PredefinedPointPositiondecodePredefinedPositionOrder (const QString &positionString)
 Decodes a string to an ordered list of predefined point label positions. More...
 
static QString encodePredefinedPositionOrder (const QVector< QgsPalLayerSettings::PredefinedPointPosition > &positions)
 Encodes an ordered list of predefined point label positions to a string. More...
 

Detailed Description

Contains helper utilities for working with QGIS' labeling engine.

Note
this class is not a part of public API yet. See notes in QgsLabelingEngineV2
added in QGIS 2.14
not available in Python bindings

Definition at line 261 of file qgslabelingenginev2.h.

Member Function Documentation

◆ decodePredefinedPositionOrder()

QVector< QgsPalLayerSettings::PredefinedPointPosition > QgsLabelingUtils::decodePredefinedPositionOrder ( const QString positionString)
static

Decodes a string to an ordered list of predefined point label positions.

Parameters
positionStringencoded string of positions
Returns
decoded list
See also
encodePredefinedPositionOrder()

Definition at line 450 of file qgslabelingenginev2.cpp.

◆ encodePredefinedPositionOrder()

QString QgsLabelingUtils::encodePredefinedPositionOrder ( const QVector< QgsPalLayerSettings::PredefinedPointPosition > &  positions)
static

Encodes an ordered list of predefined point label positions to a string.

Parameters
positionsorder list of positions
Returns
list encoded to string
See also
decodePredefinedPositionOrder()

Definition at line 402 of file qgslabelingenginev2.cpp.


The documentation for this class was generated from the following files: