File: QwtPlotDirectPainter.3

package info (click to toggle)
qwt 6.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,848 kB
  • ctags: 15,811
  • sloc: cpp: 57,382; makefile: 41
file content (227 lines) | stat: -rw-r--r-- 6,069 bytes parent folder | download
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
.TH "QwtPlotDirectPainter" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotDirectPainter \- 
.PP
Painter object trying to paint incrementally\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_directpainter\&.h>\fP
.PP
Inherits QObject\&.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBAttribute\fP { \fBAtomicPainter\fP = 0x01, \fBFullRepaint\fP = 0x02, \fBCopyBackingStore\fP = 0x04 }"
.br
.RI "\fIPaint attributes\&. \fP"
.ti -1c
.RI "typedef QFlags< \fBAttribute\fP > \fBAttributes\fP"
.br
.RI "\fIPaint attributes\&. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtPlotDirectPainter\fP (QObject *parent=NULL)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "virtual \fB~QwtPlotDirectPainter\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "void \fBsetAttribute\fP (\fBAttribute\fP, bool on)"
.br
.ti -1c
.RI "bool \fBtestAttribute\fP (\fBAttribute\fP) const "
.br
.ti -1c
.RI "void \fBsetClipping\fP (bool)"
.br
.ti -1c
.RI "bool \fBhasClipping\fP () const "
.br
.ti -1c
.RI "void \fBsetClipRegion\fP (const QRegion &)"
.br
.RI "\fIAssign a clip region and enable clipping\&. \fP"
.ti -1c
.RI "QRegion \fBclipRegion\fP () const "
.br
.ti -1c
.RI "void \fBdrawSeries\fP (\fBQwtPlotSeriesItem\fP *, int from, int to)"
.br
.RI "\fIDraw a set of points of a seriesItem\&. \fP"
.ti -1c
.RI "void \fBreset\fP ()"
.br
.RI "\fIClose the internal QPainter\&. \fP"
.ti -1c
.RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)"
.br
.RI "\fIEvent filter\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Painter object trying to paint incrementally\&. 

Often applications want to display samples while they are collected\&. When there are too many samples complete replots will be expensive to be processed in a collection cycle\&.
.PP
\fBQwtPlotDirectPainter\fP offers an API to paint subsets ( f\&.e all additions points ) without erasing/repainting the plot canvas\&.
.PP
On certain environments it might be important to calculate a proper clip region before painting\&. F\&.e\&. for Qt Embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer\&.
.PP
\fBWarning:\fP
.RS 4
Incremental painting will only help when no replot is triggered by another operation ( like changing scales ) and nothing needs to be erased\&. 
.RE
.PP

.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBQwtPlotDirectPainter::Attribute\fP"

.PP
Paint attributes\&. 
.PP
\fBSee Also:\fP
.RS 4
\fBsetAttribute()\fP, \fBtestAttribute()\fP, \fBdrawSeries()\fP 
.RE
.PP

.PP
\fBEnumerator\fP
.in +1c
.TP
\fB\fIAtomicPainter \fP\fP
Initializing a QPainter is an expensive operation\&. When AtomicPainter is set each call of \fBdrawSeries()\fP opens/closes a temporary QPainter\&. Otherwise \fBQwtPlotDirectPainter\fP tries to use the same QPainter as long as possible\&. 
.TP
\fB\fIFullRepaint \fP\fP
When FullRepaint is set the plot canvas is explicitly repainted after the samples have been rendered\&. 
.TP
\fB\fICopyBackingStore \fP\fP
When \fBQwtPlotCanvas::BackingStore\fP is enabled the painter has to paint to the backing store and the widget\&. In certain situations/environments it might be faster to paint to the backing store only and then copy the backing store to the canvas\&. This flag can also be useful for settings, where Qt fills the the clip region with the widget background\&. 
.SH "Member Function Documentation"
.PP 
.SS "QRegion QwtPlotDirectPainter::clipRegion () const"

.PP
\fBReturns:\fP
.RS 4
Currently set clip region\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetClipRegion()\fP, \fBsetClipping()\fP, \fBhasClipping()\fP 
.RE
.PP

.SS "void QwtPlotDirectPainter::drawSeries (\fBQwtPlotSeriesItem\fP *seriesItem, intfrom, intto)"

.PP
Draw a set of points of a seriesItem\&. When observing an measurement while it is running, new points have to be added to an existing seriesItem\&. \fBdrawSeries()\fP can be used to display them avoiding a complete redraw of the canvas\&.
.PP
Setting plot()->canvas()->setAttribute(Qt::WA_PaintOutsidePaintEvent, true); will result in faster painting, if the paint engine of the canvas widget supports this feature\&.
.PP
\fBParameters:\fP
.RS 4
\fIseriesItem\fP Item to be painted 
.br
\fIfrom\fP Index of the first point to be painted 
.br
\fIto\fP Index of the last point to be painted\&. If to < 0 the series will be painted to its last point\&. 
.RE
.PP

.SS "bool QwtPlotDirectPainter::hasClipping () const"

.PP
\fBReturns:\fP
.RS 4
true, when clipping is enabled 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetClipping()\fP, \fBclipRegion()\fP, \fBsetClipRegion()\fP 
.RE
.PP

.SS "void QwtPlotDirectPainter::setAttribute (\fBAttribute\fPattribute, boolon)"
Change an attribute
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP Attribute to change 
.br
\fIon\fP On/Off
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBAttribute\fP, \fBtestAttribute()\fP 
.RE
.PP

.SS "void QwtPlotDirectPainter::setClipping (boolenable)"
En/Disables clipping
.PP
\fBParameters:\fP
.RS 4
\fIenable\fP Enables clipping is true, disable it otherwise 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBhasClipping()\fP, \fBclipRegion()\fP, \fBsetClipRegion()\fP 
.RE
.PP

.SS "void QwtPlotDirectPainter::setClipRegion (const QRegion &region)"

.PP
Assign a clip region and enable clipping\&. Depending on the environment setting a proper clip region might improve the performance heavily\&. F\&.e\&. on Qt embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer device\&.
.PP
\fBParameters:\fP
.RS 4
\fIregion\fP Clip region 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBclipRegion()\fP, \fBhasClipping()\fP, \fBsetClipping()\fP 
.RE
.PP

.SS "bool QwtPlotDirectPainter::testAttribute (\fBAttribute\fPattribute) const"

.PP
\fBReturns:\fP
.RS 4
True, when attribute is enabled 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIattribute\fP Attribute to be tested 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBAttribute\fP, \fBsetAttribute()\fP 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.