File tree Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,19 @@ class QgsDxfExport
23
23
24
24
struct DxfLayer
25
25
{
26
- DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );
26
+ DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );
27
27
28
- QgsVectorLayer *layer() const;
29
- int layerOutputAttributeIndex() const;
28
+ QgsVectorLayer *layer() const;
29
+ %Docstring
30
+ Return the layer
31
+ %End
32
+
33
+ int layerOutputAttributeIndex() const;
34
+ %Docstring
35
+ Return the attribute index used to split into multiple layers.
36
+ The attribute value is used for layer names.
37
+ %End
30
38
31
- QgsVectorLayer *mLayer;
32
- int mLayerOutputAttributeIndex;
33
39
};
34
40
35
41
enum SymbologyExport
Original file line number Diff line number Diff line change @@ -58,16 +58,23 @@ class CORE_EXPORT QgsDxfExport
58
58
*/
59
59
struct DxfLayer
60
60
{
61
- DxfLayer ( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
62
- : mLayer ( vl )
63
- , mLayerOutputAttributeIndex ( layerOutputAttributeIndex )
64
- {}
65
-
66
- QgsVectorLayer *layer () const {return mLayer ;}
67
- int layerOutputAttributeIndex () const {return mLayerOutputAttributeIndex ;}
68
-
69
- QgsVectorLayer *mLayer ;
70
- int mLayerOutputAttributeIndex ;
61
+ DxfLayer ( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
62
+ : mLayer ( vl )
63
+ , mLayerOutputAttributeIndex ( layerOutputAttributeIndex )
64
+ {}
65
+
66
+ // ! Return the layer
67
+ QgsVectorLayer *layer () const {return mLayer ;}
68
+
69
+ /* *
70
+ * Return the attribute index used to split into multiple layers.
71
+ * The attribute value is used for layer names.
72
+ */
73
+ int layerOutputAttributeIndex () const {return mLayerOutputAttributeIndex ;}
74
+
75
+ private:
76
+ QgsVectorLayer *mLayer = nullptr ;
77
+ int mLayerOutputAttributeIndex = -1 ;
71
78
};
72
79
73
80
enum SymbologyExport
You can’t perform that action at this time.
0 commit comments