123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767 |
- <!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: QwtScaleMap 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_scale_map.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-methods">Public Member Functions</a> |
- <a href="#pub-static-methods">Static Public Member Functions</a> |
- <a href="class_qwt_scale_map-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtScaleMap Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A scale map.
- <a href="class_qwt_scale_map.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>></code></p>
- <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:a9576a2e19c0be1d036fee344ab68f542"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">QwtScaleMap</a> ()</td></tr>
- <tr class="memdesc:a9576a2e19c0be1d036fee344ab68f542"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">More...</a><br /></td></tr>
- <tr class="separator:a9576a2e19c0be1d036fee344ab68f542"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a579bc766106d98edd7153e62ea77a19b"><td class="memItemLeft" align="right" valign="top"><a id="a579bc766106d98edd7153e62ea77a19b"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a579bc766106d98edd7153e62ea77a19b">QwtScaleMap</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &)</td></tr>
- <tr class="memdesc:a579bc766106d98edd7153e62ea77a19b"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br /></td></tr>
- <tr class="separator:a579bc766106d98edd7153e62ea77a19b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aecafd09423984a5e0ffa935d1b45110c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aecafd09423984a5e0ffa935d1b45110c">~QwtScaleMap</a> ()</td></tr>
- <tr class="separator:aecafd09423984a5e0ffa935d1b45110c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3f55ef14f8874e626380fcf92b096791"><td class="memItemLeft" align="right" valign="top"><a id="a3f55ef14f8874e626380fcf92b096791"></a>
- <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a3f55ef14f8874e626380fcf92b096791">operator=</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &)</td></tr>
- <tr class="memdesc:a3f55ef14f8874e626380fcf92b096791"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br /></td></tr>
- <tr class="separator:a3f55ef14f8874e626380fcf92b096791"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad8e971dd4be07801f0adc99549153718"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ad8e971dd4be07801f0adc99549153718">setTransformation</a> (<a class="el" href="class_qwt_transform.html">QwtTransform</a> *)</td></tr>
- <tr class="separator:ad8e971dd4be07801f0adc99549153718"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memItemLeft" align="right" valign="top"><a id="a810c561caaad7d6573a1e8ff06fe4b23"></a>
- const <a class="el" href="class_qwt_transform.html">QwtTransform</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a> () const</td></tr>
- <tr class="memdesc:a810c561caaad7d6573a1e8ff06fe4b23"><td class="mdescLeft"> </td><td class="mdescRight">Get the transformation. <br /></td></tr>
- <tr class="separator:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a994240e446986112f196a65657dc9755"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">setPaintInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>, double <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a>)</td></tr>
- <tr class="memdesc:a994240e446986112f196a65657dc9755"><td class="mdescLeft"> </td><td class="mdescRight">Specify the borders of the paint device interval. <a href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">More...</a><br /></td></tr>
- <tr class="separator:a994240e446986112f196a65657dc9755"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aaa33bc8e1aed7aa17d345053194e7094"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">setScaleInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a>, double <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a>)</td></tr>
- <tr class="memdesc:aaa33bc8e1aed7aa17d345053194e7094"><td class="mdescLeft"> </td><td class="mdescRight">Specify the borders of the scale interval. <a href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">More...</a><br /></td></tr>
- <tr class="separator:aaa33bc8e1aed7aa17d345053194e7094"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a504f1627e0e02ddac03d2ce46507b865"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a> (double s) const</td></tr>
- <tr class="separator:a504f1627e0e02ddac03d2ce46507b865"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a> (double p) const</td></tr>
- <tr class="separator:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a> () const</td></tr>
- <tr class="separator:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acd78b70fae83854a148fa3d08b13c261"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a> () const</td></tr>
- <tr class="separator:acd78b70fae83854a148fa3d08b13c261"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a64b15c76aa63a521447215018c75bf37"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a> () const</td></tr>
- <tr class="separator:a64b15c76aa63a521447215018c75bf37"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7c8c969923c15880c4620be1d814ef18"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a> () const</td></tr>
- <tr class="separator:a7c8c969923c15880c4620be1d814ef18"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a456d76a849af8c465692c0481bdd12ad"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a456d76a849af8c465692c0481bdd12ad">pDist</a> () const</td></tr>
- <tr class="separator:a456d76a849af8c465692c0481bdd12ad"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">sDist</a> () const</td></tr>
- <tr class="separator:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a283100be40b08db7df078b8a0ee1d19c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a283100be40b08db7df078b8a0ee1d19c">isInverting</a> () const</td></tr>
- <tr class="separator:a283100be40b08db7df078b8a0ee1d19c"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
- Static Public Member Functions</h2></td></tr>
- <tr class="memitem:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memItemLeft" align="right" valign="top">static QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#af99eeda829142128f97e0b6c4fbf9e1f">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QRectF &)</td></tr>
- <tr class="separator:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8fe572f224a14672684fd929c55568f8"><td class="memItemLeft" align="right" valign="top">static QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a8fe572f224a14672684fd929c55568f8">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QRectF &)</td></tr>
- <tr class="separator:a8fe572f224a14672684fd929c55568f8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memItemLeft" align="right" valign="top">static QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a6be600afa5bd75f5ff52b1f102b123b0">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QPointF &)</td></tr>
- <tr class="separator:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a08dc05a17283c531e2c1d79fd52bc56a"><td class="memItemLeft" align="right" valign="top">static QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a08dc05a17283c531e2c1d79fd52bc56a">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &, const QPointF &)</td></tr>
- <tr class="separator:a08dc05a17283c531e2c1d79fd52bc56a"><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 scale map. </p>
- <p><a class="el" href="class_qwt_scale_map.html" title="A scale map.">QwtScaleMap</a> offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa. </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a9576a2e19c0be1d036fee344ab68f542"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a9576a2e19c0be1d036fee344ab68f542">◆ </a></span>QwtScaleMap()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QwtScaleMap::QwtScaleMap </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor. </p>
- <p>The scale and paint device intervals are both set to [0,1]. </p>
- </div>
- </div>
- <a id="aecafd09423984a5e0ffa935d1b45110c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aecafd09423984a5e0ffa935d1b45110c">◆ </a></span>~QwtScaleMap()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QwtScaleMap::~QwtScaleMap </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Destructor </p>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a08dc05a17283c531e2c1d79fd52bc56a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a08dc05a17283c531e2c1d79fd52bc56a">◆ </a></span>invTransform() <span class="overload">[1/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QPointF QwtScaleMap::invTransform </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QPointF & </td>
- <td class="paramname"><em>pos</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform a rectangle from paint to scale coordinates</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>X map </td></tr>
- <tr><td class="paramname">yMap</td><td>Y map </td></tr>
- <tr><td class="paramname">pos</td><td>Position in paint coordinates </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Position in scale coordinates </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
- </div>
- </div>
- <a id="a8fe572f224a14672684fd929c55568f8"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8fe572f224a14672684fd929c55568f8">◆ </a></span>invTransform() <span class="overload">[2/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QRectF QwtScaleMap::invTransform </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform a rectangle from paint to scale coordinates</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>X map </td></tr>
- <tr><td class="paramname">yMap</td><td>Y map </td></tr>
- <tr><td class="paramname">rect</td><td>Rectangle in paint coordinates </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Rectangle in scale coordinates </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
- </div>
- </div>
- <a id="ab1ee6d62addf3f9cf091d425be9ac642"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab1ee6d62addf3f9cf091d425be9ac642">◆ </a></span>invTransform() <span class="overload">[3/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::invTransform </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>p</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform an paint device value into a value in the interval of the scale.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">p</td><td>Value relative to the coordinates of the paint device </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>
- </div>
- </div>
- <a id="a283100be40b08db7df078b8a0ee1d19c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a283100be40b08db7df078b8a0ee1d19c">◆ </a></span>isInverting()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtScaleMap::isInverting </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, when ( <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a> < <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> ) != ( <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a> < <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> ) </dd></dl>
- </div>
- </div>
- <a id="a4d03a9fea3bd9b66a0b882b8b1a58f4b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4d03a9fea3bd9b66a0b882b8b1a58f4b">◆ </a></span>p1()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::p1 </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>First border of the paint interval </dd></dl>
- </div>
- </div>
- <a id="acd78b70fae83854a148fa3d08b13c261"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acd78b70fae83854a148fa3d08b13c261">◆ </a></span>p2()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::p2 </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Second border of the paint interval </dd></dl>
- </div>
- </div>
- <a id="a456d76a849af8c465692c0481bdd12ad"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a456d76a849af8c465692c0481bdd12ad">◆ </a></span>pDist()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::pDist </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> - <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a>) </dd></dl>
- </div>
- </div>
- <a id="a64b15c76aa63a521447215018c75bf37"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a64b15c76aa63a521447215018c75bf37">◆ </a></span>s1()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::s1 </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>First border of the scale interval </dd></dl>
- </div>
- </div>
- <a id="a7c8c969923c15880c4620be1d814ef18"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7c8c969923c15880c4620be1d814ef18">◆ </a></span>s2()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::s2 </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Second border of the scale interval </dd></dl>
- </div>
- </div>
- <a id="a953eb3e6584d8a6ca4d5fff98a9a0aa0"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a953eb3e6584d8a6ca4d5fff98a9a0aa0">◆ </a></span>sDist()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::sDist </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> - <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a>) </dd></dl>
- </div>
- </div>
- <a id="a994240e446986112f196a65657dc9755"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a994240e446986112f196a65657dc9755">◆ </a></span>setPaintInterval()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtScaleMap::setPaintInterval </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>p1</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>p2</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Specify the borders of the paint device interval. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">p1</td><td>first border </td></tr>
- <tr><td class="paramname">p2</td><td>second border </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="aaa33bc8e1aed7aa17d345053194e7094"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aaa33bc8e1aed7aa17d345053194e7094">◆ </a></span>setScaleInterval()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtScaleMap::setScaleInterval </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>s1</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>s2</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Specify the borders of the scale interval. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">s1</td><td>first border </td></tr>
- <tr><td class="paramname">s2</td><td>second border </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section warning"><dt>Warning</dt><dd>scales might be aligned to transformation depending boundaries </dd></dl>
- </div>
- </div>
- <a id="ad8e971dd4be07801f0adc99549153718"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad8e971dd4be07801f0adc99549153718">◆ </a></span>setTransformation()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtScaleMap::setTransformation </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_transform.html">QwtTransform</a> * </td>
- <td class="paramname"><em>transform</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Initialize the map with a transformation </p>
- </div>
- </div>
- <a id="a6be600afa5bd75f5ff52b1f102b123b0"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6be600afa5bd75f5ff52b1f102b123b0">◆ </a></span>transform() <span class="overload">[1/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QPointF QwtScaleMap::transform </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QPointF & </td>
- <td class="paramname"><em>pos</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform a point from scale to paint coordinates</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>X map </td></tr>
- <tr><td class="paramname">yMap</td><td>Y map </td></tr>
- <tr><td class="paramname">pos</td><td>Position in scale coordinates </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Position in paint coordinates</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>
- </div>
- </div>
- <a id="af99eeda829142128f97e0b6c4fbf9e1f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af99eeda829142128f97e0b6c4fbf9e1f">◆ </a></span>transform() <span class="overload">[2/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QRectF QwtScaleMap::transform </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform a rectangle from scale to paint coordinates</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>X map </td></tr>
- <tr><td class="paramname">yMap</td><td>Y map </td></tr>
- <tr><td class="paramname">rect</td><td>Rectangle in scale coordinates </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Rectangle in paint coordinates</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>
- </div>
- </div>
- <a id="a504f1627e0e02ddac03d2ce46507b865"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a504f1627e0e02ddac03d2ce46507b865">◆ </a></span>transform() <span class="overload">[3/3]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtScaleMap::transform </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>s</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform a point related to the scale interval into an point related to the interval of the paint device</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">s</td><td>Value relative to the coordinates of the scale </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </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_scale_map.html">QwtScaleMap</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>
|