QGIS API Documentation  2.12.0-Lyon
qgsvectorlayerlabeling.h
Go to the documentation of this file.
1 #ifndef QGSVECTORLAYERLABELING_H
2 #define QGSVECTORLAYERLABELING_H
3 
4 class QDomDocument;
5 class QDomElement;
6 class QString;
7 
8 class QgsVectorLayer;
10 
17 {
18  public:
19 
21 
23  virtual QString type() const = 0;
24 
26  virtual QgsVectorLayerLabelProvider* provider( QgsVectorLayer* layer ) const = 0;
27 
29  virtual QDomElement save( QDomDocument& doc ) const = 0;
30 
31  // static stuff
32 
34  static QgsAbstractVectorLayerLabeling* create( const QDomElement& element );
35 };
36 
45 {
46  public:
47 
48  virtual QString type() const override;
49  virtual QgsVectorLayerLabelProvider* provider( QgsVectorLayer* layer ) const override;
50  virtual QDomElement save( QDomDocument& doc ) const override;
51 };
52 
53 #endif // QGSVECTORLAYERLABELING_H
The QgsVectorLayerLabelProvider class implements a label provider for vector layers.
virtual QDomElement save(QDomDocument &doc) const =0
Return labeling configuration as XML element.
Abstract base class - its implementations define different approaches to the labeling of a vector lay...
Basic implementation of the labeling interface.
virtual QString type() const =0
Unique type string of the labeling configuration implementation.
Represents a vector layer which manages a vector based data sets.
virtual QgsVectorLayerLabelProvider * provider(QgsVectorLayer *layer) const =0
Factory for label provider implementation.