@@ -40,30 +40,49 @@ class QgsDxfLabelProvider : public QgsVectorLayerLabelProvider
4040 explicit QgsDxfLabelProvider ( QgsVectorLayer* layer, QgsDxfExport* dxf, const QgsPalLayerSettings *settings );
4141
4242 // ! re-implementation that writes to DXF file instead of drawing with QPainter
43+ // @param context render context
44+ // @param label label
4345 void drawLabel ( QgsRenderContext& context, pal::LabelPosition* label ) const override ;
4446
4547 // ! registration method that keeps track of DXF layer names of individual features
48+ // @param feature feature
49+ // @param context render context
50+ // @param dxfLayerName name of dxf layer
4651 void registerDxfFeature ( QgsFeature& feature, QgsRenderContext &context, const QString& dxfLayerName );
4752
4853 protected:
4954 // ! pointer to parent DXF export where this instance is used
5055 QgsDxfExport* mDxfExport ;
5156};
5257
58+ /* * Implements a derived label provider for rule based labels internally used
59+ * for DXF export
60+ *
61+ * Internal class, not in public API. Added in QGIS 2.15
62+ * @note not available in Python bindings
63+ */
5364class QgsDxfRuleBasedLabelProvider : public QgsRuleBasedLabelProvider
5465{
5566 public:
5667 // ! construct the provider
5768 explicit QgsDxfRuleBasedLabelProvider ( const QgsRuleBasedLabeling &rules, QgsVectorLayer* layer, QgsDxfExport* dxf );
5869
70+ // ! reinitialize the subproviders with QgsDxfLabelProviders
71+ // @param layer layer
5972 void reinit ( QgsVectorLayer* layer );
6073
6174 // ! re-implementation that writes to DXF file instead of drawing with QPainter
75+ // @param context render context
76+ // @param label label
6277 void drawLabel ( QgsRenderContext &context, pal::LabelPosition *label ) const override ;
6378
6479 // ! registration method that keeps track of DXF layer names of individual features
80+ // @param feature feature
81+ // @param context render context
82+ // @param dxfLayerName name of dxf layer
6583 void registerDxfFeature ( QgsFeature& feature, QgsRenderContext &context, const QString& dxfLayerName );
6684
85+ // ! create QgsDxfLabelProvider
6786 virtual QgsVectorLayerLabelProvider *createProvider ( QgsVectorLayer *layer, bool withFeatureLoop, const QgsPalLayerSettings *settings ) override ;
6887
6988 protected:
0 commit comments