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.5.0 -->
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#d6270719d1ca5ac5952ab5e7fec3f84a">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>AlignScales</b> = 1,
37
<b>IgnoreScrollbars</b> = 2,
39
<b>IgnoreFrames</b> = 4,
41
<b>IgnoreMargin</b> = 8,
43
<b>IgnoreLegend</b> = 16,
45
<b>PrintMargin</b> = 1,
47
<b>PrintTitle</b> = 2,
49
<b>PrintLegend</b> = 4,
51
<b>PrintGrid</b> = 8,
53
<b>PrintBackground</b> = 16,
55
<b>PrintFrameWithScales</b> = 32,
57
<b>PrintAll</b> = ~PrintFrameWithScales
61
<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>
62
<b>Title</b>,
64
<b>Legend</b>,
66
<b>Curve</b>,
68
<b>CurveSymbol</b>,
70
<b>Marker</b>,
72
<b>MarkerSymbol</b>,
74
<b>MajorGrid</b>,
76
<b>MinorGrid</b>,
78
<b>CanvasBackground</b>,
80
<b>AxisScale</b>,
82
<b>AxisTitle</b>,
84
<b>WidgetBackground</b>
88
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
89
<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>
91
<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>
93
<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#db22e2424b0fac69aa3cb0ca0cf0d698">color</a> (const QColor &, <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> item) const</td></tr>
95
<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#23b37c1d17c9ea192609f90866a852c4">font</a> (const QFont &, <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> item) const</td></tr>
97
<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>
99
<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#32a2f1df034b8ca130054f1ae034dad0">options</a> () const</td></tr>
101
<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#6bebb12041b92937a58039a7fe911400">apply</a> (<a class="el" href="class_qwt_plot.html">QwtPlot</a> *) const</td></tr>
103
<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#5acdc8e766abfafd1956bae143a0fe00">reset</a> (<a class="el" href="class_qwt_plot.html">QwtPlot</a> *) const</td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58b84989b395595401132252f23bdcc0"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="58b84989b395595401132252f23bdcc0" args="(QwtPlotItem *) const " -->
106
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>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1039d36d4d1b536fc7d884d2fd22d397"></a><!-- doxytag: member="QwtPlotPrintFilter::reset" ref="1039d36d4d1b536fc7d884d2fd22d397" args="(QwtPlotItem *) const " -->
109
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>
112
<hr><h2>Member Enumeration Documentation</h2>
113
<a class="anchor" name="befd1a5f672722400a39007eeef8f0e0"></a><!-- doxytag: member="QwtPlotPrintFilter::Options" ref="befd1a5f672722400a39007eeef8f0e0" args="" -->
114
<div class="memitem">
115
<div class="memproto">
116
<table class="memname">
118
<td class="memname">enum <a class="el" href="class_qwt_plot_print_filter.html#befd1a5f672722400a39007eeef8f0e0">QwtPlotPrintFilter::Options</a> </td>
129
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>.
132
<a class="anchor" name="9a9eae5c90f51ef61f973b4c2fba0665"></a><!-- doxytag: member="QwtPlotPrintFilter::Item" ref="9a9eae5c90f51ef61f973b4c2fba0665" args="" -->
133
<div class="memitem">
134
<div class="memproto">
135
<table class="memname">
137
<td class="memname">enum <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">QwtPlotPrintFilter::Item</a> </td>
148
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>.
151
<hr><h2>Constructor & Destructor Documentation</h2>
152
<a class="anchor" name="1c8c0c540ca0432be6c264e9663aecc0"></a><!-- doxytag: member="QwtPlotPrintFilter::QwtPlotPrintFilter" ref="1c8c0c540ca0432be6c264e9663aecc0" args="()" -->
153
<div class="memitem">
154
<div class="memproto">
155
<table class="memname">
157
<td class="memname">QwtPlotPrintFilter::QwtPlotPrintFilter </td>
159
<td class="paramname"> </td>
160
<td> ) </td>
161
<td width="100%"><code> [explicit]</code></td>
168
Sets filter options to PrintAll
170
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>.
173
<a class="anchor" name="852775768c0b37edeb57abdfcb175a7f"></a><!-- doxytag: member="QwtPlotPrintFilter::~QwtPlotPrintFilter" ref="852775768c0b37edeb57abdfcb175a7f" args="()" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname">QwtPlotPrintFilter::~QwtPlotPrintFilter </td>
180
<td class="paramname"> </td>
181
<td> ) </td>
182
<td width="100%"><code> [virtual]</code></td>
193
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>.
196
<hr><h2>Member Function Documentation</h2>
197
<a class="anchor" name="db22e2424b0fac69aa3cb0ca0cf0d698"></a><!-- doxytag: member="QwtPlotPrintFilter::color" ref="db22e2424b0fac69aa3cb0ca0cf0d698" args="(const QColor &, Item item) const" -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname">QColor QwtPlotPrintFilter::color </td>
204
<td class="paramtype">const QColor & </td>
205
<td class="paramname"> <em>c</em>, </td>
208
<td class="paramkey"></td>
210
<td class="paramtype"><a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> </td>
211
<td class="paramname"> <em>item</em></td><td> </td>
216
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
223
Modifies a color for printing.
225
<dl compact><dt><b>Parameters:</b></dt><dd>
226
<table border="0" cellspacing="2" cellpadding="0">
227
<tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>Color to be modified </td></tr>
228
<tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>Type of item where the color belongs </td></tr>
231
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Modified color.</dd></dl>
232
In case of !(<a class="el" href="class_qwt_plot_print_filter.html#32a2f1df034b8ca130054f1ae034dad0">QwtPlotPrintFilter::options()</a> & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.
234
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>.
236
References <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00108">options()</a>.
238
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">apply()</a>.
241
<a class="anchor" name="23b37c1d17c9ea192609f90866a852c4"></a><!-- doxytag: member="QwtPlotPrintFilter::font" ref="23b37c1d17c9ea192609f90866a852c4" args="(const QFont &, Item item) const" -->
242
<div class="memitem">
243
<div class="memproto">
244
<table class="memname">
246
<td class="memname">QFont QwtPlotPrintFilter::font </td>
248
<td class="paramtype">const QFont & </td>
249
<td class="paramname"> <em>f</em>, </td>
252
<td class="paramkey"></td>
254
<td class="paramtype"><a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">Item</a> </td>
255
<td class="paramname"> <em>item</em></td><td> </td>
260
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
267
Modifies a font for printing.
269
<dl compact><dt><b>Parameters:</b></dt><dd>
270
<table border="0" cellspacing="2" cellpadding="0">
271
<tr><td valign="top"></td><td valign="top"><em>f</em> </td><td>Font to be modified </td></tr>
272
<tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>Type of item where the font belongs</td></tr>
275
All fonts are returned unmodified
277
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>.
279
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">apply()</a>.
282
<a class="anchor" name="b5a3f3df821b67812e40ffdcaca3b6b5"></a><!-- doxytag: member="QwtPlotPrintFilter::setOptions" ref="b5a3f3df821b67812e40ffdcaca3b6b5" args="(int options)" -->
283
<div class="memitem">
284
<div class="memproto">
285
<table class="memname">
287
<td class="memname">void QwtPlotPrintFilter::setOptions </td>
289
<td class="paramtype">int </td>
290
<td class="paramname"> <em>options</em> </td>
291
<td> ) </td>
292
<td width="100%"></td>
299
Set plot print options.
301
<dl compact><dt><b>Parameters:</b></dt><dd>
302
<table border="0" cellspacing="2" cellpadding="0">
303
<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>
306
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#32a2f1df034b8ca130054f1ae034dad0">options()</a> </dd></dl>
309
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>.
312
<a class="anchor" name="32a2f1df034b8ca130054f1ae034dad0"></a><!-- doxytag: member="QwtPlotPrintFilter::options" ref="32a2f1df034b8ca130054f1ae034dad0" args="() const" -->
313
<div class="memitem">
314
<div class="memproto">
315
<table class="memname">
317
<td class="memname">int QwtPlotPrintFilter::options </td>
319
<td class="paramname"> </td>
320
<td> ) </td>
321
<td width="100%"> const</td>
328
Get plot print options.
330
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#b5a3f3df821b67812e40ffdcaca3b6b5">setOptions()</a> </dd></dl>
333
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>.
335
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">color()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00572">QwtPlot::drawItems()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00073">QwtPlot::print()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00467">QwtPlot::printCanvas()</a>.
338
<a class="anchor" name="6bebb12041b92937a58039a7fe911400"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="6bebb12041b92937a58039a7fe911400" args="(QwtPlot *) const" -->
339
<div class="memitem">
340
<div class="memproto">
341
<table class="memname">
343
<td class="memname">void QwtPlotPrintFilter::apply </td>
345
<td class="paramtype"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td>
346
<td class="paramname"> <em>plot</em> </td>
347
<td> ) </td>
348
<td width="100%"> const<code> [virtual]</code></td>
355
Change color and fonts of a plot <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#6bebb12041b92937a58039a7fe911400">apply</a> </dd></dl>
358
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>.
360
References <a class="el" href="qwt__plot_8cpp-source.html#l00190">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00100">QwtPlot::axisWidget()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00069">QwtSymbol::brush()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00716">QwtPlot::canvasBackground()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00330">QwtText::color()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">color()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00296">QwtText::font()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00148">font()</a>, <a class="el" href="qwt__plot__dict_8cpp-source.html#l00186">QwtPlotDict::itemList()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00257">QwtPlot::legend()</a>, <a class="el" href="qwt__legend_8cpp-source.html#l00631">QwtLegend::legendItems()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00071">QwtSymbol::pen()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00184">QwtPlot::setAutoReplot()</a>, <a class="el" href="qwt__symbol_8cpp-source.html#l00088">QwtSymbol::setBrush()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00694">QwtPlot::setCanvasBackground()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00323">QwtText::setColor()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00289">QwtText::setFont()</a>, <a class="el" href="qwt__symbol_8cpp-source.html#l00100">QwtSymbol::setPen()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00417">QwtText::testPaintAttribute()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00357">QwtScaleWidget::title()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00240">QwtPlot::titleLabel()</a>.
362
Referenced by <a class="el" href="qwt__plot__print_8cpp-source.html#l00073">QwtPlot::print()</a>.
365
<a class="anchor" name="5acdc8e766abfafd1956bae143a0fe00"></a><!-- doxytag: member="QwtPlotPrintFilter::reset" ref="5acdc8e766abfafd1956bae143a0fe00" args="(QwtPlot *) const" -->
366
<div class="memitem">
367
<div class="memproto">
368
<table class="memname">
370
<td class="memname">void QwtPlotPrintFilter::reset </td>
372
<td class="paramtype"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td>
373
<td class="paramname"> <em>plot</em> </td>
374
<td> ) </td>
375
<td width="100%"> const<code> [virtual]</code></td>
382
Reset color and fonts of a plot <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_print_filter.html#6bebb12041b92937a58039a7fe911400">apply</a> </dd></dl>
385
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>.
387
References <a class="el" href="qwt__plot_8cpp-source.html#l00190">QwtPlot::autoReplot()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00100">QwtPlot::axisWidget()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00069">QwtSymbol::brush()</a>, <a class="el" href="qwt__legend_8cpp-source.html#l00460">QwtLegend::find()</a>, <a class="el" href="qwt__plot__dict_8cpp-source.html#l00186">QwtPlotDict::itemList()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00257">QwtPlot::legend()</a>, <a class="el" href="qwt__legend_8cpp-source.html#l00631">QwtLegend::legendItems()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00071">QwtSymbol::pen()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00184">QwtPlot::setAutoReplot()</a>, <a class="el" href="qwt__symbol_8cpp-source.html#l00088">QwtSymbol::setBrush()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00694">QwtPlot::setCanvasBackground()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00323">QwtText::setColor()</a>, <a class="el" href="qwt__symbol_8cpp-source.html#l00100">QwtSymbol::setPen()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00150">QwtScaleWidget::setTitle()</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#l00240">QwtPlot::titleLabel()</a>.
389
Referenced by <a class="el" href="qwt__plot__print_8cpp-source.html#l00073">QwtPlot::print()</a>.
392
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:49 2008 for Qwt User's Guide by
393
<a href="http://www.doxygen.org/index.html">
394
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>