📄 class_qwt_plot_picker.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: QwtPlotPicker 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>QwtPlotPicker Class Reference</h1><!-- doxytag: class="QwtPlotPicker" --><!-- doxytag: inherits="QwtPicker" -->Inheritance diagram for QwtPlotPicker:<p><center><img src="class_qwt_plot_picker__inherit__graph.png" border="0" usemap="#_qwt_plot_picker__inherit__map" alt="Inheritance graph"></center><map name="_qwt_plot_picker__inherit__map"><area href="class_qwt_plot_zoomer.html" shape="rect" coords="11,232,125,256" alt=""><area href="class_qwt_picker.html" shape="rect" coords="27,83,109,107" alt=""><area href="class_qwt_event_pattern.html" shape="rect" coords="7,8,129,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotPicker:<p><center><img src="class_qwt_plot_picker__coll__graph.png" border="0" usemap="#_qwt_plot_picker__coll__map" alt="Collaboration graph"></center><map name="_qwt_plot_picker__coll__map"><area href="class_qwt_picker.html" shape="rect" coords="27,83,109,107" alt=""><area href="class_qwt_event_pattern.html" shape="rect" coords="7,8,129,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_picker-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2><a class="el" href="class_qwt_plot_picker.html">QwtPlotPicker</a> provides selections on a plot canvas. <p><a class="el" href="class_qwt_plot_picker.html">QwtPlotPicker</a> is a <a class="el" href="class_qwt_picker.html">QwtPicker</a> tailored for selections on a plot canvas. It is set to a x-Axis and y-Axis and translates all pixel coordinates into this coodinate system. <p><p>Definition at line <a class="el" href="qwt__plot__picker_8h-source.html#l00029">29</a> of file <a class="el" href="qwt__plot__picker_8h-source.html">qwt_plot_picker.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Signals</h2></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_picker.html#6bad8ba70a55dbfa275387c1ef6f2f63">selected</a> (const QwtDoublePoint &pos)</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_picker.html#b098eb5b36756c108d182121814ee442">selected</a> (const QwtDoubleRect &rect)</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_picker.html#f4c015ee027be65355456302031b4e04">selected</a> (const QwtArray< QwtDoublePoint > &pa)</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_picker.html#6a4a43cd13c97bb0f868ba2b375428cc">appended</a> (const QwtDoublePoint &pos)</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_picker.html#2ed5d81844031e3cd8a881ca5ba3b0a6">moved</a> (const QwtDoublePoint &pos)</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_picker.html#f07dcf038557fae06afdd7ec6e974c5c">QwtPlotPicker</a> (<a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#20ca8f322be817d1890232d1b2764e49">QwtPlotPicker</a> (int xAxis, int yAxis, <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> *)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#d400b88fc2de41c99898d16a5253718e">QwtPlotPicker</a> (int xAxis, int yAxis, int selectionFlags, <a class="el" href="class_qwt_picker.html#b36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> rubberBand, <a class="el" href="class_qwt_picker.html#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode, <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</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_picker.html#a901c86543585c7056133a5cb6652e3d">setAxis</a> (int xAxis, int yAxis)</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_picker.html#9cdd6d56e990173a00c6c81edbe8818d">xAxis</a> () const </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_picker.html#3068fb734845abfdf5dff00ead18377f">yAxis</a> () const </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_picker.html#c5906d5fe7543f3db7808da44d8197a9">plot</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#88103b56426ff2a5fb8713ae8ab2d191">plot</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#402820e19bc6a9a33184264345703015">canvas</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#6b3a29ebce6d9e4991b78b0c8887b124">canvas</a> () const </td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></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_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect</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_picker.html#fed4c21c2c9d7a3bf1d7a722b78b6264">invTransform</a> (const QRect &) 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_picker.html#f825eb774b3fd77cde590f3de7807d9e">transform</a> (const QwtDoubleRect &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoublePoint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#598b8b156f33df1cccce890e8dcbba23">invTransform</a> (const QPoint &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#2c15072c6b02020987f101702230e92c">transform</a> (const QwtDoublePoint &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_text.html">QwtText</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#7a85e6d7a45e5e480db670bb5f9a9b72">trackerText</a> (const QPoint &) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_text.html">QwtText</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#0b2e4f3995af42367f352cef6d334ee2">trackerText</a> (const QwtDoublePoint &) 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_picker.html#7a979d23cd4d398e309409e76635bcf4">move</a> (const QPoint &)</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_picker.html#86a68e8ea235b9514084b729c75803ea">append</a> (const QPoint &)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_picker.html#9fceb663542b6f9b0a358e9419406423">end</a> (bool ok=true)</td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="f07dcf038557fae06afdd7ec6e974c5c"></a><!-- doxytag: member="QwtPlotPicker::QwtPlotPicker" ref="f07dcf038557fae06afdd7ec6e974c5c" args="(QwtPlotCanvas *)" --><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">QwtPlotPicker::QwtPlotPicker </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td> <td class="mdname1" valign="top" nowrap> <em>canvas</em> </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>Create a plot picker. <p>The picker is set to those x- and y-axis of the plot that are enabled. If both or no x-axis are enabled, the picker is set to QwtPlot::xBottom. If both or no y-axis are enabled, it is set to QwtPlot::yLeft.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to observe, also the parent object</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">QwtPlotPicker::scaleRect()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__picker_8cpp-source.html#l00032">32</a> of file <a class="el" href="qwt__plot__picker_8cpp-source.html">qwt_plot_picker.cpp</a>.<p>References <a class="el" href="qwt__plot__axis_8cpp-source.html#l00167">QwtPlot::axisEnabled()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00103">canvas()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">plot()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00183">xAxis()</a>. </td> </tr></table><a class="anchor" name="20ca8f322be817d1890232d1b2764e49"></a><!-- doxytag: member="QwtPlotPicker::QwtPlotPicker" ref="20ca8f322be817d1890232d1b2764e49" args="(int xAxis, int yAxis, QwtPlotCanvas *)" --><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">QwtPlotPicker::QwtPlotPicker </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>xAxis</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>yAxis</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td> <td class="mdname" nowrap> <em>canvas</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Create a plot picker<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>xAxis</em> </td><td>Set the x axis of the picker </td></tr> <tr><td valign="top"></td><td valign="top"><em>yAxis</em> </td><td>Set the y axis of the picker </td></tr> <tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to observe, also the parent object</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">QwtPlotPicker::scaleRect()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__picker_8cpp-source.html#l00070">70</a> of file <a class="el" href="qwt__plot__picker_8cpp-source.html">qwt_plot_picker.cpp</a>. </td> </tr></table><a class="anchor" name="d400b88fc2de41c99898d16a5253718e"></a><!-- doxytag: member="QwtPlotPicker::QwtPlotPicker" ref="d400b88fc2de41c99898d16a5253718e" args="(int xAxis, int yAxis, int selectionFlags, RubberBand rubberBand, DisplayMode trackerMode, QwtPlotCanvas *)" --><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">QwtPlotPicker::QwtPlotPicker </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>xAxis</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>yAxis</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>selectionFlags</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_qwt_picker.html#b36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> </td> <td class="mdname" nowrap> <em>rubberBand</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_qwt_picker.html#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> </td> <td class="mdname" nowrap> <em>trackerMode</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td> <td class="mdname" nowrap> <em>canvas</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Create a plot picker<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>xAxis</em> </td><td>X axis of the picker </td></tr> <tr><td valign="top"></td><td valign="top"><em>yAxis</em> </td><td>Y axis of the picker </td></tr> <tr><td valign="top"></td><td valign="top"><em>selectionFlags</em> </td><td>Or'd value of SelectionType, RectSelectionType and SelectionMode </td></tr> <tr><td valign="top"></td><td valign="top"><em>rubberBand</em> </td><td>Rubberband style </td></tr> <tr><td valign="top"></td><td valign="top"><em>trackerMode</em> </td><td>Tracker mode </td></tr> <tr><td valign="top"></td><td valign="top"><em>canvas</em> </td><td>Plot canvas to observe, also the parent object</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html">QwtPicker</a>, <a class="el" href="class_qwt_picker.html#e93fe995c8c581ac33a9f3445ea5e7b9">QwtPicker::setSelectionFlags()</a>, <a class="el" href="class_qwt_picker.html#83096bad2662e02e4914a7b40241c351">QwtPicker::setRubberBand()</a>, <a class="el" href="class_qwt_picker.html#94fc60c7223cdc470ae63156f6446d6f">QwtPicker::setTrackerMode</a><p><a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a>, <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">QwtPlotPicker::scaleRect()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__picker_8cpp-source.html#l00093">93</a> of file <a class="el" href="qwt__plot__picker_8cpp-source.html">qwt_plot_picker.cpp</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="86a68e8ea235b9514084b729c75803ea"></a><!-- doxytag: member="QwtPlotPicker::append" ref="86a68e8ea235b9514084b729c75803ea" args="(const QPoint &)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -