File: class_qwt_plot_direct_painter.html

package info (click to toggle)
qwt 6.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 23,808 kB
  • sloc: cpp: 57,687; xml: 182; makefile: 32
file content (404 lines) | stat: -rw-r--r-- 26,386 bytes parent folder | download | duplicates (2)
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtPlotDirectPainter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_plot_direct_painter.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qwt_plot_direct_painter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtPlotDirectPainter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Painter object trying to paint incrementally.  
 <a href="class_qwt_plot_direct_painter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__plot__directpainter_8h_source.html">qwt_plot_directpainter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtPlotDirectPainter:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_plot_direct_painter__inherit__graph.png" border="0" usemap="#_qwt_plot_direct_painter_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_plot_direct_painter_inherit__map" id="_qwt_plot_direct_painter_inherit__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a38f72175526a1a748d311763707cf934"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a> { <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a95bfb017daa98b23665c1de06e8bd8e5">AtomicPainter</a> = 0x01, 
<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a133cb5ae512ffa0f0633c9d7bd423ff4">FullRepaint</a> = 0x02, 
<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934a8b04f057d6223852a87bdd319dcf4711">CopyBackingStore</a> = 0x04
 }</td></tr>
<tr class="memdesc:a38f72175526a1a748d311763707cf934"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint attributes.  <a href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">More...</a><br /></td></tr>
<tr class="separator:a38f72175526a1a748d311763707cf934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a66587377067b3bc0539274370693f"><td class="memItemLeft" align="right" valign="top"><a id="a26a66587377067b3bc0539274370693f"></a>
typedef QFlags&lt; <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a26a66587377067b3bc0539274370693f">Attributes</a></td></tr>
<tr class="memdesc:a26a66587377067b3bc0539274370693f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint attributes. <br /></td></tr>
<tr class="separator:a26a66587377067b3bc0539274370693f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="memItemLeft" align="right" valign="top"><a id="af9e6e2056afd4db4c081e4b04d5c9a85"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#af9e6e2056afd4db4c081e4b04d5c9a85">QwtPlotDirectPainter</a> (QObject *parent=NULL)</td></tr>
<tr class="memdesc:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:af9e6e2056afd4db4c081e4b04d5c9a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="memItemLeft" align="right" valign="top"><a id="aab96bfd08e9041c2552210bbd3ee5ad0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#aab96bfd08e9041c2552210bbd3ee5ad0">~QwtPlotDirectPainter</a> ()</td></tr>
<tr class="memdesc:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aab96bfd08e9041c2552210bbd3ee5ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498b9857a09e399010a3f8bc9c235a8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute</a> (<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>, bool on)</td></tr>
<tr class="separator:a498b9857a09e399010a3f8bc9c235a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6845dec4b18c65f1b3f92af2533dd99c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute</a> (<a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>) const</td></tr>
<tr class="separator:a6845dec4b18c65f1b3f92af2533dd99c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3d406aada74b7d9202c1017d8347708"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping</a> (bool)</td></tr>
<tr class="separator:ac3d406aada74b7d9202c1017d8347708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c4880e1cda809cd8994e6c255757b2a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping</a> () const</td></tr>
<tr class="separator:a1c4880e1cda809cd8994e6c255757b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c97174b06957f9b20ea295ff403a557"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557">setClipRegion</a> (const QRegion &amp;)</td></tr>
<tr class="memdesc:a0c97174b06957f9b20ea295ff403a557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign a clip region and enable clipping.  <a href="#a0c97174b06957f9b20ea295ff403a557">More...</a><br /></td></tr>
<tr class="separator:a0c97174b06957f9b20ea295ff403a557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a810697bf94f7589c8efc13935321b4ce"><td class="memItemLeft" align="right" valign="top">QRegion&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion</a> () const</td></tr>
<tr class="separator:a810697bf94f7589c8efc13935321b4ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd">drawSeries</a> (<a class="el" href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a> *, int from, int to)</td></tr>
<tr class="memdesc:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a set of points of a seriesItem.  <a href="#aacc2e1d79dd410cb1a4404fbc00290bd">More...</a><br /></td></tr>
<tr class="separator:aacc2e1d79dd410cb1a4404fbc00290bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a895bf1ebfd772a2200dc09bed596cf4d"><td class="memItemLeft" align="right" valign="top"><a id="a895bf1ebfd772a2200dc09bed596cf4d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#a895bf1ebfd772a2200dc09bed596cf4d">reset</a> ()</td></tr>
<tr class="memdesc:a895bf1ebfd772a2200dc09bed596cf4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the internal QPainter. <br /></td></tr>
<tr class="separator:a895bf1ebfd772a2200dc09bed596cf4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab421bd757679b61f1dcfde2991500ab2"><td class="memItemLeft" align="right" valign="top"><a id="ab421bd757679b61f1dcfde2991500ab2"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_direct_painter.html#ab421bd757679b61f1dcfde2991500ab2">eventFilter</a> (QObject *, QEvent *)</td></tr>
<tr class="memdesc:ab421bd757679b61f1dcfde2991500ab2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Event filter. <br /></td></tr>
<tr class="separator:ab421bd757679b61f1dcfde2991500ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Painter object trying to paint incrementally. </p>
<p>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.</p>
<p><a class="el" href="class_qwt_plot_direct_painter.html" title="Painter object trying to paint incrementally. ">QwtPlotDirectPainter</a> offers an API to paint subsets ( f.e all additions points ) without erasing/repainting the plot canvas.</p>
<p>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.</p>
<dl class="section warning"><dt>Warning</dt><dd>Incremental painting will only help when no replot is triggered by another operation ( like changing scales ) and nothing needs to be erased. </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a38f72175526a1a748d311763707cf934"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38f72175526a1a748d311763707cf934">&#9670;&nbsp;</a></span>Attribute</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">QwtPlotDirectPainter::Attribute</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Paint attributes. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a95bfb017daa98b23665c1de06e8bd8e5"></a>AtomicPainter&#160;</td><td class="fielddoc"><p>Initializing a QPainter is an expensive operation. When AtomicPainter is set each call of <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> opens/closes a temporary QPainter. Otherwise <a class="el" href="class_qwt_plot_direct_painter.html" title="Painter object trying to paint incrementally. ">QwtPlotDirectPainter</a> tries to use the same QPainter as long as possible. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a133cb5ae512ffa0f0633c9d7bd423ff4"></a>FullRepaint&#160;</td><td class="fielddoc"><p>When FullRepaint is set the plot canvas is explicitly repainted after the samples have been rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a38f72175526a1a748d311763707cf934a8b04f057d6223852a87bdd319dcf4711"></a>CopyBackingStore&#160;</td><td class="fielddoc"><p>When <a class="el" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa7b88a46e1414f6d904aa494c89d064f3" title="Paint double buffered reusing the content of the pixmap buffer when possible. ">QwtPlotCanvas::BackingStore</a> 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. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a810697bf94f7589c8efc13935321b4ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a810697bf94f7589c8efc13935321b4ce">&#9670;&nbsp;</a></span>clipRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRegion QwtPlotDirectPainter::clipRegion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Currently set clip region. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a> </dd></dl>

