QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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\
void addProvider(QgsAbstractLabelProvider *provider)
Add provider of label features. Takes ownership of the provider.
std::unique_ptr< QgsAbstractVectorLayerLabeling > labeling
QSet< QString > attributes
QgsExpressionContext & expressionContext()
Gets the expression context.
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.
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
This class represents a coordinate reference system (CRS).
QgsMapLayerStyleOverride styleOverride
The QgsLabelingEngine class provides map labeling functionality.
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 renderer.