QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsDxfExport::DxfLayer Struct Reference

Layers and optional attribute index to split into multiple layers using attribute value as layer name. More...

#include <qgsdxfexport.h>

Public Member Functions

 DxfLayer (QgsVectorLayer *vl, int layerOutputAttributeIndex=-1, bool buildDDBlocks=DEFAULT_DXF_DATA_DEFINED_BLOCKS, int ddBlocksMaxNumberOfClasses=-1, QString overriddenName=QString())
 
bool buildDataDefinedBlocks () const
 Flag if data defined point block symbols should be created.
 
int dataDefinedBlocksMaximumNumberOfClasses () const
 Returns the maximum number of data defined symbol classes for which blocks are created.
 
QgsVectorLayerlayer () const
 Returns the layer.
 
int layerOutputAttributeIndex () const
 Returns the attribute index used to split into multiple layers.
 
QString overriddenName () const
 Returns the overridden layer name to be used in the exported DXF.
 
QString splitLayerAttribute () const
 If the split layer attribute is set, the vector layer will be split into several dxf layers, one per each unique value.
 

Detailed Description

Layers and optional attribute index to split into multiple layers using attribute value as layer name.

Definition at line 77 of file qgsdxfexport.h.

Constructor & Destructor Documentation

◆ DxfLayer()

QgsDxfExport::DxfLayer::DxfLayer ( QgsVectorLayer vl,
int  layerOutputAttributeIndex = -1,
bool  buildDDBlocks = DEFAULT_DXF_DATA_DEFINED_BLOCKS,
int  ddBlocksMaxNumberOfClasses = -1,
QString  overriddenName = QString() 
)
inline

Definition at line 79 of file qgsdxfexport.h.

Member Function Documentation

◆ buildDataDefinedBlocks()

bool QgsDxfExport::DxfLayer::buildDataDefinedBlocks ( ) const
inline

Flag if data defined point block symbols should be created.

Default is false

Returns
True if data defined point block symbols should be created
Since
QGIS 3.38

Definition at line 110 of file qgsdxfexport.h.

◆ dataDefinedBlocksMaximumNumberOfClasses()

int QgsDxfExport::DxfLayer::dataDefinedBlocksMaximumNumberOfClasses ( ) const
inline

Returns the maximum number of data defined symbol classes for which blocks are created.

Returns -1 if there is no such limitation

Returns
Since
QGIS 3.38

Definition at line 117 of file qgsdxfexport.h.

◆ layer()

QgsVectorLayer * QgsDxfExport::DxfLayer::layer ( ) const
inline

Returns the layer.

Definition at line 88 of file qgsdxfexport.h.

◆ layerOutputAttributeIndex()

int QgsDxfExport::DxfLayer::layerOutputAttributeIndex ( ) const
inline

Returns the attribute index used to split into multiple layers.

The attribute value is used for layer names.

See also
splitLayerAttribute

Definition at line 95 of file qgsdxfexport.h.

◆ overriddenName()

QString QgsDxfExport::DxfLayer::overriddenName ( ) const
inline

Returns the overridden layer name to be used in the exported DXF.

Since
QGIS 3.38

Definition at line 123 of file qgsdxfexport.h.

◆ splitLayerAttribute()

QString QgsDxfExport::DxfLayer::splitLayerAttribute ( ) const

If the split layer attribute is set, the vector layer will be split into several dxf layers, one per each unique value.

Since
QGIS 3.12

Definition at line 2588 of file qgsdxfexport.cpp.


The documentation for this struct was generated from the following files: