Abstract base class - its implementations define different approaches to the labeling of a vector layer.
More...
#include <qgsvectorlayerlabeling.h>
Abstract base class - its implementations define different approaches to the labeling of a vector layer.
- Since
- QGIS 3.0
Definition at line 41 of file qgsvectorlayerlabeling.h.
◆ QgsAbstractVectorLayerLabeling()
QgsAbstractVectorLayerLabeling::QgsAbstractVectorLayerLabeling |
( |
| ) |
|
|
default |
◆ ~QgsAbstractVectorLayerLabeling()
virtual QgsAbstractVectorLayerLabeling::~QgsAbstractVectorLayerLabeling |
( |
| ) |
|
|
virtualdefault |
◆ accept()
◆ clone()
◆ create()
◆ defaultSettingsForLayer()
Returns the default layer settings to use for the specified vector layer.
- Since
- QGIS 3.20
Definition at line 49 of file qgsvectorlayerlabeling.cpp.
◆ provider()
◆ requiresAdvancedEffects()
virtual bool QgsAbstractVectorLayerLabeling::requiresAdvancedEffects |
( |
| ) |
const |
|
pure virtual |
Returns true
if drawing labels requires advanced effects like composition modes, which could prevent it being used as an isolated cached image or exported to a vector format.
- Since
- QGIS 3.0
Implemented in QgsRuleBasedLabeling, and QgsVectorLayerSimpleLabeling.
◆ save()
virtual QDomElement QgsAbstractVectorLayerLabeling::save |
( |
QDomDocument & |
doc, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| const |
|
pure virtual |
◆ setSettings()
virtual void QgsAbstractVectorLayerLabeling::setSettings |
( |
QgsPalLayerSettings * |
settings, |
|
|
const QString & |
providerId = QString() |
|
) |
| |
|
pure virtual |
◆ settings()
virtual QgsPalLayerSettings QgsAbstractVectorLayerLabeling::settings |
( |
const QString & |
providerId = QString() | ) |
const |
|
pure virtual |
Gets associated label settings.
In case of multiple sub-providers with different settings, they are identified by their ID (e.g. in case of rule-based labeling, provider ID == rule key)
Implemented in QgsRuleBasedLabeling, and QgsVectorLayerSimpleLabeling.
◆ subProviders()
virtual QStringList QgsAbstractVectorLayerLabeling::subProviders |
( |
| ) |
const |
|
inlinevirtual |
◆ toSld()
virtual void QgsAbstractVectorLayerLabeling::toSld |
( |
QDomNode & |
parent, |
|
|
const QVariantMap & |
props |
|
) |
| const |
|
inlinevirtual |
◆ type()
virtual QString QgsAbstractVectorLayerLabeling::type |
( |
| ) |
const |
|
pure virtual |
◆ writeTextSymbolizer()
void QgsAbstractVectorLayerLabeling::writeTextSymbolizer |
( |
QDomNode & |
parent, |
|
|
QgsPalLayerSettings & |
settings, |
|
|
const QVariantMap & |
props |
|
) |
| const |
|
protectedvirtual |
Writes a TextSymbolizer element contents based on the provided labeling settings.
- Parameters
-
parent | the node that will have the text symbolizer element added to it |
settings | the settings getting translated to a TextSymbolizer |
props | a open ended set of properties that can drive/inform the SLD encoding |
Definition at line 278 of file qgsvectorlayerlabeling.cpp.
The documentation for this class was generated from the following files: