Skip to content

Commit 07113b0

Browse files
committedJun 27, 2016
dxf export: merge doxymentation updates (followup 4c4ad05)
1 parent 4c4ad05 commit 07113b0

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed
 

‎python/core/dxf/qgsdxfexport.sip

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class QgsDxfExport
117117
* Get DXF palette index of nearest entry for given color
118118
* @param color
119119
*/
120-
static int closestColorMatch( QRgb pixel );
120+
static int closestColorMatch( QRgb color );
121121

122122
/**
123123
* Get layer name for feature
@@ -215,7 +215,7 @@ class QgsDxfExport
215215
* @param line polyline
216216
* @param layer layer name to use
217217
* @param lineStyleName line type to use
218-
* @param color coolor to use
218+
* @param color color to use
219219
* @param width line width to use
220220
*/
221221
void writePolyline( const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor& color, double width = -1 );
@@ -225,7 +225,7 @@ class QgsDxfExport
225225
* @param polygon polygon
226226
* @param layer layer name to use
227227
* @param hatchPattern hatchPattern to use
228-
* @param color coolor to use
228+
* @param color color to use
229229
*/
230230
void writePolygon( const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor& color );
231231

@@ -270,4 +270,20 @@ class QgsDxfExport
270270
//! return list of available DXF encodings
271271
static QStringList encodings();
272272

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+
273289
};

‎src/core/dxf/qgsdxfexport.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,20 @@ class CORE_EXPORT QgsDxfExport
290290
//! return list of available DXF encodings
291291
static QStringList encodings();
292292

293+
/** Output the label
294+
* @param layerId id of the layer
295+
* @param context render context
296+
* @param label position of label
297+
* @param settings label settings
298+
* @note not available in Python bindings
299+
*/
293300
void drawLabel( QString layerId, QgsRenderContext& context, pal::LabelPosition* label, const QgsPalLayerSettings &settings );
301+
302+
/** Register name of layer for feature
303+
* @param layerId id of layer
304+
* @param fid id of feature
305+
* @param layer dxf layer of feature
306+
*/
294307
void registerDxfLayer( QString layerId, QgsFeatureId fid, QString layer );
295308

296309
private:

0 commit comments

Comments
 (0)
Please sign in to comment.