📄 class_qwt_plot_zoomer.html
字号:
<p>A value of -1 set the depth to unlimited, 0 disables zooming. If the current zoom rectangle is below depth, the plot is unzoomed.<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>depth</em> </td><td>Maximum for the stack depth </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> </dd></dl><dl compact><dt><b>Note:</b></dt><dd>depth doesn't include the zoom base, so <a class="el" href="class_qwt_plot_zoomer.html#bbd7fe8750c177a82f80ea91611909fd">zoomStack()</a>.count() might be <a class="el" href="class_qwt_plot_zoomer.html#c0d39d53af224cbeda37e0417d084dab">maxStackDepth()</a> + 1. </dd></dl><p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00145">145</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#l00282">zoom()</a>. </td> </tr></table><a class="anchor" name="c9d52dbddc9e79e7ce8ebd545e855e89"></a><!-- doxytag: member="QwtPlotZoomer::setSelectionFlags" ref="c9d52dbddc9e79e7ce8ebd545e855e89" args="(int)" --><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::setSelectionFlags </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>flags</em> </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>Set the selection flags<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>flags</em> </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>. The default value is QwtPicker::RectSelection & QwtPicker::ClickSelection.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a>, <a class="el" href="class_qwt_picker.html#446d9f87a6796d62949c62d77c51e3eb">SelectionType</a>, <a class="el" href="class_qwt_picker.html#7417aae2fb1ba27fa864ac153df18b6c">RectSelectionType</a>, <a class="el" href="class_qwt_picker.html#7fde641b6e2514f5271106a1cedd8718">SelectionMode</a> </dd></dl><dl compact><dt><b>Note:</b></dt><dd>QwtPicker::RectSelection will be auto added. </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_picker.html#e93fe995c8c581ac33a9f3445ea5e7b9">QwtPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00619">619</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__picker_8cpp-source.html#l00340">QwtPicker::setSelectionFlags()</a>. </td> </tr></table><a class="anchor" name="80e1f91cf51b88aa11f2d976f01b4a3f"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="80e1f91cf51b88aa11f2d976f01b4a3f" args="(const QwtDoubleRect &)" --><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::setZoomBase </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QwtDoubleRect & </td> <td class="mdname1" valign="top" nowrap> <em>base</em> </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>Set the initial size of the zoomer. <p>base is united with the current <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> and the zoom stack is reinitalized with it as zoom base. plot is zoomed to <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a>.<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>base</em> </td><td>Zoom base</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00231">231</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#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00343">rescale()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>. </td> </tr></table><a class="anchor" name="7a1711597f441223efdb7d9931fe19b9"></a><!-- doxytag: member="QwtPlotZoomer::setZoomBase" ref="7a1711597f441223efdb7d9931fe19b9" 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::setZoomBase </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>Reinitialized the zoom stack with <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a> as base.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html#ec745fbace2e6d1e69e7d9be0368bd8e">zoomBase()</a>, <a class="el" href="class_qwt_plot_picker.html#4bdeadb4e7a794bab248d1e2a2c76345">scaleRect()</a></dd></dl><dl compact><dt><b>Warning:</b></dt><dd>Calling <a class="el" href="class_qwt_plot.html#cef5ea818944b93b8695d0c16924eed6">QwtPlot::setAxisScale()</a> while <a class="el" href="class_qwt_plot.html#f14053ca41be0f9c6f820ed3c4379831">QwtPlot::autoReplot()</a> is false leaves the axis in an 'intermediate' state. In this case, to prevent buggy behaviour, you must call <a class="el" href="class_qwt_plot.html#7b094e29b8e92b00e36517d0d7633c4b">QwtPlot::replot()</a> before calling <a class="el" href="class_qwt_plot_zoomer.html#7a1711597f441223efdb7d9931fe19b9">QwtPlotZoomer::setZoomBase()</a>. This quirk will be removed in a future release.</dd></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>. </dd></dl><p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00208">208</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#l00119">QwtPlotPicker::plot()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00343">rescale()</a>, and <a class="el" href="qwt__plot__picker_8cpp-source.html#l00143">QwtPlotPicker::scaleRect()</a>.<p>Referenced by <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00387">setAxis()</a>. </td> </tr></table><a class="anchor" name="a44e42dcf37547a6b93d04a593f140c6"></a><!-- doxytag: member="QwtPlotZoomer::widgetKeyPressEvent" ref="a44e42dcf37547a6b93d04a593f140c6" args="(QKeyEvent *)" --><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::widgetKeyPressEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QKeyEvent * </td> <td class="mdname1" valign="top" nowrap> <em>ke</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Qt::Key_Plus zooms out, Qt::Key_Minus zooms in one position on the zoom stack, Qt::Key_Escape zooms out to the zoom base.<p>Changes the current position on the stack, but doesn't pop any rectangle.<p><dl compact><dt><b>Note:</b></dt><dd>The keys codes can be changed, using <a class="el" href="class_qwt_event_pattern.html#2c3b52e4f470086fb6b883ff1f48b711">QwtEventPattern::setKeyPattern</a>: 3, 4, 5 </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_picker.html#f5bc441b2fc143363563922a3b3c70ae">QwtPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00429">429</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__picker_8cpp-source.html#l01193">QwtPicker::isActive()</a>, <a class="el" href="qwt__event__pattern_8cpp-source.html#l00248">QwtEventPattern::keyMatch()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00953">QwtPicker::widgetKeyPressEvent()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00282">zoom()</a>. </td> </tr></table><a class="anchor" name="abded662ecb3555b3a29cf3daacf79de"></a><!-- doxytag: member="QwtPlotZoomer::widgetMouseReleaseEvent" ref="abded662ecb3555b3a29cf3daacf79de" args="(QMouseEvent *)" --><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::widgetMouseReleaseEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QMouseEvent * </td> <td class="mdname1" valign="top" nowrap> <em>me</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Qt::MidButton zooms out one position on the zoom stack, Qt::RightButton to the zoom base.<p>Changes the current position on the stack, but doesn't pop any rectangle.<p><dl compact><dt><b>Note:</b></dt><dd>The mouse events can be changed, using <a class="el" href="class_qwt_event_pattern.html#c63fb935c777421794d669aa63faec68">QwtEventPattern::setMousePattern</a>: 2, 1 </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_picker.html#c009633e005b6290e07b902f2a58e45e">QwtPicker</a>.<p>Definition at line <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00406">406</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__event__pattern_8cpp-source.html#l00193">QwtEventPattern::mouseMatch()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00899">QwtPicker::widgetMouseReleaseEvent()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00282">zoom()</a>. </td> </tr></table><a class="anchor" name="0cee73f15c5791553cb52c4e7b3e881e"></a><!-- doxytag: member="QwtPlotZoomer::zoom" ref="0cee73f15c5791553cb52c4e7b3e881e" args="(int up)" --><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::zoom </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>offset</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual, slot]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -