Skip to content
Permalink
Browse files
Dox++
  • Loading branch information
nyalldawson committed Jun 8, 2021
1 parent 044f6a1 commit 5575cba3e32a31daeb63813d1b3e7bcd475ac62c
Showing with 12 additions and 9 deletions.
  1. +12 −9 src/core/dxf/qgsdxfexport.h
@@ -575,23 +575,26 @@ class CORE_EXPORT QgsDxfExport : public QgsLabelSink
void writeText( const QString &layer, const QString &text, pal::LabelPosition *label, const QgsPalLayerSettings &layerSettings, const QgsExpressionContext &expressionContext );

/**
* Writes geometry generator symbol layer
* \param ctx the symbol render context
* Writes geometry generator symbol layer.
*
* \param context the symbol render context, with the reference to the feature set
* \param ct coordinate transform from CRS of feature being added to destination DXF CRS
* \param layer the layer name
* \param symbolLayer the symbollayer to write to the dxf file
* \param symbolLayer the symbol layer to write to the dxf file
* \param allSymbolLayers if TRUE, all symbol layers of the subsymbol are written. If FALSE, only the first one is written
*/
void addGeometryGeneratorSymbolLayer( QgsSymbolRenderContext &ctx, const QgsCoordinateTransform &ct, const QString &layer, QgsSymbolLayer *symbolLayer, bool allSymbolLayers );
void addGeometryGeneratorSymbolLayer( QgsSymbolRenderContext &context, const QgsCoordinateTransform &ct, const QString &layer, QgsSymbolLayer *symbolLayer, bool allSymbolLayers );

/**
* \param ctx
* Writes a feature to the DXF file.
*
* \param context the symbol render context, with the reference to the feature set
* \param ct coordinate transform from CRS of feature being added to destination DXF CRS
* \param layer
* \param symbolLayer
* \param symbol
* \param layer the layer name
* \param symbolLayer the symbol layer to write to the dxf file
* \param symbol symbol associated with feature being added
*/
void addFeature( QgsSymbolRenderContext &ctx, const QgsCoordinateTransform &ct, const QString &layer, const QgsSymbolLayer *symbolLayer, const QgsSymbol *symbol );
void addFeature( QgsSymbolRenderContext &context, const QgsCoordinateTransform &ct, const QString &layer, const QgsSymbolLayer *symbolLayer, const QgsSymbol *symbol );

//returns dxf palette index from symbol layer color
static QColor colorFromSymbolLayer( const QgsSymbolLayer *symbolLayer, QgsSymbolRenderContext &ctx );

0 comments on commit 5575cba

Please sign in to comment.