<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Qwt User's Guide: QwtPlotMagnifier Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</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> </div> <div class="contents"> <h1>QwtPlotMagnifier Class Reference</h1><!-- doxytag: class="QwtPlotMagnifier" --><!-- doxytag: inherits="QwtMagnifier" --><a class="el" href="class_qwt_plot_magnifier.html" title="QwtPlotMagnifier provides zooming, by magnifying in steps.">QwtPlotMagnifier</a> provides zooming, by magnifying in steps. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="qwt__plot__magnifier_8h-source.html">qwt_plot_magnifier.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for QwtPlotMagnifier:</div> <div class="dynsection"> <p><center><img src="class_qwt_plot_magnifier__inherit__graph.png" border="0" usemap="#_qwt_plot_magnifier__inherit__map" alt="Inheritance graph"></center> <map name="_qwt_plot_magnifier__inherit__map"> <area shape="rect" href="class_qwt_magnifier.html" title="QwtMagnifier provides zooming, by magnifying in steps." alt="" coords="19,8,120,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="class_qwt_plot_magnifier-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></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_magnifier.html#b60fc56ac5a3f2e9ab879f0a9be0fdb9">QwtPlotMagnifier</a> (<a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</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_magnifier.html#38c0508241885ea49542cc0f11c740df">~QwtPlotMagnifier</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_magnifier.html#c8806df408b5ed9eac79cd38e5fc1508">setAxisEnabled</a> (int axis, bool on)</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_magnifier.html#cb4c33465bdd3c19c07ea3fa836c1f8d">isAxisEnabled</a> (int axis) 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_magnifier.html#947d94f9517bb096851738b5c2bf4b7d">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_magnifier.html#adc3279e94ae3aad04824377b2d93829">canvas</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_magnifier.html#e0197fb4f393e149585ff62f8e29cea6">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_magnifier.html#2cc4ae00009f34f54880aea9e9837826">plot</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">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_magnifier.html#271ae5ad42c3dd12812246d2dee687ea">rescale</a> (double factor)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="class_qwt_plot_magnifier.html" title="QwtPlotMagnifier provides zooming, by magnifying in steps.">QwtPlotMagnifier</a> provides zooming, by magnifying in steps. <p> Using <a class="el" href="class_qwt_plot_magnifier.html" title="QwtPlotMagnifier provides zooming, by magnifying in steps.">QwtPlotMagnifier</a> a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.<p> Together with <a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a> and <a class="el" href="class_qwt_plot_panner.html" title="QwtPlotPanner provides panning of a plot canvas.">QwtPlotPanner</a> it is possible to implement individual and powerful navigation of the plot canvas.<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_zoomer.html" title="QwtPlotZoomer provides stacked zooming for a plot widget.">QwtPlotZoomer</a>, <a class="el" href="class_qwt_plot_panner.html" title="QwtPlotPanner provides panning of a plot canvas.">QwtPlotPanner</a>, <a class="el" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> </dd></dl> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="b60fc56ac5a3f2e9ab879f0a9be0fdb9"></a><!-- doxytag: member="QwtPlotMagnifier::QwtPlotMagnifier" ref="b60fc56ac5a3f2e9ab879f0a9be0fdb9" args="(QwtPlotCanvas *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPlotMagnifier::QwtPlotMagnifier </td> <td>(</td> <td class="paramtype"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * </td> <td class="paramname"> <em>canvas</em> </td> <td> ) </td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor <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 be magnified </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="38c0508241885ea49542cc0f11c740df"></a><!-- doxytag: member="QwtPlotMagnifier::~QwtPlotMagnifier" ref="38c0508241885ea49542cc0f11c740df" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPlotMagnifier::~QwtPlotMagnifier </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="adc3279e94ae3aad04824377b2d93829"></a><!-- doxytag: member="QwtPlotMagnifier::canvas" ref="adc3279e94ae3aad04824377b2d93829" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotMagnifier::canvas </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Return Observed plot canvas. <p> </div> </div><p> <a class="anchor" name="947d94f9517bb096851738b5c2bf4b7d"></a><!-- doxytag: member="QwtPlotMagnifier::canvas" ref="947d94f9517bb096851738b5c2bf4b7d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_qwt_plot_canvas.html">QwtPlotCanvas</a> * QwtPlotMagnifier::canvas </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Return observed plot canvas. <p> </div> </div><p> <a class="anchor" name="cb4c33465bdd3c19c07ea3fa836c1f8d"></a><!-- doxytag: member="QwtPlotMagnifier::isAxisEnabled" ref="cb4c33465bdd3c19c07ea3fa836c1f8d" args="(int axis) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPlotMagnifier::isAxisEnabled </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>axis</em> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Test if an axis is enabled<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>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>True, if the axis is enabled</dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_magnifier.html#c8806df408b5ed9eac79cd38e5fc1508" title="En/Disable an axis.">setAxisEnabled()</a> </dd></dl> </div> </div><p> <a class="anchor" name="2cc4ae00009f34f54880aea9e9837826"></a><!-- doxytag: member="QwtPlotMagnifier::plot" ref="2cc4ae00009f34f54880aea9e9837826" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotMagnifier::plot </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Return plot widget, containing the observed plot canvas. <p> </div> </div><p> <a class="anchor" name="e0197fb4f393e149585ff62f8e29cea6"></a><!-- doxytag: member="QwtPlotMagnifier::plot" ref="e0197fb4f393e149585ff62f8e29cea6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotMagnifier::plot </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Return plot widget, containing the observed plot canvas. <p> </div> </div><p> <a class="anchor" name="271ae5ad42c3dd12812246d2dee687ea"></a><!-- doxytag: member="QwtPlotMagnifier::rescale" ref="271ae5ad42c3dd12812246d2dee687ea" args="(double factor)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPlotMagnifier::rescale </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>factor</em> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Zoom in/out the axes scales <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>factor</em> </td><td>A value < 1.0 zooms in, a value > 1.0 zooms out. </td></tr> </table> </dl> <p>Implements <a class="el" href="class_qwt_magnifier.html#5c3d5bda10412a50bd403afe84e2ccee">QwtMagnifier</a>.</p> </div> </div><p> <a class="anchor" name="c8806df408b5ed9eac79cd38e5fc1508"></a><!-- doxytag: member="QwtPlotMagnifier::setAxisEnabled" ref="c8806df408b5ed9eac79cd38e5fc1508" args="(int axis, bool on)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPlotMagnifier::setAxisEnabled </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>axis</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>on</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> En/Disable an axis. <p> Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged.<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>axis</em> </td><td>Axis, see <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a> </td></tr> <tr><td valign="top"></td><td valign="top"><em>on</em> </td><td>On/Off</td></tr> </table> </dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_magnifier.html#cb4c33465bdd3c19c07ea3fa836c1f8d">isAxisEnabled()</a> </dd></dl> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Mar 22 16:41:24 2009 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html>