123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtPlotRescaler Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_plot_rescaler.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-types">Public Types</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_plot_rescaler-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtPlotRescaler Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p><a class="el" href="class_qwt_plot_rescaler.html" title="QwtPlotRescaler takes care of fixed aspect ratios for plot scales.">QwtPlotRescaler</a> takes care of fixed aspect ratios for plot scales.
- <a href="class_qwt_plot_rescaler.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__plot__rescaler_8h_source.html">qwt_plot_rescaler.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtPlotRescaler:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_plot_rescaler__inherit__graph.png" border="0" usemap="#a_qwt_plot_rescaler_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_plot_rescaler_inherit__map" id="a_qwt_plot_rescaler_inherit__map">
- <area shape="rect" title="QwtPlotRescaler takes care of fixed aspect ratios for plot scales." alt="" coords="5,80,125,107"/>
- <area shape="rect" title=" " alt="" coords="30,5,101,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:a6a614b832876a7641cb5410ba81d9d6a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> { <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6aab8f9ce10c092bee12de74b05a46b6e9c">Fixed</a>,
- <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6aac0b9db1ea3c5666792c2a9813ca5d7e1">Expanding</a>,
- <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6aa30a43b11d9df23f66110b65d1e249db1">Fitting</a>
- }</td></tr>
- <tr class="separator:a6a614b832876a7641cb5410ba81d9d6a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1c314e9513cef076a79381111aa67585"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a> { <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585a10adc202ca84a06179b905db6802668c">ExpandUp</a>,
- <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585a856d9a1fe75ed6398a1b3c4b60f3fbfd">ExpandDown</a>,
- <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585a3dfb8208dfb62200761e4221763db033">ExpandBoth</a>
- }</td></tr>
- <tr class="separator:a1c314e9513cef076a79381111aa67585"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a4bef342d0a571af31685c2ff88def5d5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a4bef342d0a571af31685c2ff88def5d5">QwtPlotRescaler</a> (QWidget *<a class="el" href="class_qwt_plot_rescaler.html#ad4aa9bf81032b822b848774ee21142ce">canvas</a>, int <a class="el" href="class_qwt_plot_rescaler.html#a207a8382199ab99a91d9c93d27aa5cf2">referenceAxis</a>=<a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271ad5566960e78f2473c1a1e853def4c4ac">QwtPlot::xBottom</a>, <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a>=<a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6aac0b9db1ea3c5666792c2a9813ca5d7e1">Expanding</a>)</td></tr>
- <tr class="separator:a4bef342d0a571af31685c2ff88def5d5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae34a0dbae9074c211f36c765142d8ddd"><td class="memItemLeft" align="right" valign="top"><a id="ae34a0dbae9074c211f36c765142d8ddd"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#ae34a0dbae9074c211f36c765142d8ddd">~QwtPlotRescaler</a> ()</td></tr>
- <tr class="memdesc:ae34a0dbae9074c211f36c765142d8ddd"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:ae34a0dbae9074c211f36c765142d8ddd"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6f1c886d127ec4943552170dc63edf29"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a6f1c886d127ec4943552170dc63edf29">setEnabled</a> (bool)</td></tr>
- <tr class="memdesc:a6f1c886d127ec4943552170dc63edf29"><td class="mdescLeft"> </td><td class="mdescRight">En/disable the rescaler. <a href="class_qwt_plot_rescaler.html#a6f1c886d127ec4943552170dc63edf29">More...</a><br /></td></tr>
- <tr class="separator:a6f1c886d127ec4943552170dc63edf29"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a85a9b40054acaab051f3679db1547b81"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a85a9b40054acaab051f3679db1547b81">isEnabled</a> () const</td></tr>
- <tr class="separator:a85a9b40054acaab051f3679db1547b81"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae6b7df41b5387d0aed532559546e40b6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#ae6b7df41b5387d0aed532559546e40b6">setRescalePolicy</a> (<a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a>)</td></tr>
- <tr class="separator:ae6b7df41b5387d0aed532559546e40b6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac5a49fa34b071da28517efe6212d81ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#ac5a49fa34b071da28517efe6212d81ea">rescalePolicy</a> () const</td></tr>
- <tr class="separator:ac5a49fa34b071da28517efe6212d81ea"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa2ecffbc14d951ab9f1809c14bc4e21b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#aa2ecffbc14d951ab9f1809c14bc4e21b">setExpandingDirection</a> (<a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a>)</td></tr>
- <tr class="separator:aa2ecffbc14d951ab9f1809c14bc4e21b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1681eb01b65b91e8b2583d87f890576f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a1681eb01b65b91e8b2583d87f890576f">setExpandingDirection</a> (int axis, <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a>)</td></tr>
- <tr class="separator:a1681eb01b65b91e8b2583d87f890576f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acdd929d4b55be6956acd4ec5d0df9467"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#acdd929d4b55be6956acd4ec5d0df9467">expandingDirection</a> (int axis) const</td></tr>
- <tr class="separator:acdd929d4b55be6956acd4ec5d0df9467"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6f13d60cc1e1071a6830ea30ccbcca37"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a6f13d60cc1e1071a6830ea30ccbcca37">setReferenceAxis</a> (int axis)</td></tr>
- <tr class="separator:a6f13d60cc1e1071a6830ea30ccbcca37"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a207a8382199ab99a91d9c93d27aa5cf2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a207a8382199ab99a91d9c93d27aa5cf2">referenceAxis</a> () const</td></tr>
- <tr class="separator:a207a8382199ab99a91d9c93d27aa5cf2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a31f71937b4cff3e60f74db83beb6d2de"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a31f71937b4cff3e60f74db83beb6d2de">setAspectRatio</a> (double ratio)</td></tr>
- <tr class="separator:a31f71937b4cff3e60f74db83beb6d2de"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa747f1cf3ecc3a37f98d0972e1db600b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#aa747f1cf3ecc3a37f98d0972e1db600b">setAspectRatio</a> (int axis, double ratio)</td></tr>
- <tr class="separator:aa747f1cf3ecc3a37f98d0972e1db600b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a76bc7cc4987b1572e12431b8128500ae"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a76bc7cc4987b1572e12431b8128500ae">aspectRatio</a> (int axis) const</td></tr>
- <tr class="separator:a76bc7cc4987b1572e12431b8128500ae"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afefb0ec065ff855785d0198fc04a07d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#afefb0ec065ff855785d0198fc04a07d3">setIntervalHint</a> (int axis, const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &)</td></tr>
- <tr class="separator:afefb0ec065ff855785d0198fc04a07d3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac3f9475494b33ebc1a1e8103e327d56b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_interval.html">QwtInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#ac3f9475494b33ebc1a1e8103e327d56b">intervalHint</a> (int axis) const</td></tr>
- <tr class="separator:ac3f9475494b33ebc1a1e8103e327d56b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad4aa9bf81032b822b848774ee21142ce"><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#ad4aa9bf81032b822b848774ee21142ce">canvas</a> ()</td></tr>
- <tr class="separator:ad4aa9bf81032b822b848774ee21142ce"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a49e3d4084037f6786c5bb6a8d2c78047"><td class="memItemLeft" align="right" valign="top">const QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a49e3d4084037f6786c5bb6a8d2c78047">canvas</a> () const</td></tr>
- <tr class="separator:a49e3d4084037f6786c5bb6a8d2c78047"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aca7a946dd53744e4640be383cd161a7c"><td class="memItemLeft" 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_rescaler.html#aca7a946dd53744e4640be383cd161a7c">plot</a> ()</td></tr>
- <tr class="separator:aca7a946dd53744e4640be383cd161a7c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae54220a61cab777a6cb60103091a0aa3"><td class="memItemLeft" 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_rescaler.html#ae54220a61cab777a6cb60103091a0aa3">plot</a> () const</td></tr>
- <tr class="separator:ae54220a61cab777a6cb60103091a0aa3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2a6809f3940b9114a1faed30f6edc3d0"><td class="memItemLeft" align="right" valign="top"><a id="a2a6809f3940b9114a1faed30f6edc3d0"></a>
- virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a2a6809f3940b9114a1faed30f6edc3d0">eventFilter</a> (QObject *, QEvent *)</td></tr>
- <tr class="memdesc:a2a6809f3940b9114a1faed30f6edc3d0"><td class="mdescLeft"> </td><td class="mdescRight">Event filter for the plot canvas. <br /></td></tr>
- <tr class="separator:a2a6809f3940b9114a1faed30f6edc3d0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af4b1840575eb6812c23acd9be199e5df"><td class="memItemLeft" align="right" valign="top"><a id="af4b1840575eb6812c23acd9be199e5df"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#af4b1840575eb6812c23acd9be199e5df">rescale</a> () const</td></tr>
- <tr class="memdesc:af4b1840575eb6812c23acd9be199e5df"><td class="mdescLeft"> </td><td class="mdescRight">Adjust the plot axes scales. <br /></td></tr>
- <tr class="separator:af4b1840575eb6812c23acd9be199e5df"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:a5490a4a1b576b1118c095cc54810e2aa"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a5490a4a1b576b1118c095cc54810e2aa">canvasResizeEvent</a> (QResizeEvent *)</td></tr>
- <tr class="separator:a5490a4a1b576b1118c095cc54810e2aa"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1a98f9c7a1102e486ce81a2833799155"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a1a98f9c7a1102e486ce81a2833799155">rescale</a> (const QSize &oldSize, const QSize &newSize) const</td></tr>
- <tr class="separator:a1a98f9c7a1102e486ce81a2833799155"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a163fd15cb5e6fa1c855ff069f1711c5c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_qwt_interval.html">QwtInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a163fd15cb5e6fa1c855ff069f1711c5c">expandScale</a> (int axis, const QSize &oldSize, const QSize &newSize) const</td></tr>
- <tr class="separator:a163fd15cb5e6fa1c855ff069f1711c5c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a21f64ee537246c96bb724f09f3a6524c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_qwt_interval.html">QwtInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a21f64ee537246c96bb724f09f3a6524c">syncScale</a> (int axis, const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &reference, const QSize &size) const</td></tr>
- <tr class="separator:a21f64ee537246c96bb724f09f3a6524c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aaead8df76bb22831577fd11ed6d46e5a"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#aaead8df76bb22831577fd11ed6d46e5a">updateScales</a> (<a class="el" href="class_qwt_interval.html">QwtInterval</a> intervals[<a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271aea62036dfd48ee0f9450718592614892">QwtPlot::axisCnt</a>]) const</td></tr>
- <tr class="separator:aaead8df76bb22831577fd11ed6d46e5a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6a4435f91c459517db9e08bd30b1ad37"><td class="memItemLeft" align="right" valign="top">Qt::Orientation </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a6a4435f91c459517db9e08bd30b1ad37">orientation</a> (int axis) const</td></tr>
- <tr class="separator:a6a4435f91c459517db9e08bd30b1ad37"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afa1a81034796b68339fcb71ef179c394"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_interval.html">QwtInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#afa1a81034796b68339fcb71ef179c394">interval</a> (int axis) const</td></tr>
- <tr class="separator:afa1a81034796b68339fcb71ef179c394"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3dfd3bd03394c66ede8e37478d32784c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_interval.html">QwtInterval</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_rescaler.html#a3dfd3bd03394c66ede8e37478d32784c">expandInterval</a> (const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &, double width, <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a>) const</td></tr>
- <tr class="separator:a3dfd3bd03394c66ede8e37478d32784c"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p><a class="el" href="class_qwt_plot_rescaler.html" title="QwtPlotRescaler takes care of fixed aspect ratios for plot scales.">QwtPlotRescaler</a> takes care of fixed aspect ratios for plot scales. </p>
- <p><a class="el" href="class_qwt_plot_rescaler.html" title="QwtPlotRescaler takes care of fixed aspect ratios for plot scales.">QwtPlotRescaler</a> auto adjusts the axes of a <a class="el" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> according to fixed aspect ratios. </p>
- </div><h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="a1c314e9513cef076a79381111aa67585"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1c314e9513cef076a79381111aa67585">◆ </a></span>ExpandingDirection</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">QwtPlotRescaler::ExpandingDirection</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>When <a class="el" href="class_qwt_plot_rescaler.html#ac5a49fa34b071da28517efe6212d81ea">rescalePolicy()</a> is set to Expanding its direction depends on ExpandingDirection </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a1c314e9513cef076a79381111aa67585a10adc202ca84a06179b905db6802668c"></a>ExpandUp </td><td class="fielddoc"><p>The upper limit of the scale is adjusted. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a1c314e9513cef076a79381111aa67585a856d9a1fe75ed6398a1b3c4b60f3fbfd"></a>ExpandDown </td><td class="fielddoc"><p>The lower limit of the scale is adjusted. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a1c314e9513cef076a79381111aa67585a3dfb8208dfb62200761e4221763db033"></a>ExpandBoth </td><td class="fielddoc"><p>Both limits of the scale are adjusted. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <a id="a6a614b832876a7641cb5410ba81d9d6a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6a614b832876a7641cb5410ba81d9d6a">◆ </a></span>RescalePolicy</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">QwtPlotRescaler::RescalePolicy</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The rescale policy defines how to rescale the reference axis and their depending axes.</p>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a>, <a class="el" href="class_qwt_plot_rescaler.html#afefb0ec065ff855785d0198fc04a07d3">setIntervalHint()</a> </dd></dl>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a6a614b832876a7641cb5410ba81d9d6aab8f9ce10c092bee12de74b05a46b6e9c"></a>Fixed </td><td class="fielddoc"><p>The interval of the reference axis remains unchanged, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a6a614b832876a7641cb5410ba81d9d6aac0b9db1ea3c5666792c2a9813ca5d7e1"></a>Expanding </td><td class="fielddoc"><p>The interval of the reference axis will be shrunk/expanded, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio.</p>
- <p>The interval, that is represented by one pixel is fixed. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a6a614b832876a7641cb5410ba81d9d6aa30a43b11d9df23f66110b65d1e249db1"></a>Fitting </td><td class="fielddoc"><p>The intervals of the axes are calculated, so that all axes include their interval hint. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a4bef342d0a571af31685c2ff88def5d5"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4bef342d0a571af31685c2ff88def5d5">◆ </a></span>QwtPlotRescaler()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtPlotRescaler::QwtPlotRescaler </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>canvas</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>referenceAxis</em> = <code><a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271ad5566960e78f2473c1a1e853def4c4ac">QwtPlot::xBottom</a></code>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> </td>
- <td class="paramname"><em>policy</em> = <code><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6aac0b9db1ea3c5666792c2a9813ca5d7e1">Expanding</a></code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">canvas</td><td>Canvas </td></tr>
- <tr><td class="paramname">referenceAxis</td><td>Reference axis, see RescalePolicy </td></tr>
- <tr><td class="paramname">policy</td><td>Rescale policy</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#ae6b7df41b5387d0aed532559546e40b6">setRescalePolicy()</a>, <a class="el" href="class_qwt_plot_rescaler.html#a6f13d60cc1e1071a6830ea30ccbcca37">setReferenceAxis()</a> </dd></dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a76bc7cc4987b1572e12431b8128500ae"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a76bc7cc4987b1572e12431b8128500ae">◆ </a></span>aspectRatio()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtPlotRescaler::aspectRatio </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">
- <dl class="section return"><dt>Returns</dt><dd>Aspect ratio between an axis and the reference axis.</dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a31f71937b4cff3e60f74db83beb6d2de">setAspectRatio()</a> </dd></dl>
- </div>
- </div>
- <a id="ad4aa9bf81032b822b848774ee21142ce"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad4aa9bf81032b822b848774ee21142ce">◆ </a></span>canvas() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QWidget * QwtPlotRescaler::canvas </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>plot canvas </dd></dl>
- </div>
- </div>
- <a id="a49e3d4084037f6786c5bb6a8d2c78047"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a49e3d4084037f6786c5bb6a8d2c78047">◆ </a></span>canvas() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QWidget * QwtPlotRescaler::canvas </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>plot canvas </dd></dl>
- </div>
- </div>
- <a id="a5490a4a1b576b1118c095cc54810e2aa"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5490a4a1b576b1118c095cc54810e2aa">◆ </a></span>canvasResizeEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::canvasResizeEvent </td>
- <td>(</td>
- <td class="paramtype">QResizeEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Event handler for resize events of the plot canvas</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Resize event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#af4b1840575eb6812c23acd9be199e5df" title="Adjust the plot axes scales.">rescale()</a> </dd></dl>
- </div>
- </div>
- <a id="acdd929d4b55be6956acd4ec5d0df9467"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acdd929d4b55be6956acd4ec5d0df9467">◆ </a></span>expandingDirection()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">QwtPlotRescaler::ExpandingDirection</a> QwtPlotRescaler::expandingDirection </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">
- <dl class="section return"><dt>Returns</dt><dd>Direction in which an axis should be expanded</dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#aa2ecffbc14d951ab9f1809c14bc4e21b">setExpandingDirection()</a> </dd></dl>
- </div>
- </div>
- <a id="a3dfd3bd03394c66ede8e37478d32784c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3dfd3bd03394c66ede8e37478d32784c">◆ </a></span>expandInterval()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtPlotRescaler::expandInterval </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td>
- <td class="paramname"><em>interval</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>width</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a> </td>
- <td class="paramname"><em>direction</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Expand the interval</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">interval</td><td>Interval to be expanded </td></tr>
- <tr><td class="paramname">width</td><td>Distance to be added to the interval </td></tr>
- <tr><td class="paramname">direction</td><td>Direction of the expand operation</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Expanded interval </dd></dl>
- </div>
- </div>
- <a id="a163fd15cb5e6fa1c855ff069f1711c5c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a163fd15cb5e6fa1c855ff069f1711c5c">◆ </a></span>expandScale()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtPlotRescaler::expandScale </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">const QSize & </td>
- <td class="paramname"><em>oldSize</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QSize & </td>
- <td class="paramname"><em>newSize</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the new scale interval of a plot axis</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- <tr><td class="paramname">oldSize</td><td>Previous size of the canvas </td></tr>
- <tr><td class="paramname">newSize</td><td>New size of the canvas</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Calculated new interval for the axis </dd></dl>
- </div>
- </div>
- <a id="afa1a81034796b68339fcb71ef179c394"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#afa1a81034796b68339fcb71ef179c394">◆ </a></span>interval()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtPlotRescaler::interval </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>axis</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Normalized interval of an axis </dd></dl>
- </div>
- </div>
- <a id="ac3f9475494b33ebc1a1e8103e327d56b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac3f9475494b33ebc1a1e8103e327d56b">◆ </a></span>intervalHint()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtPlotRescaler::intervalHint </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">
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis, see <a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271" title="Axis index.">QwtPlot::Axis</a> </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Interval hint </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#afefb0ec065ff855785d0198fc04a07d3">setIntervalHint()</a>, <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> </dd></dl>
- </div>
- </div>
- <a id="a85a9b40054acaab051f3679db1547b81"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a85a9b40054acaab051f3679db1547b81">◆ </a></span>isEnabled()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPlotRescaler::isEnabled </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>true when enabled, false otherwise </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a6f1c886d127ec4943552170dc63edf29" title="En/disable the rescaler.">setEnabled</a>, <a class="el" href="class_qwt_plot_rescaler.html#a2a6809f3940b9114a1faed30f6edc3d0" title="Event filter for the plot canvas.">eventFilter()</a> </dd></dl>
- </div>
- </div>
- <a id="a6a4435f91c459517db9e08bd30b1ad37"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6a4435f91c459517db9e08bd30b1ad37">◆ </a></span>orientation()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">Qt::Orientation QwtPlotRescaler::orientation </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>axis</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Orientation of an axis </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="aca7a946dd53744e4640be383cd161a7c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aca7a946dd53744e4640be383cd161a7c">◆ </a></span>plot() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotRescaler::plot </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>plot widget </dd></dl>
- </div>
- </div>
- <a id="ae54220a61cab777a6cb60103091a0aa3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae54220a61cab777a6cb60103091a0aa3">◆ </a></span>plot() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * QwtPlotRescaler::plot </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>plot widget </dd></dl>
- </div>
- </div>
- <a id="a207a8382199ab99a91d9c93d27aa5cf2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a207a8382199ab99a91d9c93d27aa5cf2">◆ </a></span>referenceAxis()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int QwtPlotRescaler::referenceAxis </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Reference axis ( see RescalePolicy ) </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a6f13d60cc1e1071a6830ea30ccbcca37">setReferenceAxis()</a> </dd></dl>
- </div>
- </div>
- <a id="a1a98f9c7a1102e486ce81a2833799155"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1a98f9c7a1102e486ce81a2833799155">◆ </a></span>rescale()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::rescale </td>
- <td>(</td>
- <td class="paramtype">const QSize & </td>
- <td class="paramname"><em>oldSize</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QSize & </td>
- <td class="paramname"><em>newSize</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Adjust the plot axes scales</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">oldSize</td><td>Previous size of the canvas </td></tr>
- <tr><td class="paramname">newSize</td><td>New size of the canvas </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ac5a49fa34b071da28517efe6212d81ea"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac5a49fa34b071da28517efe6212d81ea">◆ </a></span>rescalePolicy()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">QwtPlotRescaler::RescalePolicy</a> QwtPlotRescaler::rescalePolicy </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Rescale policy </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#ae6b7df41b5387d0aed532559546e40b6">setRescalePolicy()</a> </dd></dl>
- </div>
- </div>
- <a id="a31f71937b4cff3e60f74db83beb6d2de"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a31f71937b4cff3e60f74db83beb6d2de">◆ </a></span>setAspectRatio() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setAspectRatio </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>ratio</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the aspect ratio between the scale of the reference axis and the other scales. The default ratio is 1.0</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">ratio</td><td>Aspect ratio </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a76bc7cc4987b1572e12431b8128500ae">aspectRatio()</a> </dd></dl>
- </div>
- </div>
- <a id="aa747f1cf3ecc3a37f98d0972e1db600b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa747f1cf3ecc3a37f98d0972e1db600b">◆ </a></span>setAspectRatio() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setAspectRatio </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">double </td>
- <td class="paramname"><em>ratio</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the aspect ratio between the scale of the reference axis and another scale. The default ratio is 1.0</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- <tr><td class="paramname">ratio</td><td>Aspect ratio </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a76bc7cc4987b1572e12431b8128500ae">aspectRatio()</a> </dd></dl>
- </div>
- </div>
- <a id="a6f1c886d127ec4943552170dc63edf29"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6f1c886d127ec4943552170dc63edf29">◆ </a></span>setEnabled()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setEnabled </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>En/disable the rescaler. </p>
- <p>When enabled is true an event filter is installed for the canvas, otherwise the event filter is removed.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">on</td><td>true or false </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a85a9b40054acaab051f3679db1547b81">isEnabled()</a>, <a class="el" href="class_qwt_plot_rescaler.html#a2a6809f3940b9114a1faed30f6edc3d0" title="Event filter for the plot canvas.">eventFilter()</a> </dd></dl>
- </div>
- </div>
- <a id="aa2ecffbc14d951ab9f1809c14bc4e21b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa2ecffbc14d951ab9f1809c14bc4e21b">◆ </a></span>setExpandingDirection() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setExpandingDirection </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a> </td>
- <td class="paramname"><em>direction</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the direction in which all axis should be expanded</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">direction</td><td>Direction </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#acdd929d4b55be6956acd4ec5d0df9467">expandingDirection()</a> </dd></dl>
- </div>
- </div>
- <a id="a1681eb01b65b91e8b2583d87f890576f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1681eb01b65b91e8b2583d87f890576f">◆ </a></span>setExpandingDirection() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setExpandingDirection </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"><a class="el" href="class_qwt_plot_rescaler.html#a1c314e9513cef076a79381111aa67585">ExpandingDirection</a> </td>
- <td class="paramname"><em>direction</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the direction in which an axis should be expanded</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- <tr><td class="paramname">direction</td><td>Direction </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#acdd929d4b55be6956acd4ec5d0df9467">expandingDirection()</a> </dd></dl>
- </div>
- </div>
- <a id="afefb0ec065ff855785d0198fc04a07d3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#afefb0ec065ff855785d0198fc04a07d3">◆ </a></span>setIntervalHint()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setIntervalHint </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">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td>
- <td class="paramname"><em>interval</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set an interval hint for an axis</p>
- <p>In Fitting mode, the hint is used as minimal interval that always needs to be displayed.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis, see <a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271" title="Axis index.">QwtPlot::Axis</a> </td></tr>
- <tr><td class="paramname">interval</td><td>Axis </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#ac3f9475494b33ebc1a1e8103e327d56b">intervalHint()</a>, <a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> </dd></dl>
- </div>
- </div>
- <a id="a6f13d60cc1e1071a6830ea30ccbcca37"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6f13d60cc1e1071a6830ea30ccbcca37">◆ </a></span>setReferenceAxis()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setReferenceAxis </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>axis</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the reference axis ( see RescalePolicy )</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( <a class="el" href="class_qwt_plot.html#a81df699dcf9dde0752c0726b5f31e271" title="Axis index.">QwtPlot::Axis</a> ) </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#a207a8382199ab99a91d9c93d27aa5cf2">referenceAxis()</a> </dd></dl>
- </div>
- </div>
- <a id="ae6b7df41b5387d0aed532559546e40b6"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae6b7df41b5387d0aed532559546e40b6">◆ </a></span>setRescalePolicy()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::setRescalePolicy </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_plot_rescaler.html#a6a614b832876a7641cb5410ba81d9d6a">RescalePolicy</a> </td>
- <td class="paramname"><em>policy</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Change the rescale policy</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">policy</td><td>Rescale policy </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_plot_rescaler.html#ac5a49fa34b071da28517efe6212d81ea">rescalePolicy()</a> </dd></dl>
- </div>
- </div>
- <a id="a21f64ee537246c96bb724f09f3a6524c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a21f64ee537246c96bb724f09f3a6524c">◆ </a></span>syncScale()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_interval.html">QwtInterval</a> QwtPlotRescaler::syncScale </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">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> & </td>
- <td class="paramname"><em>reference</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QSize & </td>
- <td class="paramname"><em>size</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Synchronize an axis scale according to the scale of the reference axis</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">axis</td><td>Axis index ( see QwtPlot::AxisId ) </td></tr>
- <tr><td class="paramname">reference</td><td>Interval of the reference axis </td></tr>
- <tr><td class="paramname">size</td><td>Size of the canvas</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>New interval for axis </dd></dl>
- </div>
- </div>
- <a id="aaead8df76bb22831577fd11ed6d46e5a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aaead8df76bb22831577fd11ed6d46e5a">◆ </a></span>updateScales()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPlotRescaler::updateScales </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_interval.html">QwtInterval</a> </td>
- <td class="paramname"><em>intervals</em>[QwtPlot::axisCnt]</td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Update the axes scales</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">intervals</td><td>Scale intervals </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_plot_rescaler.html">QwtPlotRescaler</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|