46      if ( !layerStyleOverride.isNull() )
 
 
  101    std::unique_ptr<QgsAbstractVectorLayerLabeling> 
labeling;
 
 
  117static const int sDxfColors[][3] =
 
  377static const char *DXF_ENCODINGS[][2] =
 
  380  { 
"8859_1", 
"ISO-8859-1" },
 
  381  { 
"8859_2", 
"ISO-8859-2" },
 
  382  { 
"8859_3", 
"ISO-8859-3" },
 
  383  { 
"8859_4", 
"ISO-8859-4" },
 
  384  { 
"8859_5", 
"ISO-8859-5" },
 
  385  { 
"8859_6", 
"ISO-8859-6" },
 
  386  { 
"8859_7", 
"ISO-8859-7" },
 
  387  { 
"8859_8", 
"ISO-8859-8" },
 
  388  { 
"8859_9", 
"ISO-8859-9" },
 
  390  { 
"DOS850", 
"CP850" },
 
  401  { 
"MACINTOSH", 
"MacRoman" },
 
  403  { 
"KSC5601", 
"ksc5601.1987-0" },
 
  405  { 
"DOS866", 
"CP866" },
 
  406  { 
"ANSI_1250", 
"CP1250" },
 
  407  { 
"ANSI_1251", 
"CP1251" },
 
  408  { 
"ANSI_1252", 
"CP1252" },
 
  409  { 
"GB2312", 
"GB2312" },
 
  410  { 
"ANSI_1253", 
"CP1253" },
 
  411  { 
"ANSI_1254", 
"CP1254" },
 
  412  { 
"ANSI_1255", 
"CP1255" },
 
  413  { 
"ANSI_1256", 
"CP1256" },
 
  414  { 
"ANSI_1257", 
"CP1257" },
 
  415  { 
"ANSI_874", 
"CP874" },
 
  416  { 
"ANSI_932", 
"Shift_JIS" },
 
  417  { 
"ANSI_936", 
"CP936" },
 
  418  { 
"ANSI_949", 
"CP949" },
 
  419  { 
"ANSI_949", 
"ms949" },
 
  420  { 
"ANSI_950", 
"CP950" },
 
  423  { 
"ANSI_1258", 
"CP1258" },
 
  427#define DXF_TRAILER "\ 
  571ACDBDICTIONARYWDFLT\n\ 
  591AcDbDictionaryWithDefault\n\ 
  7871.000000000000000E+20\n\ 
  7891.000000000000000E+20\n\ 
  7911.000000000000000E+20\n\ 
  793-1.000000000000000E+20\n\ 
  795-1.000000000000000E+20\n\ 
  797-1.000000000000000E+20\n\ 
 1227AcDbSavedByObjectVersion\n\ 
 1317AcDbSavedByObjectVersion\n\ 
 1407AcDbSavedByObjectVersion\n\ 
 1497AcDbSavedByObjectVersion\n\ 
 1587AcDbSavedByObjectVersion\n\ 
 1679AcDbSavedByObjectVersion\n\ 
 1769AcDbSavedByObjectVersion\n\ 
 1859AcDbSavedByObjectVersion\n\ 
 1949AcDbSavedByObjectVersion\n\ 
 2039AcDbSavedByObjectVersion\n\ 
 2129AcDbSavedByObjectVersion\n\ 
 2219AcDbSavedByObjectVersion\n\ 
 2309AcDbSavedByObjectVersion\n\ 
 2399AcDbSavedByObjectVersion\n\ 
 2491AcDbSavedByObjectVersion\n\ 
 2581AcDbSavedByObjectVersion\n\ 
virtual QgsAbstractVectorLayerLabeling * clone() const =0
Returns a new copy of the object.
 
Represents a coordinate reference system (CRS).
 
Exports QGIS layers to the DXF format.
 
static QgsExpressionContextScope * layerScope(const QgsMapLayer *layer)
Creates a new scope which contains variables and functions relating to a QgsMapLayer.
 
void appendScope(QgsExpressionContextScope *scope)
Appends a scope to the end of the context.
 
virtual QgsFeatureRenderer * clone() const =0
Create a deep copy of this renderer.
 
Container of fields for a vector layer.
 
Implements a derived label provider for use with QgsLabelSink.
 
Provides map labeling functionality.
 
QString addProvider(QgsAbstractLabelProvider *provider)
Adds a provider of label features.
 
void removeProvider(QgsAbstractLabelProvider *provider)
Remove provider if the provider's initialization failed. Provider instance is deleted.
 
Restore overridden layer style on destruction.
 
void setOverrideStyle(const QString &style)
Temporarily apply a different style to the layer.
 
Contains settings for how a map layer will be labeled.
 
Contains information about the context of a rendering operation.
 
QgsExpressionContext & expressionContext()
Gets the expression context.
 
QgsLabelingEngine * labelingEngine() const
Gets access to new labeling engine (may be nullptr).
 
bool prepare(QgsRenderContext &context, QSet< QString > &attributeNames) override
Prepare for registration of features.
 
Implements a derived label provider for rule based labels for use with QgsLabelSink.
 
Rule based labeling for a vector layer.
 
Partial snapshot of vector layer's state (only the members necessary for access to features).
 
virtual bool prepare(QgsRenderContext &context, QSet< QString > &attributeNames)
Prepare for registration of features.
 
void startRender(QgsRenderContext &context) override
To be called before rendering of labels begins.
 
Represents a vector layer which manages a vector based dataset.
 
bool labelsEnabled() const
Returns whether the layer contains labels which are enabled and should be drawn.
 
Q_INVOKABLE const QgsFeatureIds & selectedFeatureIds() const
Returns a list of the selected features IDs in this layer.
 
const QgsAbstractVectorLayerLabeling * labeling() const
Access to const labeling configuration.
 
QgsFeatureRenderer * renderer()
Returns the feature renderer used for rendering the features in the layer in 2D map views.
 
QSet< QgsFeatureId > QgsFeatureIds
 
Holds information about each layer in a DXF job.
 
QString splitLayerAttribute
 
QSet< QString > attributes
 
DxfLayerJob(QgsVectorLayer *vl, const QString &layerStyleOverride, QgsRenderContext &renderContext, QgsDxfExport *dxfExport, const QString &splitLayerAttribute, const QString &layerDerivedName)
 
std::unique_ptr< QgsFeatureRenderer > renderer
 
QgsRenderContext renderContext
 
QgsMapLayerStyleOverride styleOverride
 
QgsLabelSinkProvider * labelProvider
 
QgsFeatureIds selectedFeatureIds
 
QgsCoordinateReferenceSystem crs
 
QgsRuleBasedLabelSinkProvider * ruleBasedLabelProvider
 
QgsVectorLayerFeatureSource featureSource
 
std::unique_ptr< QgsAbstractVectorLayerLabeling > labeling