41 ,
layerTitle( vl->title().isEmpty() ? vl->name() : vl->title() )
47 if ( !layerStyleOverride.isNull() )
96 std::unique_ptr< QgsFeatureRenderer >
renderer;
97 std::unique_ptr<QgsAbstractVectorLayerLabeling>
labeling;
113 static const int sDxfColors[][3] =
373 static const char *DXF_ENCODINGS[][2] =
376 {
"8859_1",
"ISO-8859-1" },
377 {
"8859_2",
"ISO-8859-2" },
378 {
"8859_3",
"ISO-8859-3" },
379 {
"8859_4",
"ISO-8859-4" },
380 {
"8859_5",
"ISO-8859-5" },
381 {
"8859_6",
"ISO-8859-6" },
382 {
"8859_7",
"ISO-8859-7" },
383 {
"8859_8",
"ISO-8859-8" },
384 {
"8859_9",
"ISO-8859-9" },
386 {
"DOS850",
"CP850" },
397 {
"MACINTOSH",
"MacRoman" },
399 {
"KSC5601",
"ksc5601.1987-0" },
401 {
"DOS866",
"CP866" },
402 {
"ANSI_1250",
"CP1250" },
403 {
"ANSI_1251",
"CP1251" },
404 {
"ANSI_1252",
"CP1252" },
405 {
"GB2312",
"GB2312" },
406 {
"ANSI_1253",
"CP1253" },
407 {
"ANSI_1254",
"CP1254" },
408 {
"ANSI_1255",
"CP1255" },
409 {
"ANSI_1256",
"CP1256" },
410 {
"ANSI_1257",
"CP1257" },
411 {
"ANSI_874",
"CP874" },
412 {
"ANSI_932",
"Shift_JIS" },
413 {
"ANSI_936",
"CP936" },
414 {
"ANSI_949",
"CP949" },
415 {
"ANSI_950",
"CP950" },
418 {
"ANSI_1258",
"CP1258" },
422 #define DXF_TRAILER "\
458 ACAD_PLOTSTYLENAME\n\
566 ACDBDICTIONARYWDFLT\n\
586 AcDbDictionaryWithDefault\n\
782 1.000000000000000E+20\n\
784 1.000000000000000E+20\n\
786 1.000000000000000E+20\n\
788 -1.000000000000000E+20\n\
790 -1.000000000000000E+20\n\
792 -1.000000000000000E+20\n\
1054 163.1318914119703\n\
1222 AcDbSavedByObjectVersion\n\
1312 AcDbSavedByObjectVersion\n\
1402 AcDbSavedByObjectVersion\n\
1492 AcDbSavedByObjectVersion\n\
1582 AcDbSavedByObjectVersion\n\
1674 AcDbSavedByObjectVersion\n\
1764 AcDbSavedByObjectVersion\n\
1854 AcDbSavedByObjectVersion\n\
1944 AcDbSavedByObjectVersion\n\
2034 AcDbSavedByObjectVersion\n\
2124 AcDbSavedByObjectVersion\n\
2214 AcDbSavedByObjectVersion\n\
2304 AcDbSavedByObjectVersion\n\
2394 AcDbSavedByObjectVersion\n\
2486 AcDbSavedByObjectVersion\n\
2576 AcDbSavedByObjectVersion\n\
virtual QgsAbstractVectorLayerLabeling * clone() const =0
Returns a new copy of the object.
This class 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.
The QgsLabelingEngine class provides map labeling functionality.
void addProvider(QgsAbstractLabelProvider *provider)
Add provider of label features. Takes ownership of the provider.
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.
Represents a vector layer which manages a vector based data sets.
bool labelsEnabled() const
Returns whether the layer contains labels which are enabled and should be drawn.
QgsFields fields() const FINAL
Returns the list of fields of 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.
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)
std::unique_ptr< QgsFeatureRenderer > renderer
QgsRenderContext renderContext
QgsMapLayerStyleOverride styleOverride
QgsLabelSinkProvider * labelProvider
QgsCoordinateReferenceSystem crs
QgsRuleBasedLabelSinkProvider * ruleBasedLabelProvider
QgsVectorLayerFeatureSource featureSource
std::unique_ptr< QgsAbstractVectorLayerLabeling > labeling