⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_plot_zoomer.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</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&nbsp;</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&nbsp;</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#01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a>&nbsp;</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> *&nbsp;</td>          <td class="mdname" nowrap> <em>canvas</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>doReplot</em> = <code>true</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [explicit]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Create a zoomer for a plot canvas.<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>&nbsp;</td><td>X axis of the zoomer </td></tr>    <tr><td valign="top"></td><td valign="top"><em>yAxis</em>&nbsp;</td><td>Y axis of the zoomer </td></tr>    <tr><td valign="top"></td><td valign="top"><em>selectionFlags</em>&nbsp;</td><td>Or'd value of <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c">QwtPicker::RectSelectionType</a> and <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">QwtPicker::SelectionMode</a>. QwtPicker::RectSelection will be auto added. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>trackerMode</em>&nbsp;</td><td>Tracker mode </td></tr>    <tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td>Plot canvas to observe, also the parent object </td></tr>    <tr><td valign="top"></td><td valign="top"><em>doReplot</em>&nbsp;</td><td>Call replot for the attached plot before initializing the zoomer with its scales. This might be necessary, when the plot is in a state with pending scale changes.</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_zoomer.html#7a1711597f441223efdb7d9931fe19b9">setZoomBase()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00103">103</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.<p>References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00103">QwtPlotPicker::canvas()</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="86898c6696ee0706a3ac6b61018a112e"></a><!-- doxytag: member="QwtPlotZoomer::accept" ref="86898c6696ee0706a3ac6b61018a112e" args="(QwtPolygon &amp;) 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">bool QwtPlotZoomer::accept           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QwtPolygon &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pa</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Check and correct a selected rectangle. <p>Reject rectangles with a hight or width &lt; 2, otherwise expand the selected rectangle to a minimum size of 11x11 and accept it.<p><dl compact><dt><b>Returns:</b></dt><dd>true If rect is accepted, or has been changed to a accepted rectangle. </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_picker.html#c59b7fde6b198f76ea91b4b1a4015af5">QwtPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00497">497</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.<p>References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00531">minZoomSize()</a>.    </td>  </tr></table><a class="anchor" name="a54bb05797c0468c0f8de4217dce24dd"></a><!-- doxytag: member="QwtPlotZoomer::begin" ref="a54bb05797c0468c0f8de4217dce24dd" 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">void QwtPlotZoomer::begin           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Rejects selections, when the stack depth is too deep, or the zoomed rectangle is <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836">minZoomSize()</a>.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836">minZoomSize()</a>, <a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_picker.html#49cb19aea451e275c5d376235e5a1d83">QwtPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00545">545</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.<p>References <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00531">minZoomSize()</a>.    </td>  </tr></table><a class="anchor" name="c7d10eb27858ccfebebecab5d69ecbb3"></a><!-- doxytag: member="QwtPlotZoomer::end" ref="c7d10eb27858ccfebebecab5d69ecbb3" args="(bool ok=true)" --><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">bool QwtPlotZoomer::end           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>ok</em> = <code>true</code>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Expand the selected rectangle to <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836">minZoomSize()</a> and zoom in if accepted.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#86898c6696ee0706a3ac6b61018a112e">QwtPlotZoomer::accept()</a>a, <a class="el" href="class_qwt_plot_zoomer.html#e25e8193ae6ad9c1e244f175db173836">QwtPlotZoomer::minZoomSize()</a> </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_plot_picker.html#9fceb663542b6f9b0a358e9419406423">QwtPlotPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00575">575</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.<p>References <a class="el" href="qwt__plot__picker_8cpp-source.html#l00273">QwtPlotPicker::end()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00332">QwtPlotPicker::invTransform()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00531">minZoomSize()</a>, <a class="el" href="qwt__plot__picker_8cpp-source.html#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01199">QwtPicker::selection()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00282">zoom()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00258">zoomRect()</a>.    </td>  </tr></table><a class="anchor" name="c0d39d53af224cbeda37e0417d084dab"></a><!-- doxytag: member="QwtPlotZoomer::maxStackDepth" ref="c0d39d53af224cbeda37e0417d084dab" args="() 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">int QwtPlotZoomer::maxStackDepth           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>Maximal depth of the zoom stack. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#3965591944793790407ba91d6de3a882">setMaxStackDepth()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00172">172</a> of file <a class="el" href="qwt__plot__zoomer_8cpp-source.html">qwt_plot_zoomer.cpp</a>.    </td>  </tr></table><a class="anchor" name="e25e8193ae6ad9c1e244f175db173836"></a><!-- doxytag: member="QwtPlotZoomer::minZoomSize" ref="e25e8193ae6ad9c1e244f175db173836" args="() 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">QwtDoubleSize QwtPlotZoomer::minZoomSize           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -