Skip to content
Permalink
Browse files

dxf export: merge doxymentation updates (followup 4c4ad05)

  • Loading branch information
jef-n committed Jun 27, 2016
1 parent 4c4ad05 commit 07113b0bf18c266e377f8c89873703e02a7ec28c
Showing with 32 additions and 3 deletions.
  1. +19 −3 python/core/dxf/qgsdxfexport.sip
  2. +13 −0 src/core/dxf/qgsdxfexport.h
@@ -117,7 +117,7 @@ class QgsDxfExport
* Get DXF palette index of nearest entry for given color
* @param color
*/
static int closestColorMatch( QRgb pixel );
static int closestColorMatch( QRgb color );

/**
* Get layer name for feature
@@ -215,7 +215,7 @@ class QgsDxfExport
* @param line polyline
* @param layer layer name to use
* @param lineStyleName line type to use
* @param color coolor to use
* @param color color to use
* @param width line width to use
*/
void writePolyline( const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor& color, double width = -1 );
@@ -225,7 +225,7 @@ class QgsDxfExport
* @param polygon polygon
* @param layer layer name to use
* @param hatchPattern hatchPattern to use
* @param color coolor to use
* @param color color to use
*/
void writePolygon( const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor& color );

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

/** Output the label
* @param layerId id of the layer
* @param context render context
* @param label position of label
* @param settings label settings
* @note not available in Python bindings
*/
// void drawLabel( QString layerId, QgsRenderContext& context, pal::LabelPosition* label, const QgsPalLayerSettings &settings );

/** Register name of layer for feature
* @param layerId id of layer
* @param fid id of feature
* @param layer dxf layer of feature
*/
void registerDxfLayer( QString layerId, QgsFeatureId fid, QString layer );

};
@@ -290,7 +290,20 @@ class CORE_EXPORT QgsDxfExport
//! return list of available DXF encodings
static QStringList encodings();

/** Output the label
* @param layerId id of the layer
* @param context render context
* @param label position of label
* @param settings label settings
* @note not available in Python bindings
*/
void drawLabel( QString layerId, QgsRenderContext& context, pal::LabelPosition* label, const QgsPalLayerSettings &settings );

/** Register name of layer for feature
* @param layerId id of layer
* @param fid id of feature
* @param layer dxf layer of feature
*/
void registerDxfLayer( QString layerId, QgsFeatureId fid, QString layer );

private:

0 comments on commit 07113b0

Please sign in to comment.
You can’t perform that action at this time.