forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 9
/
qgsabstractvectorlayer3drenderer.sip.in
122 lines (98 loc) · 3.77 KB
/
qgsabstractvectorlayer3drenderer.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgsabstractvectorlayer3drenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsVectorLayer3DTilingSettings
{
%Docstring
This class defines configuration of how a vector layer gets tiled for 3D rendering.
Zoom levels count tells how deep will be the quadtree and thus how many tiles will
be generated ( 4 ^ (count-1) ). So for example, for count=1 there will be just
a single tile for the whole layer, for count=3 there will be 16 tiles.
.. versionadded:: 3.12
%End
%TypeHeaderCode
#include "qgsabstractvectorlayer3drenderer.h"
%End
public:
int zoomLevelsCount() const;
%Docstring
Returns number of zoom levels. One zoom level means there will be one tile.
Every extra zoom level multiplies number of tiles by four. For example, three
zoom levels will produce 16 tiles at the highest zoom level. It is therefore
recommended to keep the number of zoom levels low to prevent excessive number
of tiles.
%End
void setZoomLevelsCount( int count );
%Docstring
Sets number of zoom levels. See :py:func:`~QgsVectorLayer3DTilingSettings.zoomLevelsCount` documentation for more details.
%End
void setShowBoundingBoxes( bool enabled );
%Docstring
Sets whether to display bounding boxes of entity's tiles (for debugging)
%End
bool showBoundingBoxes() const;
%Docstring
Returns whether to display bounding boxes of entity's tiles (for debugging)
%End
void writeXml( QDomElement &elem ) const;
%Docstring
Writes content of the object to XML
%End
void readXml( const QDomElement &elem );
%Docstring
Reads content of the object from XML
%End
};
class QgsAbstractVectorLayer3DRenderer : QgsAbstract3DRenderer /Abstract/
{
%Docstring
Base class for 3D renderers that are based on vector layers.
.. versionadded:: 3.12
%End
%TypeHeaderCode
#include "qgsabstractvectorlayer3drenderer.h"
%End
public:
QgsAbstractVectorLayer3DRenderer();
void setLayer( QgsVectorLayer *layer );
%Docstring
Sets vector layer associated with the renderer
%End
QgsVectorLayer *layer() const;
%Docstring
Returns vector layer associated with the renderer
%End
void setTilingSettings( const QgsVectorLayer3DTilingSettings &settings );
%Docstring
Sets tiling settings of the renderer
%End
QgsVectorLayer3DTilingSettings tilingSettings() const;
%Docstring
Returns tiling settings of the renderer
%End
virtual void resolveReferences( const QgsProject &project );
protected:
void copyBaseProperties( QgsAbstractVectorLayer3DRenderer *r ) const;
%Docstring
Copies common properties of this object to another object
%End
void writeXmlBaseProperties( QDomElement &elem, const QgsReadWriteContext &context ) const;
%Docstring
Writes common properties of this object to DOM element
%End
void readXmlBaseProperties( const QDomElement &elem, const QgsReadWriteContext &context );
%Docstring
Reads common properties of this object from DOM element
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgsabstractvectorlayer3drenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/