QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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_949",
"ms949" },
416 {
"ANSI_950",
"CP950" },
419 {
"ANSI_1258",
"CP1258" },
423 #define DXF_TRAILER "\
459 ACAD_PLOTSTYLENAME\n\
567 ACDBDICTIONARYWDFLT\n\
587 AcDbDictionaryWithDefault\n\
783 1.000000000000000E+20\n\
785 1.000000000000000E+20\n\
787 1.000000000000000E+20\n\
789 -1.000000000000000E+20\n\
791 -1.000000000000000E+20\n\
793 -1.000000000000000E+20\n\
1055 163.1318914119703\n\
1223 AcDbSavedByObjectVersion\n\
1313 AcDbSavedByObjectVersion\n\
1403 AcDbSavedByObjectVersion\n\
1493 AcDbSavedByObjectVersion\n\
1583 AcDbSavedByObjectVersion\n\
1675 AcDbSavedByObjectVersion\n\
1765 AcDbSavedByObjectVersion\n\
1855 AcDbSavedByObjectVersion\n\
1945 AcDbSavedByObjectVersion\n\
2035 AcDbSavedByObjectVersion\n\
2125 AcDbSavedByObjectVersion\n\
2215 AcDbSavedByObjectVersion\n\
2305 AcDbSavedByObjectVersion\n\
2395 AcDbSavedByObjectVersion\n\
2487 AcDbSavedByObjectVersion\n\
2577 AcDbSavedByObjectVersion\n\
QgsCoordinateReferenceSystem crs
void addProvider(QgsAbstractLabelProvider *provider)
Add provider of label features. Takes ownership of the provider.
std::unique_ptr< QgsAbstractVectorLayerLabeling > labeling
Exports QGIS layers to the DXF format.
QSet< QString > attributes
QgsExpressionContext & expressionContext()
Gets the expression context.
Contains settings for how a map layer will be labeled.
void removeProvider(QgsAbstractLabelProvider *provider)
Remove provider if the provider's initialization failed. Provider instance is deleted.
Implements a derived label provider for rule based labels for use with QgsLabelSink.
Container of fields for a vector layer.
static QgsExpressionContextScope * layerScope(const QgsMapLayer *layer)
Creates a new scope which contains variables and functions relating to a QgsMapLayer.
Contains information about the context of a rendering operation.
Restore overridden layer style on destruction.
Rule based labeling for a vector layer.
QString splitLayerAttribute
QgsFields fields() const FINAL
Returns the list of fields of this layer.
QgsRuleBasedLabelSinkProvider * ruleBasedLabelProvider
Holds information about each layer in a DXF job.
bool prepare(QgsRenderContext &context, QSet< QString > &attributeNames) override
Prepare for registration of features.
virtual QgsFeatureRenderer * clone() const =0
Create a deep copy of this renderer.
const QgsAbstractVectorLayerLabeling * labeling() const
Access to const labeling configuration.
QgsCoordinateReferenceSystem crs
QgsLabelSinkProvider * labelProvider
QgsVectorLayerFeatureSource featureSource
QString title() const
Returns the title of the layer used by QGIS Server in GetCapabilities request.
This class represents a coordinate reference system (CRS).
QgsMapLayerStyleOverride styleOverride
The QgsLabelingEngine class provides map labeling functionality. The input for the engine is a list o...
void appendScope(QgsExpressionContextScope *scope)
Appends a scope to the end of the context.
QgsLabelingEngine * labelingEngine() const
Gets access to new labeling engine (may be nullptr).
DxfLayerJob(QgsVectorLayer *vl, const QString &layerStyleOverride, QgsRenderContext &renderContext, QgsDxfExport *dxfExport, const QString &splitLayerAttribute)
Represents a vector layer which manages a vector based data sets.
Implements a derived label provider for use with QgsLabelSink.
Partial snapshot of vector layer's state (only the members necessary for access to features)
std::unique_ptr< QgsFeatureRenderer > renderer
void setOverrideStyle(const QString &style)
Temporarily apply a different style to the layer.
virtual bool prepare(QgsRenderContext &context, QSet< QString > &attributeNames)
Prepare for registration of features.
QgsRenderContext renderContext
virtual QgsAbstractVectorLayerLabeling * clone() const =0
Returns a new copy of the object.
bool labelsEnabled() const
Returns whether the layer contains labels which are enabled and should be drawn.
QgsFeatureRenderer * renderer()
Returns the feature renderer used for rendering the features in the layer in 2D map views.