QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <qgsrulebasedlabeling.h>
Classes | |
class | Rule |
Public Types | |
typedef QList< Rule * > | RuleList |
typedef QMap< Rule *, QgsVectorLayerLabelProvider * > | RuleToProviderMap |
Public Member Functions | |
QgsRuleBasedLabeling (QgsRuleBasedLabeling::Rule *root) | |
Constructs the labeling from given tree of rules (takes ownership) More... | |
QgsRuleBasedLabeling (const QgsRuleBasedLabeling &other) | |
Copy constructor. More... | |
~QgsRuleBasedLabeling () | |
virtual QgsVectorLayerLabelProvider * | provider (QgsVectorLayer *layer) const override |
Factory for label provider implementation. More... | |
Rule * | rootRule () |
const Rule * | rootRule () const |
virtual QDomElement | save (QDomDocument &doc) const override |
Return labeling configuration as XML element. More... | |
virtual QgsPalLayerSettings | settings (QgsVectorLayer *layer, const QString &providerId=QString()) const override |
Get associated label settings. More... | |
virtual QStringList | subProviders () const override |
Get list of sub-providers within the layer's labeling. More... | |
virtual QString | type () const override |
Unique type string of the labeling configuration implementation. More... | |
Public Member Functions inherited from QgsAbstractVectorLayerLabeling | |
virtual | ~QgsAbstractVectorLayerLabeling () |
Static Public Member Functions | |
static QgsRuleBasedLabeling * | create (const QDomElement &element) |
Create the instance from a DOM element with saved configuration. More... | |
Static Public Member Functions inherited from QgsAbstractVectorLayerLabeling | |
static QgsAbstractVectorLayerLabeling * | create (const QDomElement &element) |
Try to create instance of an implementation based on the XML data. More... | |
Protected Attributes | |
Rule * | mRootRule |
Definition at line 40 of file qgsrulebasedlabeling.h.
typedef QList<Rule*> QgsRuleBasedLabeling::RuleList |
Definition at line 43 of file qgsrulebasedlabeling.h.
Definition at line 45 of file qgsrulebasedlabeling.h.
|
explicit |
Constructs the labeling from given tree of rules (takes ownership)
Definition at line 364 of file qgsrulebasedlabeling.cpp.
QgsRuleBasedLabeling::QgsRuleBasedLabeling | ( | const QgsRuleBasedLabeling & | other | ) |
Copy constructor.
Definition at line 370 of file qgsrulebasedlabeling.cpp.
QgsRuleBasedLabeling::~QgsRuleBasedLabeling | ( | ) |
Definition at line 384 of file qgsrulebasedlabeling.cpp.
|
static |
Create the instance from a DOM element with saved configuration.
Definition at line 390 of file qgsrulebasedlabeling.cpp.
|
overridevirtual |
Factory for label provider implementation.
Implements QgsAbstractVectorLayerLabeling.
Definition at line 419 of file qgsrulebasedlabeling.cpp.
|
inline |
Definition at line 301 of file qgsrulebasedlabeling.h.
|
inline |
Definition at line 302 of file qgsrulebasedlabeling.h.
|
overridevirtual |
Return labeling configuration as XML element.
Implements QgsAbstractVectorLayerLabeling.
Definition at line 407 of file qgsrulebasedlabeling.cpp.
|
overridevirtual |
Get 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)
Implements QgsAbstractVectorLayerLabeling.
Definition at line 431 of file qgsrulebasedlabeling.cpp.
|
overridevirtual |
Get list of sub-providers within the layer's labeling.
Reimplemented from QgsAbstractVectorLayerLabeling.
Definition at line 424 of file qgsrulebasedlabeling.cpp.
|
overridevirtual |
Unique type string of the labeling configuration implementation.
Implements QgsAbstractVectorLayerLabeling.
Definition at line 402 of file qgsrulebasedlabeling.cpp.
|
protected |
Definition at line 316 of file qgsrulebasedlabeling.h.