17#ifndef QGSMESHLAYERLABELING_H 
   18#define QGSMESHLAYERLABELING_H 
   53    virtual QString 
type() 
const = 0;
 
   68    virtual QStringList 
subProviders()
 const { 
return QStringList( QString() ); }
 
   97    virtual void multiplyOpacity( 
double opacityFactor ) { Q_UNUSED( opacityFactor ); };
 
  108    virtual void toSld( QDomNode &parent, 
const QVariantMap &props )
 const 
  112      QDomDocument doc = parent.ownerDocument();
 
  113      parent.appendChild( doc.createComment( QStringLiteral( 
"SE Export for %1 not implemented yet" ).arg( type() ) ) );
 
 
 
  155    QString type() 
const override;
 
  171    bool requiresAdvancedEffects() 
const override;
 
  172    void multiplyOpacity( 
double opacityFactor ) 
override;
 
  177    std::unique_ptr<QgsPalLayerSettings> mSettings;
 
  178    bool mLabelFaces = 
false;
 
 
Abstract base class - its implementations define different approaches to the labeling of a mesh layer...
 
QgsAbstractMeshLayerLabeling()=default
Default constructor.
 
virtual QgsMeshLayerLabelProvider * provider(QgsMeshLayer *layer) const
Factory for label provider implementation.
 
virtual QStringList subProviders() const
Gets list of sub-providers within the layer's labeling.
 
virtual void toSld(QDomNode &parent, const QVariantMap &props) const
Writes the SE 1.1 TextSymbolizer element based on the current layer labeling settings.
 
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Returns labeling configuration as XML element.
 
virtual void multiplyOpacity(double opacityFactor)
Multiply opacity by opacityFactor.
 
virtual QgsAbstractMeshLayerLabeling * clone() const =0
Returns a new copy of the object.
 
virtual QString type() const =0
Unique type string of the labeling configuration implementation.
 
virtual bool requiresAdvancedEffects() const =0
Returns true if drawing labels requires advanced effects like composition modes, which could prevent ...
 
virtual void setSettings(QgsPalLayerSettings *settings, const QString &providerId=QString())=0
Set pal settings for a specific provider (takes ownership).
 
virtual QgsPalLayerSettings settings(const QString &providerId=QString()) const =0
Gets associated label settings.
 
virtual ~QgsAbstractMeshLayerLabeling()=default
 
The QgsMeshLayerLabelProvider class implements a label provider for mesh layers.
 
Basic implementation of the labeling interface for mesh layer.
 
Represents a mesh layer supporting display of data on structured or unstructured meshes.
 
Contains settings for how a map layer will be labeled.
 
The class is used as a container of context for various read/write operations on other objects.
 
An interface for classes which can visit style entity (e.g.