File: qgseffectstack.sip.in

package info (click to toggle)
qgis 3.40.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,181,336 kB
  • sloc: cpp: 1,593,302; python: 370,494; xml: 23,474; perl: 3,664; sh: 3,482; ansic: 2,257; sql: 2,133; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 157
file content (160 lines) | stat: -rw-r--r-- 5,008 bytes parent folder | download | duplicates (16)
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
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/effects/qgseffectstack.h                                    *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsEffectStack : QgsPaintEffect /NoDefaultCtors/
{
%Docstring(signature="appended")
A paint effect which consists of a stack of other chained paint effects

Effect stacks can be used to apply multiple paint effects to a QPicture.
For instance, an effect stack may blur then apply a drop shadow.

The way in which effects apply to a stack is controlled by the effect's
drawMode. Effects can either render their results onto the destination
paint device, or just modify the source picture which is drawn by
subsequent effects in the stack. For instance, a blur effect with a
Modifier drawMode will blur the source picture for the following drop
shadow effect without actually drawing the blurred picture to the paint
device. If the blur effect had a Render drawMode then the blurred
picture will be drawn on the paint device, but the following drop shadow
effect will be drawn using the original picture, not the blurred
version.
%End

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

    static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsEffectStack effect. This method ignores the map
parameter, and always returns an empty effect stack.

:param map: unused encoded properties string map

:return: new QgsEffectStack
%End

    QgsEffectStack();

    QgsEffectStack( const QgsEffectStack &other );


    explicit QgsEffectStack( const QgsPaintEffect &effect );
%Docstring
Creates a new QgsEffectStack effect from a single initial effect.

:param effect: initial effect to add to the stack. The effect will be
               cloned, so ownership is not transferred to the stack.
%End

    ~QgsEffectStack();

    virtual QString type() const;
    virtual QgsEffectStack *clone() const /Factory/;

    virtual bool saveProperties( QDomDocument &doc, QDomElement &element ) const;

    virtual bool readProperties( const QDomElement &element );


    virtual QVariantMap properties() const;

%Docstring
Unused for QgsEffectStack, will always return an empty string map
%End

    virtual void readProperties( const QVariantMap &props );

%Docstring
Unused for QgsEffectStack, props parameter will be ignored
%End

    void appendEffect( QgsPaintEffect *effect /Transfer/ );
%Docstring
Appends an effect to the end of the stack.

:param effect: :py:class:`QgsPaintEffect` to append. Ownership of the
               effect will be transferred to the stack object.

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

    bool insertEffect( int index, QgsPaintEffect *effect /Transfer/ );
%Docstring
Inserts an effect at a specified index within the stack.

:param index: position to insert the effect
:param effect: :py:class:`QgsPaintEffect` to insert. Ownership of the
               effect will be transferred to the stack object.

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

    bool changeEffect( int index, QgsPaintEffect *effect /Transfer/ );
%Docstring
Replaces the effect at a specified position within the stack.

:param index: position of effect to replace
:param effect: :py:class:`QgsPaintEffect` to replace with. Ownership of
               the effect will be transferred to the stack object.
%End

    QgsPaintEffect *takeEffect( int index /TransferBack/ );
%Docstring
Removes an effect from the stack and returns a pointer to it.

:param index: position of effect to take
%End

    QList< QgsPaintEffect * > *effectList();
%Docstring
Returns a pointer to the list of effects currently contained by the
stack

:return: list of :py:class:`QgsPaintEffects` within the stack
%End

    int count() const;
%Docstring
Returns count of effects contained by the stack

:return: count of effects
%End

    QgsPaintEffect *effect( int index ) const;
%Docstring
Returns a pointer to the effect at a specified index within the stack

:param index: position of effect to return

:return: :py:class:`QgsPaintEffect` at specified position
%End




  protected:

    virtual void draw( QgsRenderContext &context );


};


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