46 if ( !layerStyleOverride.isNull() )
48 styleOverride.setOverrideStyle( layerStyleOverride );
60 attributes << splitLayerAttribute;
101 std::unique_ptr<QgsAbstractVectorLayerLabeling>
labeling;
117static const int sDxfColors[][3] = {
118 { 255, 255, 255 }, { 255, 0, 0 }, { 255, 255, 0 }, { 0, 255, 0 }, { 0, 255, 255 }, { 0, 0, 255 }, { 255, 0, 255 }, { 0, 0, 0 }, { 128, 128, 128 }, { 192, 192, 192 },
119 { 255, 0, 0 }, { 255, 127, 127 }, { 204, 0, 0 }, { 204, 102, 102 }, { 153, 0, 0 }, { 153, 76, 76 }, { 127, 0, 0 }, { 127, 63, 63 }, { 76, 0, 0 }, { 76, 38, 38 },
120 { 255, 63, 0 }, { 255, 159, 127 }, { 204, 51, 0 }, { 204, 127, 102 }, { 153, 38, 0 }, { 153, 95, 76 }, { 127, 31, 0 }, { 127, 79, 63 }, { 76, 19, 0 }, { 76, 47, 38 },
121 { 255, 127, 0 }, { 255, 191, 127 }, { 204, 102, 0 }, { 204, 153, 102 }, { 153, 76, 0 }, { 153, 114, 76 }, { 127, 63, 0 }, { 127, 95, 63 }, { 76, 38, 0 }, { 76, 57, 38 },
122 { 255, 191, 0 }, { 255, 223, 127 }, { 204, 153, 0 }, { 204, 178, 102 }, { 153, 114, 0 }, { 153, 133, 76 }, { 127, 95, 0 }, { 127, 111, 63 }, { 76, 57, 0 }, { 76, 66, 38 },
123 { 255, 255, 0 }, { 255, 255, 127 }, { 204, 204, 0 }, { 204, 204, 102 }, { 153, 153, 0 }, { 153, 153, 76 }, { 127, 127, 0 }, { 127, 127, 63 }, { 76, 76, 0 }, { 76, 76, 38 },
124 { 191, 255, 0 }, { 223, 255, 127 }, { 153, 204, 0 }, { 178, 204, 102 }, { 114, 153, 0 }, { 133, 153, 76 }, { 95, 127, 0 }, { 111, 127, 63 }, { 57, 76, 0 }, { 66, 76, 38 },
125 { 127, 255, 0 }, { 191, 255, 127 }, { 102, 204, 0 }, { 153, 204, 102 }, { 76, 153, 0 }, { 114, 153, 76 }, { 63, 127, 0 }, { 95, 127, 63 }, { 38, 76, 0 }, { 57, 76, 38 },
126 { 63, 255, 0 }, { 159, 255, 127 }, { 51, 204, 0 }, { 127, 204, 102 }, { 38, 153, 0 }, { 95, 153, 76 }, { 31, 127, 0 }, { 79, 127, 63 }, { 19, 76, 0 }, { 47, 76, 38 },
127 { 0, 255, 0 }, { 127, 255, 127 }, { 0, 204, 0 }, { 102, 204, 102 }, { 0, 153, 0 }, { 76, 153, 76 }, { 0, 127, 0 }, { 63, 127, 63 }, { 0, 76, 0 }, { 38, 76, 38 },
128 { 0, 255, 63 }, { 127, 255, 159 }, { 0, 204, 51 }, { 102, 204, 127 }, { 0, 153, 38 }, { 76, 153, 95 }, { 0, 127, 31 }, { 63, 127, 79 }, { 0, 76, 19 }, { 38, 76, 47 },
129 { 0, 255, 127 }, { 127, 255, 191 }, { 0, 204, 102 }, { 102, 204, 153 }, { 0, 153, 76 }, { 76, 153, 114 }, { 0, 127, 63 }, { 63, 127, 95 }, { 0, 76, 38 }, { 38, 76, 57 },
130 { 0, 255, 191 }, { 127, 255, 223 }, { 0, 204, 153 }, { 102, 204, 178 }, { 0, 153, 114 }, { 76, 153, 133 }, { 0, 127, 95 }, { 63, 127, 111 }, { 0, 76, 57 }, { 38, 76, 66 },
131 { 0, 255, 255 }, { 127, 255, 255 }, { 0, 204, 204 }, { 102, 204, 204 }, { 0, 153, 153 }, { 76, 153, 153 }, { 0, 127, 127 }, { 63, 127, 127 }, { 0, 76, 76 }, { 38, 76, 76 },
132 { 0, 191, 255 }, { 127, 223, 255 }, { 0, 153, 204 }, { 102, 178, 204 }, { 0, 114, 153 }, { 76, 133, 153 }, { 0, 95, 127 }, { 63, 111, 127 }, { 0, 57, 76 }, { 38, 66, 76 },
133 { 0, 127, 255 }, { 127, 191, 255 }, { 0, 102, 204 }, { 102, 153, 204 }, { 0, 76, 153 }, { 76, 114, 153 }, { 0, 63, 127 }, { 63, 95, 127 }, { 0, 38, 76 }, { 38, 57, 76 },
134 { 0, 63, 255 }, { 127, 159, 255 }, { 0, 51, 204 }, { 102, 127, 204 }, { 0, 38, 153 }, { 76, 95, 153 }, { 0, 31, 127 }, { 63, 79, 127 }, { 0, 19, 76 }, { 38, 47, 76 },
135 { 0, 0, 255 }, { 127, 127, 255 }, { 0, 0, 204 }, { 102, 102, 204 }, { 0, 0, 153 }, { 76, 76, 153 }, { 0, 0, 127 }, { 63, 63, 127 }, { 0, 0, 76 }, { 38, 38, 76 },
136 { 63, 0, 255 }, { 159, 127, 255 }, { 51, 0, 204 }, { 127, 102, 204 }, { 38, 0, 153 }, { 95, 76, 153 }, { 31, 0, 127 }, { 79, 63, 127 }, { 19, 0, 76 }, { 47, 38, 76 },
137 { 127, 0, 255 }, { 191, 127, 255 }, { 102, 0, 204 }, { 153, 102, 204 }, { 76, 0, 153 }, { 114, 76, 153 }, { 63, 0, 127 }, { 95, 63, 127 }, { 38, 0, 76 }, { 57, 38, 76 },
138 { 191, 0, 255 }, { 223, 127, 255 }, { 153, 0, 204 }, { 178, 102, 204 }, { 114, 0, 153 }, { 133, 76, 153 }, { 95, 0, 127 }, { 111, 63, 127 }, { 57, 0, 76 }, { 66, 38, 76 },
139 { 255, 0, 255 }, { 255, 127, 255 }, { 204, 0, 204 }, { 204, 102, 204 }, { 153, 0, 153 }, { 153, 76, 153 }, { 127, 0, 127 }, { 127, 63, 127 }, { 76, 0, 76 }, { 76, 38, 76 },
140 { 255, 0, 191 }, { 255, 127, 223 }, { 204, 0, 153 }, { 204, 102, 178 }, { 153, 0, 114 }, { 153, 76, 133 }, { 127, 0, 95 }, { 127, 63, 111 }, { 76, 0, 57 }, { 76, 38, 66 },
141 { 255, 0, 127 }, { 255, 127, 191 }, { 204, 0, 102 }, { 204, 102, 153 }, { 153, 0, 76 }, { 153, 76, 114 }, { 127, 0, 63 }, { 127, 63, 95 }, { 76, 0, 38 }, { 76, 38, 57 },
142 { 255, 0, 63 }, { 255, 127, 159 }, { 204, 0, 51 }, { 204, 102, 127 }, { 153, 0, 38 }, { 153, 76, 95 }, { 127, 0, 31 }, { 127, 63, 79 }, { 76, 0, 19 }, { 76, 38, 47 },
143 { 51, 51, 51 }, { 91, 91, 91 }, { 132, 132, 132 }, { 173, 173, 173 }, { 214, 214, 214 }, { 255, 255, 255 },
146static const char *DXF_ENCODINGS[][2] = {
148 {
"8859_1",
"ISO-8859-1" },
149 {
"8859_2",
"ISO-8859-2" },
150 {
"8859_3",
"ISO-8859-3" },
151 {
"8859_4",
"ISO-8859-4" },
152 {
"8859_5",
"ISO-8859-5" },
153 {
"8859_6",
"ISO-8859-6" },
154 {
"8859_7",
"ISO-8859-7" },
155 {
"8859_8",
"ISO-8859-8" },
156 {
"8859_9",
"ISO-8859-9" },
158 {
"DOS850",
"CP850" },
169 {
"MACINTOSH",
"MacRoman" },
171 {
"KSC5601",
"ksc5601.1987-0" },
173 {
"DOS866",
"CP866" },
174 {
"ANSI_1250",
"CP1250" },
175 {
"ANSI_1251",
"CP1251" },
176 {
"ANSI_1252",
"CP1252" },
177 {
"GB2312",
"GB2312" },
178 {
"ANSI_1253",
"CP1253" },
179 {
"ANSI_1254",
"CP1254" },
180 {
"ANSI_1255",
"CP1255" },
181 {
"ANSI_1256",
"CP1256" },
182 {
"ANSI_1257",
"CP1257" },
183 {
"ANSI_874",
"CP874" },
184 {
"ANSI_932",
"Shift_JIS" },
185 {
"ANSI_936",
"CP936" },
186 {
"ANSI_949",
"CP949" },
187 {
"ANSI_949",
"ms949" },
188 {
"ANSI_950",
"CP950" },
191 {
"ANSI_1258",
"CP1258" },
340ACDBDICTIONARYWDFLT\n\
360AcDbDictionaryWithDefault\n\
5561.000000000000000E+20\n\
5581.000000000000000E+20\n\
5601.000000000000000E+20\n\
562-1.000000000000000E+20\n\
564-1.000000000000000E+20\n\
566-1.000000000000000E+20\n\
996AcDbSavedByObjectVersion\n\
1086AcDbSavedByObjectVersion\n\
1176AcDbSavedByObjectVersion\n\
1266AcDbSavedByObjectVersion\n\
1356AcDbSavedByObjectVersion\n\
1448AcDbSavedByObjectVersion\n\
1538AcDbSavedByObjectVersion\n\
1628AcDbSavedByObjectVersion\n\
1718AcDbSavedByObjectVersion\n\
1808AcDbSavedByObjectVersion\n\
1898AcDbSavedByObjectVersion\n\
1988AcDbSavedByObjectVersion\n\
2078AcDbSavedByObjectVersion\n\
2168AcDbSavedByObjectVersion\n\
2260AcDbSavedByObjectVersion\n\
2350AcDbSavedByObjectVersion\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.
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.
Contains settings for how a map layer will be labeled.
Contains information about the context of a rendering operation.
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).
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
QString splitLayerAttribute
QSet< QString > attributes
std::unique_ptr< QgsFeatureRenderer > renderer
QgsRenderContext renderContext
QgsMapLayerStyleOverride styleOverride
QgsLabelSinkProvider * labelProvider
QgsFeatureIds selectedFeatureIds
QgsCoordinateReferenceSystem crs
QgsRuleBasedLabelSinkProvider * ruleBasedLabelProvider
QgsVectorLayerFeatureSource featureSource
std::unique_ptr< QgsAbstractVectorLayerLabeling > labeling
DxfLayerJob(QgsVectorLayer *vl, const QString &layerStyleOverride, QgsRenderContext &context, QgsDxfExport *dxfExport, const QString &splitLayerAttribute, const QString &layerDerivedName)