File: qgslayoutitemmapoverview.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (268 lines) | stat: -rw-r--r-- 7,928 bytes parent folder | download | duplicates (14)
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
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/layout/qgslayoutitemmapoverview.h                           *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/





class QgsLayoutItemMapOverviewStack : QgsLayoutItemMapItemStack
{
%Docstring(signature="appended")
A collection of overviews which are drawn above the map content in a
:py:class:`QgsLayoutItemMap`. The overview stack controls which
overviews are drawn and the order they are drawn in.

.. seealso:: :py:class:`QgsLayoutItemMapOverview`
%End

%TypeHeaderCode
#include "qgslayoutitemmapoverview.h"
%End
  public:

    QgsLayoutItemMapOverviewStack( QgsLayoutItemMap *map );
%Docstring
Constructor for QgsLayoutItemMapOverviewStack, attached to the specified
``map``.
%End

    void addOverview( QgsLayoutItemMapOverview *overview /Transfer/ );
%Docstring
Adds a new map ``overview`` to the stack and takes ownership of the
overview. The overview will be added to the end of the stack, and
rendered above any existing map overviews already present in the stack.

.. note::

   After adding a overview to the stack, :py:func:`~QgsLayoutItemMapOverviewStack.update`
   should be called for the :py:class:`QgsLayoutItemMap` to prevent rendering artifacts.

.. seealso:: :py:func:`removeOverview`
%End

    void removeOverview( const QString &overviewId );
%Docstring
Removes an overview with matching overviewId from the stack and deletes
the corresponding :py:class:`QgsLayoutItemMapOverview`

.. note::

   After removing an overview from the stack, :py:func:`~QgsLayoutItemMapOverviewStack.update`
   should be called for the :py:class:`QgsLayoutItemMap` to prevent rendering artifacts.

.. seealso:: :py:func:`addOverview`
%End

    void moveOverviewUp( const QString &overviewId );
%Docstring
Moves an overview with matching overviewId up the stack, causing it to
be rendered above other overviews.

.. note::

   After moving an overview within the stack, :py:func:`~QgsLayoutItemMapOverviewStack.update` should be
   called for the :py:class:`QgsLayoutItemMap` to redraw the map with the new overview stack order.

.. seealso:: :py:func:`moveOverviewDown`
%End

    void moveOverviewDown( const QString &overviewId );
%Docstring
Moves an overview with matching overviewId down the stack, causing it to
be rendered below other overviews.

.. note::

   After moving an overview within the stack, :py:func:`~QgsLayoutItemMapOverviewStack.update` should be
   called for the :py:class:`QgsLayoutItemMap` to redraw the map with the new overview stack order.

.. seealso:: :py:func:`moveOverviewUp`
%End

    QgsLayoutItemMapOverview *overview( const QString &overviewId ) const;
%Docstring
Returns a reference to an overview with matching overviewId within the
stack.
%End

    QgsLayoutItemMapOverview *overview( int index ) const;
%Docstring
Returns a reference to an overview at the specified ``index`` within the
stack.
%End

    QgsLayoutItemMapOverview &operator[]( int index );

    QList< QgsLayoutItemMapOverview * > asList() const;
%Docstring
Returns a list of :py:class:`QgsLayoutItemMapOverviews` contained by the
stack.
%End
    virtual bool readXml( const QDomElement &elem, const QDomDocument &doc, const QgsReadWriteContext &context );


    QList< QgsMapLayer * > modifyMapLayerList( const QList< QgsMapLayer * > &layers );
%Docstring
Alters the list of map ``layers`` which will be rendered for the link
map item, inserting temporary layers which represent overview extents as
required.

.. versionadded:: 3.6
%End

};

class QgsLayoutItemMapOverview : QgsLayoutItemMapItem
{
%Docstring(signature="appended")
An individual overview which is drawn above the map content in a
:py:class:`QgsLayoutItemMap`, and shows the extent of another
:py:class:`QgsLayoutItemMap`.

.. seealso:: :py:class:`QgsLayoutItemMapOverviewStack`
%End

%TypeHeaderCode
#include "qgslayoutitemmapoverview.h"
%End
  public:

    QgsLayoutItemMapOverview( const QString &name, QgsLayoutItemMap *map );
%Docstring
Constructor for QgsLayoutItemMapOverview.

:param name: friendly display name for overview
:param map: :py:class:`QgsLayoutItemMap` the overview is attached to
%End
    ~QgsLayoutItemMapOverview();

    virtual void draw( QPainter *painter );

    virtual bool writeXml( QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context ) const;

    virtual bool readXml( const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context );

    virtual void finalizeRestoreFromXml();

    virtual bool usesAdvancedEffects() const;


    void setLinkedMap( QgsLayoutItemMap *map );
%Docstring
Sets the ``map`` to show the overview extent of.

.. seealso:: :py:func:`linkedMap`
%End

    QgsLayoutItemMap *linkedMap();
%Docstring
Returns the source map to show the overview extent of.

.. seealso:: :py:func:`setLinkedMap`
%End

    void setFrameSymbol( QgsFillSymbol *symbol /Transfer/ );
%Docstring
Sets the fill ``symbol`` used for drawing the overview extent. Ownership
is transferred to the overview.

.. seealso:: :py:func:`frameSymbol`
%End

    QgsFillSymbol *frameSymbol();
%Docstring
Returns the fill symbol used for drawing the overview extent.

.. seealso:: :py:func:`setFrameSymbol`
%End

    QPainter::CompositionMode blendMode() const;
%Docstring
Retrieves the blending mode used for drawing the overview.

.. seealso:: :py:func:`setBlendMode`
%End

    void setBlendMode( QPainter::CompositionMode mode );
%Docstring
Sets the blending ``mode`` used for drawing the overview.

.. seealso:: :py:func:`blendMode`
%End

    bool inverted() const;
%Docstring
Returns whether the overview frame is inverted, ie, whether the shaded
area is drawn outside the extent of the overview map.

.. seealso:: :py:func:`setInverted`
%End

    void setInverted( bool inverted );
%Docstring
Sets whether the overview frame is ``inverted``, ie, whether the shaded
area is drawn outside the extent of the overview map.

.. seealso:: :py:func:`inverted`
%End

    bool centered() const;
%Docstring
Returns whether the extent of the map is forced to center on the
overview.

.. seealso:: :py:func:`setCentered`
%End

    void setCentered( bool centered );
%Docstring
Sets whether the extent of the map is forced to center on the overview

.. seealso:: :py:func:`centered`
%End

    void connectSignals();
%Docstring
Reconnects signals for overview map, so that overview correctly follows
changes to source map's extent.
%End

    QgsVectorLayer *asMapLayer();
%Docstring
Returns a vector layer to render as part of the
:py:class:`QgsLayoutItemMap` render, containing a feature representing
the overview extent (and with an appropriate renderer set matching the
overview's :py:func:`~QgsLayoutItemMapOverview.frameSymbol` ).

Ownership of the layer remain with the overview item.

.. versionadded:: 3.6
%End

    virtual QgsMapLayer *mapLayer();


    virtual bool accept( QgsStyleEntityVisitorInterface *visitor ) const;


  public slots:

    void overviewExtentChanged();
%Docstring
Handles recentering of the map and redrawing of the map's overview
%End

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/layout/qgslayoutitemmapoverview.h                           *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/