18#ifndef QGSMESHLAYERLABELPROVIDER_H 
   19#define QGSMESHLAYERLABELPROVIDER_H 
   47                                        const QString &providerId,
 
   49                                        const QString &layerName = QString(),
 
   50                                        bool labelFaces = 
false );
 
   68    virtual bool prepare( 
QgsRenderContext &context, QSet<QString> &attributeNames );
 
  104    bool mLabelFaces = 
false;
 
  113    std::unique_ptr<QgsVectorLayerLabelProvider> mVectorLabelProvider;
 
  115    friend class TestQgsLabelingEngine;
 
 
TextComponent
Text components.
 
An abstract interface class for label providers.
 
virtual QList< QgsLabelFeature * > labelFeatures(QgsRenderContext &context)=0
Returns list of label features (they are owned by the provider and thus deleted on its destruction)
 
virtual void stopRender(QgsRenderContext &context)
To be called after rendering is complete.
 
virtual void drawLabel(QgsRenderContext &context, pal::LabelPosition *label) const =0
Draw this label at the position determined by the labeling engine.
 
virtual void startRender(QgsRenderContext &context)
To be called before rendering of labels begins.
 
Represents a coordinate reference system (CRS).
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
A geometry is the spatial representation of a feature.
 
Implements a label provider for mesh layers.
 
QgsCoordinateReferenceSystem mCrs
Layer's CRS.
 
bool labelFaces() const
Returns false if labeling mesh vertices, true if labeling mesh faces.
 
void drawLabelPrivate(pal::LabelPosition *label, QgsRenderContext &context, QgsPalLayerSettings &tmpLyr, Qgis::TextComponent drawType, double dpiRatio=1.0) const
Internal label drawing method.
 
QList< QgsLabelFeature * > mLabels
List of generated.
 
QgsPalLayerSettings mSettings
Layer's labeling configuration.
 
Represents a mesh layer supporting display of data on structured or unstructured meshes.
 
Contains settings for how a map layer will be labeled.
 
Contains information about the context of a rendering operation.
 
Abstract base class for all rendered symbols.
 
LabelPosition is a candidate feature label position.