📄 class_qwt_plot_print_filter.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User's Guide: QwtPlotPrintFilter Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><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>A base class for plot print filters. <p>A print filter can be used to customize <a class="el" href="class_qwt_plot.html#db2f14174770601e55d6822437c3fe26">QwtPlot::print()</a>.<p><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><p><p>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"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><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> <b>PrintMargin</b> = 1, <br> <b>PrintTitle</b> = 2, <br> <b>PrintLegend</b> = 4, <br> <b>PrintGrid</b> = 8, <br> <b>PrintCanvasBackground</b> = 16, <br> <b>PrintWidgetBackground</b> = 32, <br> <b>PrintAll</b> = ~PrintWidgetBackground<br> }</td></tr><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> <b>Title</b>, <br> <b>Legend</b>, <br> <b>Curve</b>, <br> <b>CurveSymbol</b>, <br> <b>Marker</b>, <br> <b>MarkerSymbol</b>, <br> <b>MajorGrid</b>, <br> <b>MinorGrid</b>, <br> <b>CanvasBackground</b>, <br> <b>AxisScale</b>, <br> <b>AxisTitle</b>, <br> <b>WidgetBackground</b><br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><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><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><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><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><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><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><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><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><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58b84989b395595401132252f23bdcc0"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="58b84989b395595401132252f23bdcc0" args="(QwtPlotItem *) const " -->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><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1039d36d4d1b536fc7d884d2fd22d397"></a><!-- doxytag: member="QwtPlotPrintFilter::reset" ref="1039d36d4d1b536fc7d884d2fd22d397" args="(QwtPlotItem *) const " -->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></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="9a9eae5c90f51ef61f973b4c2fba0665"></a><!-- doxytag: member="QwtPlotPrintFilter::Item" ref="9a9eae5c90f51ef61f973b4c2fba0665" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_plot_print_filter.html#9a9eae5c90f51ef61f973b4c2fba0665">QwtPlotPrintFilter::Item</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Print items. <p><p>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> </tr></table><a class="anchor" name="befd1a5f672722400a39007eeef8f0e0"></a><!-- doxytag: member="QwtPlotPrintFilter::Options" ref="befd1a5f672722400a39007eeef8f0e0" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_plot_print_filter.html#befd1a5f672722400a39007eeef8f0e0">QwtPlotPrintFilter::Options</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Print options. <p><p>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> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="1c8c0c540ca0432be6c264e9663aecc0"></a><!-- doxytag: member="QwtPlotPrintFilter::QwtPlotPrintFilter" ref="1c8c0c540ca0432be6c264e9663aecc0" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtPlotPrintFilter::QwtPlotPrintFilter </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets filter options to PrintAll <p>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> </tr></table><a class="anchor" name="852775768c0b37edeb57abdfcb175a7f"></a><!-- doxytag: member="QwtPlotPrintFilter::~QwtPlotPrintFilter" ref="852775768c0b37edeb57abdfcb175a7f" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtPlotPrintFilter::~QwtPlotPrintFilter </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p><p>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> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="b6ce402443e59a6f4fc68dc24cc6b2ad"></a><!-- doxytag: member="QwtPlotPrintFilter::apply" ref="b6ce402443e59a6f4fc68dc24cc6b2ad" args="(QwtPlot *) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPlotPrintFilter::apply </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td> <td class="mdname1" valign="top" nowrap> <em>plot</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -