Skip to content
Permalink
Browse files
Dox++
  • Loading branch information
nyalldawson committed Jun 7, 2021
1 parent 65c02e0 commit ef526bbca57f3b8023754dbe3de81d252069d4ce
Showing with 12 additions and 9 deletions.
  1. +12 −9 src/core/dxf/qgsdxfexport.h
@@ -583,23 +583,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 ef526bb

Please sign in to comment.