/
qgsellipsesymbollayer.sip.in
306 lines (197 loc) · 7.48 KB
/
qgsellipsesymbollayer.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/symbology/qgsellipsesymbollayer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsEllipseSymbolLayer: QgsMarkerSymbolLayer
{
%Docstring
A symbol layer for rendering objects with major and minor axis (e.g. ellipse, rectangle, etc).
%End
%TypeHeaderCode
#include "qgsellipsesymbollayer.h"
%End
public:
enum Shape
{
Circle,
Rectangle,
Diamond,
Cross,
Arrow,
HalfArc,
Triangle,
RightHalfTriangle,
LeftHalfTriangle,
SemiCircle,
};
static QList< QgsEllipseSymbolLayer::Shape > availableShapes();
%Docstring
Returns a list of all available shape types.
%End
static bool shapeIsFilled( const QgsEllipseSymbolLayer::Shape &shape );
%Docstring
Returns ``True`` if a ``shape`` has a fill.
:return: ``True`` if shape uses a fill, or ``False`` if shape uses lines only
.. versionadded:: 3.20
%End
QgsEllipseSymbolLayer();
static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Creates the symbol layer
%End
static QgsSymbolLayer *createFromSld( QDomElement &element ) /Factory/;
virtual void renderPoint( QPointF point, QgsSymbolRenderContext &context );
virtual QString layerType() const;
virtual void startRender( QgsSymbolRenderContext &context );
virtual void stopRender( QgsSymbolRenderContext &context );
virtual QgsEllipseSymbolLayer *clone() const /Factory/;
virtual QVariantMap properties() const;
virtual void toSld( QDomDocument &doc, QDomElement &element, const QVariantMap &props ) const;
virtual void writeSldMarker( QDomDocument &doc, QDomElement &element, const QVariantMap &props ) const;
virtual bool writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift = QPointF( 0.0, 0.0 ) ) const;
void setSymbolName( const QString &name ) /Deprecated/;
%Docstring
Sets the rendered ellipse marker shape using a symbol ``name``.
.. seealso:: :py:func:`setShape`
.. seealso:: :py:func:`shape`
.. deprecated:: QGIS 3.20
%End
QString symbolName() const /Deprecated/;
%Docstring
Returns the shape name for the rendered ellipse marker symbol.
.. seealso:: :py:func:`shape`
.. seealso:: :py:func:`setShape`
.. deprecated:: QGIS 3.20
%End
QgsEllipseSymbolLayer::Shape shape() const;
%Docstring
Returns the shape for the rendered ellipse marker symbol.
.. seealso:: :py:func:`setShape`
.. versionadded:: 3.20
%End
void setShape( QgsEllipseSymbolLayer::Shape shape );
%Docstring
Sets the rendered ellipse marker shape.
:param shape: new ellipse marker shape
.. seealso:: :py:func:`shape`
.. versionadded:: 3.20
%End
static QgsEllipseSymbolLayer::Shape decodeShape( const QString &name, bool *ok = 0 );
%Docstring
Attempts to decode a string representation of a shape name to the corresponding
shape.
:param name: encoded shape name
:param ok: if specified, will be set to ``True`` if shape was successfully decoded
:return: decoded name
.. seealso:: :py:func:`encodeShape`
.. versionadded:: 3.20
%End
static QString encodeShape( QgsEllipseSymbolLayer::Shape shape );
%Docstring
Encodes a shape to its string representation.
:param shape: shape to encode
:return: encoded string
.. seealso:: :py:func:`decodeShape`
.. versionadded:: 3.20
%End
virtual void setSize( double size );
void setSymbolWidth( double w );
double symbolWidth() const;
void setSymbolHeight( double h );
double symbolHeight() const;
Qt::PenStyle strokeStyle() const;
void setStrokeStyle( Qt::PenStyle strokeStyle );
Qt::PenJoinStyle penJoinStyle() const;
%Docstring
Gets stroke join style.
.. versionadded:: 2.16
%End
void setPenJoinStyle( Qt::PenJoinStyle style );
%Docstring
Set stroke join style.
.. versionadded:: 2.16
%End
Qt::PenCapStyle penCapStyle() const;
%Docstring
Returns the marker's stroke cap style (e.g., flat, round, etc).
.. seealso:: :py:func:`setPenCapStyle`
.. seealso:: :py:func:`penJoinStyle`
.. seealso:: :py:func:`strokeColor`
.. seealso:: :py:func:`strokeStyle`
.. versionadded:: 3.20
%End
void setPenCapStyle( Qt::PenCapStyle style );
%Docstring
Sets the marker's stroke cap ``style`` (e.g., flat, round, etc).
.. seealso:: :py:func:`penCapStyle`
.. seealso:: :py:func:`penJoinStyle`
.. seealso:: :py:func:`setStrokeColor`
.. seealso:: :py:func:`setStrokeStyle`
.. versionadded:: 3.20
%End
void setStrokeWidth( double w );
double strokeWidth() const;
virtual void setFillColor( const QColor &c );
virtual QColor fillColor() const;
virtual void setStrokeColor( const QColor &c );
virtual QColor strokeColor() const;
void setSymbolWidthUnit( QgsUnitTypes::RenderUnit unit );
%Docstring
Sets the units for the symbol's width.
:param unit: symbol units
.. seealso:: :py:func:`symbolWidthUnit`
.. seealso:: :py:func:`setSymbolHeightUnit`
%End
QgsUnitTypes::RenderUnit symbolWidthUnit() const;
%Docstring
Returns the units for the symbol's width.
.. seealso:: :py:func:`setSymbolWidthUnit`
.. seealso:: :py:func:`symbolHeightUnit`
%End
void setSymbolWidthMapUnitScale( const QgsMapUnitScale &scale );
const QgsMapUnitScale &symbolWidthMapUnitScale() const;
void setSymbolHeightUnit( QgsUnitTypes::RenderUnit unit );
%Docstring
Sets the units for the symbol's height.
:param unit: symbol units
.. seealso:: :py:func:`symbolHeightUnit`
.. seealso:: :py:func:`setSymbolWidthUnit`
%End
QgsUnitTypes::RenderUnit symbolHeightUnit() const;
%Docstring
Returns the units for the symbol's height.
.. seealso:: :py:func:`setSymbolHeightUnit`
.. seealso:: :py:func:`symbolWidthUnit`
%End
void setSymbolHeightMapUnitScale( const QgsMapUnitScale &scale );
const QgsMapUnitScale &symbolHeightMapUnitScale() const;
void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit );
%Docstring
Sets the units for the symbol's stroke width.
:param unit: symbol units
.. seealso:: :py:func:`strokeWidthUnit`
%End
QgsUnitTypes::RenderUnit strokeWidthUnit() const;
%Docstring
Returns the units for the symbol's stroke width.
.. seealso:: :py:func:`setStrokeWidthUnit`
%End
void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale );
const QgsMapUnitScale &strokeWidthMapUnitScale() const;
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual bool usesMapUnits() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
virtual QRectF bounds( QPointF point, QgsSymbolRenderContext &context );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/symbology/qgsellipsesymbollayer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/