@@ -117,7 +117,7 @@ class QgsDxfExport
117
117
* Get DXF palette index of nearest entry for given color
118
118
* @param color
119
119
*/
120
- static int closestColorMatch( QRgb pixel );
120
+ static int closestColorMatch( QRgb color );
121
121
122
122
/**
123
123
* Get layer name for feature
@@ -215,7 +215,7 @@ class QgsDxfExport
215
215
* @param line polyline
216
216
* @param layer layer name to use
217
217
* @param lineStyleName line type to use
218
- * @param color coolor to use
218
+ * @param color color to use
219
219
* @param width line width to use
220
220
*/
221
221
void writePolyline( const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor& color, double width = -1 );
@@ -225,7 +225,7 @@ class QgsDxfExport
225
225
* @param polygon polygon
226
226
* @param layer layer name to use
227
227
* @param hatchPattern hatchPattern to use
228
- * @param color coolor to use
228
+ * @param color color to use
229
229
*/
230
230
void writePolygon( const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor& color );
231
231
@@ -270,4 +270,20 @@ class QgsDxfExport
270
270
//! return list of available DXF encodings
271
271
static QStringList encodings();
272
272
273
+ /** Output the label
274
+ * @param layerId id of the layer
275
+ * @param context render context
276
+ * @param label position of label
277
+ * @param settings label settings
278
+ * @note not available in Python bindings
279
+ */
280
+ // void drawLabel( QString layerId, QgsRenderContext& context, pal::LabelPosition* label, const QgsPalLayerSettings &settings );
281
+
282
+ /** Register name of layer for feature
283
+ * @param layerId id of layer
284
+ * @param fid id of feature
285
+ * @param layer dxf layer of feature
286
+ */
287
+ void registerDxfLayer( QString layerId, QgsFeatureId fid, QString layer );
288
+
273
289
};
0 commit comments