class_qwt_plot_item.html
来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 1,191 行 · 第 1/5 页
HTML
1,191 行
<!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: QwtPlotItem 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>QwtPlotItem Class Reference</h1><!-- doxytag: class="QwtPlotItem" -->Inheritance diagram for QwtPlotItem:<p><center><img src="class_qwt_plot_item__inherit__graph.png" border="0" usemap="#_qwt_plot_item__inherit__map" alt="Inheritance graph"></center><map name="_qwt_plot_item__inherit__map"><area href="class_qwt_plot_curve.html" shape="rect" coords="7,83,111,107" alt=""><area href="class_qwt_plot_grid.html" shape="rect" coords="135,83,228,107" alt=""><area href="class_qwt_plot_marker.html" shape="rect" coords="252,83,362,107" alt=""><area href="class_qwt_plot_raster_item.html" shape="rect" coords="386,83,519,107" alt=""><area href="class_qwt_plot_svg_item.html" shape="rect" coords="543,83,660,107" alt=""><area href="class_qwt_plot_spectrogram.html" shape="rect" coords="380,157,524,181" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_item-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Base class for items on the plot canvas. <p><p>Definition at line <a class="el" href="qwt__plot__item_8h-source.html#l00030">30</a> of file <a class="el" href="qwt__plot__item_8h-source.html">qwt_plot_item.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_item.html#b149ac85e233ce9cedf2f2f2af871bf3">RttiValues</a> { <br> <b>Rtti_PlotItem</b> = 0, <br> <b>Rtti_PlotGrid</b>, <br> <b>Rtti_PlotMarker</b>, <br> <b>Rtti_PlotCurve</b>, <br> <b>Rtti_PlotHistogram</b>, <br> <b>Rtti_PlotSpectrogram</b>, <br> <b>Rtti_PlotSVG</b>, <br> <b>Rtti_PlotUserItem</b> = 1000<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_item.html#e0fabcdd35f4818ce5bbe019b0eed062">ItemAttribute</a> { <br> <b>Legend</b> = 1, <br> <b>AutoScale</b> = 2<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_item.html#be0e8a39aceef9a600b73e02550a9704">RenderHint</a> { <b>RenderAntialiased</b> = 1 }</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_item.html#5d892ac856fb9176515c5f2d806161dc">QwtPlotItem</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &title=<a class="el" href="class_qwt_text.html">QwtText</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_item.html#282a1d0424a06737f80e1fe83ccf7a0c">~QwtPlotItem</a> ()</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_item.html#eb2f676533ccae3436bf578824e2165e">attach</a> (<a class="el" href="class_qwt_plot.html">QwtPlot</a> *plot)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b2bbee6dbe36a5f1d0ce853ac66716a6"></a><!-- doxytag: member="QwtPlotItem::detach" ref="b2bbee6dbe36a5f1d0ce853ac66716a6" args="()" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#b2bbee6dbe36a5f1d0ce853ac66716a6">detach</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#4c99653a14a49ad94d466168d06e97b9">plot</a> () 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_item.html#1b74686181ab6dd5033917123c7db30f">setTitle</a> (const QString &title)</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_item.html#2db3214b23b78274fa6f8c0321a76839">setTitle</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &title)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#3859d011b670b5f89e45d1ccef9206f7">title</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f153b5a40a60ac626f1c58e69fc4ecad"></a><!-- doxytag: member="QwtPlotItem::rtti" ref="f153b5a40a60ac626f1c58e69fc4ecad" args="() const " -->virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#f153b5a40a60ac626f1c58e69fc4ecad">rtti</a> () 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_item.html#5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a> (<a class="el" href="class_qwt_plot_item.html#e0fabcdd35f4818ce5bbe019b0eed062">ItemAttribute</a>, bool on=true)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#ef70936d34ef661876692e6a06d4a464">testItemAttribute</a> (<a class="el" href="class_qwt_plot_item.html#e0fabcdd35f4818ce5bbe019b0eed062">ItemAttribute</a>) 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_item.html#cd023c40f659c304ded324942865edc8">setRenderHint</a> (<a class="el" href="class_qwt_plot_item.html#be0e8a39aceef9a600b73e02550a9704">RenderHint</a>, bool on=true)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#d4009381d6a26359125549e1cf874b69">testRenderHint</a> (<a class="el" href="class_qwt_plot_item.html#be0e8a39aceef9a600b73e02550a9704">RenderHint</a>) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#4c58d814336643190b9f2918f80c30df">z</a> () 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_item.html#57d90e4146133b59d589c71b3a643e82">setZ</a> (double z)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="93a50fb9c86bc66617e28315e02281c3"></a><!-- doxytag: member="QwtPlotItem::show" ref="93a50fb9c86bc66617e28315e02281c3" args="()" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#93a50fb9c86bc66617e28315e02281c3">show</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1faea017baa2492416a13e6bc3c144aa"></a><!-- doxytag: member="QwtPlotItem::hide" ref="1faea017baa2492416a13e6bc3c144aa" args="()" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#1faea017baa2492416a13e6bc3c144aa">hide</a> ()</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_item.html#5f0eeb2b72207fd8d33a95b0565657a1">setVisible</a> (bool)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#eaf8eeb5f080017e181a5d7be798d789">isVisible</a> () 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_item.html#aef9628d6194ae7bb53ac85a5950635a">setAxis</a> (int xAxis, int yAxis)</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_item.html#81d3dd7feaadda4b0dbb8c13642046cf">setXAxis</a> (int axis)</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_item.html#7af360bf6d5a5b6257ce6b0dd99b7525">xAxis</a> () 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_item.html#a92dad876d76ce136925d5ae8f01db9a">setYAxis</a> (int axis)</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_item.html#c7714ffa278a10e0cf45972e487b63ff">yAxis</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_item.html#d956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a> ()</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_item.html#5483623e4fd1ae85b06b93523784358b">draw</a> (QPainter *painter, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const QRect &canvasRect) const =0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#4c2c1c77421229383b3c43cb777e3bfe">boundingRect</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_item.html#193770cd20609a368c5130de59cb782e">updateLegend</a> (<a class="el" href="class_qwt_legend.html">QwtLegend</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_item.html#bf6a70847d3db952161ca4d4a952eea0">updateScaleDiv</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &, const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#09824eda5e564a853e6586bc387a3b4b">legendItem</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#0a0181bc26a041b4e58f2810e55866bb">scaleRect</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#97559cef0e65e59c48ca9bd3e7953b04">paintRect</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#ce79adb7c901ef5d729dba35265096c2">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QwtDoubleRect &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_item.html#913adffa4cb6914f3248b7157b9bbf33">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QRect &) const </td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="5d892ac856fb9176515c5f2d806161dc"></a><!-- doxytag: member="QwtPlotItem::QwtPlotItem" ref="5d892ac856fb9176515c5f2d806161dc" args="(const QwtText &title=QwtText())" --><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">QwtPlotItem::QwtPlotItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> & </td> <td class="mdname1" valign="top" nowrap> <em>title</em> = <code><a class="el" href="class_qwt_text.html">QwtText</a>()</code> </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>Constructor. <p><p>Definition at line <a class="el" href="qwt__plot__item_8cpp-source.html#l00048">48</a> of file <a class="el" href="qwt__plot__item_8cpp-source.html">qwt_plot_item.cpp</a>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00171">title()</a>. </td> </tr></table><a class="anchor" name="282a1d0424a06737f80e1fe83ccf7a0c"></a><!-- doxytag: member="QwtPlotItem::~QwtPlotItem" ref="282a1d0424a06737f80e1fe83ccf7a0c" 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">QwtPlotItem::~QwtPlotItem </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>Destroy the <a class="el" href="class_qwt_plot_item.html">QwtPlotItem</a>. <p><p>Definition at line <a class="el" href="qwt__plot__item_8cpp-source.html#l00055">55</a> of file <a class="el" href="qwt__plot__item_8cpp-source.html">qwt_plot_item.cpp</a>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00064">attach()</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="eb2f676533ccae3436bf578824e2165e"></a><!-- doxytag: member="QwtPlotItem::attach" ref="eb2f676533ccae3436bf578824e2165e" args="(QwtPlot *plot)" --><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 QwtPlotItem::attach </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></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Attach the item to a plot <p>Definition at line <a class="el" href="qwt__plot__item_8cpp-source.html#l00064">64</a> of file <a class="el" href="qwt__plot__item_8cpp-source.html">qwt_plot_item.cpp</a>.<p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?