1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPlotPrintFilter Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.4.6 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtPlotPrintFilter Class Reference</h1><!-- doxytag: class="QwtPlotPrintFilter" --><a href="class_qwt_plot_print_filter-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
23
A base class for plot print filters.
25
A print filter can be used to customize <a class="el" href="class_qwt_plot.html#db2f14174770601e55d6822437c3fe26">QwtPlot::print()</a>.<p>
26
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>In Qwt 5.0 the design of <a class="el" href="class_qwt_plot.html">QwtPlot</a> allows/recommends writing individual QwtPlotItems, that are not known to <a class="el" href="class_qwt_plot_print_filter.html">QwtPlotPrintFilter</a>. So this concept is outdated and <a class="el" href="class_qwt_plot_print_filter.html">QwtPlotPrintFilter</a> will be removed/replaced in Qwt 6.x. </dd></dl>
31
Definition at line <a class="el" href="qwt__plot__printfilter_8h-source.html#l00030">30</a> of file <a class="el" href="qwt__plot__printfilter_8h-source.html">qwt_plot_printfilter.h</a>.<table border="0" cellpadding="0" cellspacing="0">
33
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
34
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#befd1a5f672722400a39007eeef8f0e0">Options</a> { <br>
35
<b>PrintMargin</b> = 1,
37
<b>PrintTitle</b> = 2,
39
<b>PrintLegend</b> = 4,
41
<b>PrintGrid</b> = 8,
43
<b>PrintCanvasBackground</b> = 16,
45
<b>PrintWidgetBackground</b> = 32,
47
<b>PrintAll</b> = ~PrintWidgetBackground
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> { <br>
52
<b>Title</b>,
54
<b>Legend</b>,
56
<b>Curve</b>,
58
<b>CurveSymbol</b>,
60
<b>Marker</b>,
62
<b>MarkerSymbol</b>,
64
<b>MajorGrid</b>,
66
<b>MinorGrid</b>,
68
<b>CanvasBackground</b>,
70
<b>AxisScale</b>,
72
<b>AxisTitle</b>,
74
<b>WidgetBackground</b>
78
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#1c8c0c540ca0432be6c264e9663aecc0">QwtPlotPrintFilter</a> ()</td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#852775768c0b37edeb57abdfcb175a7f">~QwtPlotPrintFilter</a> ()</td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QColor </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#31fc7c9789cfa1044115c41ce349e46d">color</a> (const QColor &, <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> item) const </td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QFont </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#4be8e414cc8000de7b9d1359b6834379">font</a> (const QFont &, <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> item) const </td></tr>
87
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#b5a3f3df821b67812e40ffdcaca3b6b5">setOptions</a> (int options)</td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#0f47c339382f3292d3e71e0585a008e4">options</a> () const </td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#b6ce402443e59a6f4fc68dc24cc6b2ad">apply</a> (<a class="el" href="class_qwt_plot.html">QwtPlot</a> *) const </td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#524cd56a979aa7ac4b28f0a27e103d8b">reset</a> (<a class="el" href="class_qwt_plot.html">QwtPlot</a> *) const </td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58b84989b395595401132252f23bdcc0"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="58b84989b395595401132252f23bdcc0" args="(QwtPlotItem *) const " -->
96
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#58b84989b395595401132252f23bdcc0">apply</a> (<a class="el" href="class_qwt_plot_item.html">QwtPlotItem</a> *) const </td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1039d36d4d1b536fc7d884d2fd22d397"></a><!-- doxytag: member="QwtPlotPrintFilter::reset" ref="1039d36d4d1b536fc7d884d2fd22d397" args="(QwtPlotItem *) const " -->
99
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_print_filter.html#1039d36d4d1b536fc7d884d2fd22d397">reset</a> (<a class="el" href="class_qwt_plot_item.html">QwtPlotItem</a> *) const </td></tr>
102
<hr><h2>Member Enumeration Documentation</h2>
103
<a class="anchor" name="9a9eae5c90f51ef61f973b4c2fba0665"></a><!-- doxytag: member="QwtPlotPrintFilter::Item" ref="9a9eae5c90f51ef61f973b4c2fba0665" args="" --><p>
104
<table class="mdTable" cellpadding="2" cellspacing="0">
107
<table cellpadding="0" cellspacing="0" border="0">
109
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">QwtPlotPrintFilter::Item</a> </td>
115
<table cellspacing="5" cellpadding="0" border="0">
127
Definition at line <a class="el" href="qwt__plot__printfilter_8h-source.html#l00047">47</a> of file <a class="el" href="qwt__plot__printfilter_8h-source.html">qwt_plot_printfilter.h</a>. </td>
130
<a class="anchor" name="befd1a5f672722400a39007eeef8f0e0"></a><!-- doxytag: member="QwtPlotPrintFilter::Options" ref="befd1a5f672722400a39007eeef8f0e0" args="" --><p>
131
<table class="mdTable" cellpadding="2" cellspacing="0">
134
<table cellpadding="0" cellspacing="0" border="0">
136
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_plot_print_filter.html#befd1a5f672722400a39007eeef8f0e0">QwtPlotPrintFilter::Options</a> </td>
142
<table cellspacing="5" cellpadding="0" border="0">
154
Definition at line <a class="el" href="qwt__plot__printfilter_8h-source.html#l00034">34</a> of file <a class="el" href="qwt__plot__printfilter_8h-source.html">qwt_plot_printfilter.h</a>. </td>
157
<hr><h2>Constructor & Destructor Documentation</h2>
158
<a class="anchor" name="1c8c0c540ca0432be6c264e9663aecc0"></a><!-- doxytag: member="QwtPlotPrintFilter::QwtPlotPrintFilter" ref="1c8c0c540ca0432be6c264e9663aecc0" args="()" --><p>
159
<table class="mdTable" cellpadding="2" cellspacing="0">
162
<table cellpadding="0" cellspacing="0" border="0">
164
<td class="md" nowrap valign="top">QwtPlotPrintFilter::QwtPlotPrintFilter </td>
165
<td class="md" valign="top">( </td>
166
<td class="mdname1" valign="top" nowrap> </td>
167
<td class="md" valign="top"> ) </td>
168
<td class="md" nowrap><code> [explicit]</code></td>
174
<table cellspacing="5" cellpadding="0" border="0">
182
Sets filter options to PrintAll
184
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00082">82</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>. </td>
187
<a class="anchor" name="852775768c0b37edeb57abdfcb175a7f"></a><!-- doxytag: member="QwtPlotPrintFilter::~QwtPlotPrintFilter" ref="852775768c0b37edeb57abdfcb175a7f" args="()" --><p>
188
<table class="mdTable" cellpadding="2" cellspacing="0">
191
<table cellpadding="0" cellspacing="0" border="0">
193
<td class="md" nowrap valign="top">QwtPlotPrintFilter::~QwtPlotPrintFilter </td>
194
<td class="md" valign="top">( </td>
195
<td class="mdname1" valign="top" nowrap> </td>
196
<td class="md" valign="top"> ) </td>
197
<td class="md" nowrap><code> [virtual]</code></td>
203
<table cellspacing="5" cellpadding="0" border="0">
215
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00088">88</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>. </td>
218
<hr><h2>Member Function Documentation</h2>
219
<a class="anchor" name="b6ce402443e59a6f4fc68dc24cc6b2ad"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="b6ce402443e59a6f4fc68dc24cc6b2ad" args="(QwtPlot *) const " --><p>
220
<table class="mdTable" cellpadding="2" cellspacing="0">
223
<table cellpadding="0" cellspacing="0" border="0">
225
<td class="md" nowrap valign="top">void QwtPlotPrintFilter::apply </td>
226
<td class="md" valign="top">( </td>
227
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td>
228
<td class="mdname1" valign="top" nowrap> <em>plot</em> </td>
229
<td class="md" valign="top"> ) </td>
230
<td class="md" nowrap> const<code> [virtual]</code></td>
236
<table cellspacing="5" cellpadding="0" border="0">
244
Change color and fonts of a plot <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#b6ce402443e59a6f4fc68dc24cc6b2ad">apply</a> </dd></dl>
247
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">157</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>.
249
References <a class="el" href="qwt__plot_8cpp-source.html#l00195">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">color()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00148">font()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00187">QwtPlot::setAutoReplot()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00254">QwtPlot::titleLabel()</a>.
251
Referenced by <a class="el" href="qwt__plot__print_8cpp-source.html#l00074">QwtPlot::print()</a>. </td>
254
<a class="anchor" name="31fc7c9789cfa1044115c41ce349e46d"></a><!-- doxytag: member="QwtPlotPrintFilter::color" ref="31fc7c9789cfa1044115c41ce349e46d" args="(const QColor &, Item item) const " --><p>
255
<table class="mdTable" cellpadding="2" cellspacing="0">
258
<table cellpadding="0" cellspacing="0" border="0">
260
<td class="md" nowrap valign="top">QColor QwtPlotPrintFilter::color </td>
261
<td class="md" valign="top">( </td>
262
<td class="md" nowrap valign="top">const QColor & </td>
263
<td class="mdname" nowrap> <em>c</em>, </td>
266
<td class="md" nowrap align="right"></td>
268
<td class="md" nowrap><a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> </td>
269
<td class="mdname" nowrap> <em>item</em></td>
273
<td class="md">) </td>
274
<td class="md" colspan="2"> const<code> [virtual]</code></td>
280
<table cellspacing="5" cellpadding="0" border="0">
288
Modifies a color for printing.
290
<dl compact><dt><b>Parameters:</b></dt><dd>
291
<table border="0" cellspacing="2" cellpadding="0">
292
<tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>Color to be modified </td></tr>
293
<tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>Type of item where the color belongs </td></tr>
296
<dl compact><dt><b>Returns:</b></dt><dd>Modified color.</dd></dl>
297
In case of !(<a class="el" href="class_qwt_plot_print_filter.html#0f47c339382f3292d3e71e0585a008e4">QwtPlotPrintFilter::options()</a> & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.
299
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">124</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>.
301
References <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00108">options()</a>.
303
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">apply()</a>. </td>
306
<a class="anchor" name="4be8e414cc8000de7b9d1359b6834379"></a><!-- doxytag: member="QwtPlotPrintFilter::font" ref="4be8e414cc8000de7b9d1359b6834379" args="(const QFont &, Item item) const " --><p>
307
<table class="mdTable" cellpadding="2" cellspacing="0">
310
<table cellpadding="0" cellspacing="0" border="0">
312
<td class="md" nowrap valign="top">QFont QwtPlotPrintFilter::font </td>
313
<td class="md" valign="top">( </td>
314
<td class="md" nowrap valign="top">const QFont & </td>
315
<td class="mdname" nowrap> <em>f</em>, </td>
318
<td class="md" nowrap align="right"></td>
320
<td class="md" nowrap><a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> </td>
321
<td class="mdname" nowrap> <em>item</em></td>
325
<td class="md">) </td>
326
<td class="md" colspan="2"> const<code> [virtual]</code></td>
332
<table cellspacing="5" cellpadding="0" border="0">
340
Modifies a font for printing.
342
<dl compact><dt><b>Parameters:</b></dt><dd>
343
<table border="0" cellspacing="2" cellpadding="0">
344
<tr><td valign="top"></td><td valign="top"><em>f</em> </td><td>Font to be modified </td></tr>
345
<tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>Type of item where the font belongs</td></tr>
348
All fonts are returned unmodified
350
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00148">148</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>.
352
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">apply()</a>. </td>
355
<a class="anchor" name="0f47c339382f3292d3e71e0585a008e4"></a><!-- doxytag: member="QwtPlotPrintFilter::options" ref="0f47c339382f3292d3e71e0585a008e4" args="() const " --><p>
356
<table class="mdTable" cellpadding="2" cellspacing="0">
359
<table cellpadding="0" cellspacing="0" border="0">
361
<td class="md" nowrap valign="top">int QwtPlotPrintFilter::options </td>
362
<td class="md" valign="top">( </td>
363
<td class="mdname1" valign="top" nowrap> </td>
364
<td class="md" valign="top"> ) </td>
365
<td class="md" nowrap> const</td>
371
<table cellspacing="5" cellpadding="0" border="0">
379
Get plot print options.
381
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#b5a3f3df821b67812e40ffdcaca3b6b5">setOptions()</a> </dd></dl>
384
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00108">108</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>.
386
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">color()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00586">QwtPlot::drawItems()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00074">QwtPlot::print()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00450">QwtPlot::printCanvas()</a>. </td>
389
<a class="anchor" name="524cd56a979aa7ac4b28f0a27e103d8b"></a><!-- doxytag: member="QwtPlotPrintFilter::reset" ref="524cd56a979aa7ac4b28f0a27e103d8b" args="(QwtPlot *) const " --><p>
390
<table class="mdTable" cellpadding="2" cellspacing="0">
393
<table cellpadding="0" cellspacing="0" border="0">
395
<td class="md" nowrap valign="top">void QwtPlotPrintFilter::reset </td>
396
<td class="md" valign="top">( </td>
397
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td>
398
<td class="mdname1" valign="top" nowrap> <em>plot</em> </td>
399
<td class="md" valign="top"> ) </td>
400
<td class="md" nowrap> const<code> [virtual]</code></td>
406
<table cellspacing="5" cellpadding="0" border="0">
414
Reset color and fonts of a plot <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#b6ce402443e59a6f4fc68dc24cc6b2ad">apply</a> </dd></dl>
417
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00366">366</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>.
419
References <a class="el" href="qwt__plot_8cpp-source.html#l00195">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00187">QwtPlot::setAutoReplot()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00323">QwtText::setColor()</a>, <a class="el" href="qwt__text__label_8cpp-source.html#l00107">QwtTextLabel::text()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00254">QwtPlot::titleLabel()</a>. </td>
422
<a class="anchor" name="b5a3f3df821b67812e40ffdcaca3b6b5"></a><!-- doxytag: member="QwtPlotPrintFilter::setOptions" ref="b5a3f3df821b67812e40ffdcaca3b6b5" args="(int options)" --><p>
423
<table class="mdTable" cellpadding="2" cellspacing="0">
426
<table cellpadding="0" cellspacing="0" border="0">
428
<td class="md" nowrap valign="top">void QwtPlotPrintFilter::setOptions </td>
429
<td class="md" valign="top">( </td>
430
<td class="md" nowrap valign="top">int </td>
431
<td class="mdname1" valign="top" nowrap> <em>options</em> </td>
432
<td class="md" valign="top"> ) </td>
433
<td class="md" nowrap></td>
439
<table cellspacing="5" cellpadding="0" border="0">
447
Set plot print options.
449
<dl compact><dt><b>Parameters:</b></dt><dd>
450
<table border="0" cellspacing="2" cellpadding="0">
451
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>Or'd <a class="el" href="class_qwt_plot_print_filter.html#befd1a5f672722400a39007eeef8f0e0">QwtPlotPrintFilter::Options</a> values</td></tr>
454
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#0f47c339382f3292d3e71e0585a008e4">options()</a> </dd></dl>
457
Definition at line <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00099">99</a> of file <a class="el" href="qwt__plot__printfilter_8cpp-source.html">qwt_plot_printfilter.cpp</a>. </td>
460
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:17 2007 for Qwt User's Guide by
461
<a href="http://www.doxygen.org/index.html">
462
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>