</div>
</div>
<a id="aacc2e1d79dd410cb1a4404fbc00290bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacc2e1d79dd410cb1a4404fbc00290bd">&#9670;&nbsp;</a></span>drawSeries()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::drawSeries </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a> *&#160;</td>
          <td class="paramname"><em>seriesItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draw a set of points of a seriesItem. </p>
<p>When observing an measurement while it is running, new points have to be added to an existing seriesItem. <a class="el" href="class_qwt_plot_direct_painter.html#aacc2e1d79dd410cb1a4404fbc00290bd" title="Draw a set of points of a seriesItem. ">drawSeries()</a> can be used to display them avoiding a complete redraw of the canvas.</p>
<p>Setting plot()-&gt;canvas()-&gt;setAttribute(Qt::WA_PaintOutsidePaintEvent, true); will result in faster painting, if the paint engine of the canvas widget supports this feature.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">seriesItem</td><td>Item to be painted </td></tr>
    <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
    <tr><td class="paramname">to</td><td>Index of the last point to be painted. If to &lt; 0 the series will be painted to its last point. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1c4880e1cda809cd8994e6c255757b2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c4880e1cda809cd8994e6c255757b2a">&#9670;&nbsp;</a></span>hasClipping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtPlotDirectPainter::hasClipping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true, when clipping is enabled </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a> </dd></dl>

</div>
</div>
<a id="a498b9857a09e399010a3f8bc9c235a8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a498b9857a09e399010a3f8bc9c235a8d">&#9670;&nbsp;</a></span>setAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change an attribute</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Attribute to change </td></tr>
    <tr><td class="paramname">on</td><td>On/Off</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934" title="Paint attributes. ">Attribute</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a6845dec4b18c65f1b3f92af2533dd99c">testAttribute()</a> </dd></dl>

</div>
</div>
<a id="ac3d406aada74b7d9202c1017d8347708"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3d406aada74b7d9202c1017d8347708">&#9670;&nbsp;</a></span>setClipping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setClipping </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>En/Disables clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>Enables clipping is true, disable it otherwise </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a0c97174b06957f9b20ea295ff403a557" title="Assign a clip region and enable clipping. ">setClipRegion()</a> </dd></dl>

</div>
</div>
<a id="a0c97174b06957f9b20ea295ff403a557"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c97174b06957f9b20ea295ff403a557">&#9670;&nbsp;</a></span>setClipRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtPlotDirectPainter::setClipRegion </td>
          <td>(</td>
          <td class="paramtype">const QRegion &amp;&#160;</td>
          <td class="paramname"><em>region</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assign a clip region and enable clipping. </p>
<p>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.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">region</td><td>Clip region </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a810697bf94f7589c8efc13935321b4ce">clipRegion()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a1c4880e1cda809cd8994e6c255757b2a">hasClipping()</a>, <a class="el" href="class_qwt_plot_direct_painter.html#ac3d406aada74b7d9202c1017d8347708">setClipping()</a> </dd></dl>

</div>
</div>
<a id="a6845dec4b18c65f1b3f92af2533dd99c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6845dec4b18c65f1b3f92af2533dd99c">&#9670;&nbsp;</a></span>testAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtPlotDirectPainter::testAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934">Attribute</a>&#160;</td>
          <td class="paramname"><em>attribute</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when attribute is enabled </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">attribute</td><td>Attribute to be tested </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_direct_painter.html#a38f72175526a1a748d311763707cf934" title="Paint attributes. ">Attribute</a>, <a class="el" href="class_qwt_plot_direct_painter.html#a498b9857a09e399010a3f8bc9c235a8d">setAttribute()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_plot_direct_painter.html">QwtPlotDirectPainter</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>