123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <!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: QwtTransform 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_transform.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="class_qwt_transform-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtTransform Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A transformation between coordinate systems.
- <a href="class_qwt_transform.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__transform_8h_source.html">qwt_transform.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtTransform:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_transform__inherit__graph.png" border="0" usemap="#a_qwt_transform_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_transform_inherit__map" id="a_qwt_transform_inherit__map">
- <area shape="rect" title="A transformation between coordinate systems." alt="" coords="167,5,271,32"/>
- <area shape="rect" href="class_qwt_log_transform.html" title="Logarithmic transformation." alt="" coords="5,80,131,107"/>
- <area shape="rect" href="class_qwt_null_transform.html" title="Null transformation." alt="" coords="155,80,282,107"/>
- <area shape="rect" href="class_qwt_power_transform.html" title="A transformation using pow()" alt="" coords="306,80,446,107"/>
- </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-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:aa1fa1ab21d0fc01e06d3a6e462008d0b"><td class="memItemLeft" align="right" valign="top"><a id="aa1fa1ab21d0fc01e06d3a6e462008d0b"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#aa1fa1ab21d0fc01e06d3a6e462008d0b">QwtTransform</a> ()</td></tr>
- <tr class="memdesc:aa1fa1ab21d0fc01e06d3a6e462008d0b"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:aa1fa1ab21d0fc01e06d3a6e462008d0b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa2653db3104e672464dc569592fc14ab"><td class="memItemLeft" align="right" valign="top"><a id="aa2653db3104e672464dc569592fc14ab"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#aa2653db3104e672464dc569592fc14ab">~QwtTransform</a> ()</td></tr>
- <tr class="memdesc:aa2653db3104e672464dc569592fc14ab"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:aa2653db3104e672464dc569592fc14ab"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aef97acf17f900905f2a93cec7f61e643"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#aef97acf17f900905f2a93cec7f61e643">bounded</a> (double value) const</td></tr>
- <tr class="separator:aef97acf17f900905f2a93cec7f61e643"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1093b5856cbc6cf812460535442fb130"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#a1093b5856cbc6cf812460535442fb130">transform</a> (double value) const =0</td></tr>
- <tr class="separator:a1093b5856cbc6cf812460535442fb130"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5cfb0a329b8418028baf6974b188d76b"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#a5cfb0a329b8418028baf6974b188d76b">invTransform</a> (double value) const =0</td></tr>
- <tr class="separator:a5cfb0a329b8418028baf6974b188d76b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aae011ee4205fa4391459766d88971809"><td class="memItemLeft" align="right" valign="top"><a id="aae011ee4205fa4391459766d88971809"></a>
- virtual <a class="el" href="class_qwt_transform.html">QwtTransform</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_transform.html#aae011ee4205fa4391459766d88971809">copy</a> () const =0</td></tr>
- <tr class="memdesc:aae011ee4205fa4391459766d88971809"><td class="mdescLeft"> </td><td class="mdescRight">Virtualized copy operation. <br /></td></tr>
- <tr class="separator:aae011ee4205fa4391459766d88971809"><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 transformation between coordinate systems. </p>
- <p><a class="el" href="class_qwt_transform.html" title="A transformation between coordinate systems.">QwtTransform</a> manipulates values, when being mapped between the scale and the paint device coordinate system.</p>
- <p>A transformation consists of 2 methods:</p>
- <ul>
- <li>transform</li>
- <li>invTransform</li>
- </ul>
- <p>where one is is the inverse function of the other.</p>
- <p>When p1, p2 are the boundaries of the paint device coordinates and s1, s2 the boundaries of the scale, <a class="el" href="class_qwt_scale_map.html" title="A scale map.">QwtScaleMap</a> uses the following calculations:</p>
- <ul>
- <li>p = p1 + ( p2 - p1 ) * ( T( s ) - T( s1 ) / ( T( s2 ) - T( s1 ) );</li>
- <li>s = invT ( T( s1 ) + ( T( s2 ) - T( s1 ) ) * ( p - p1 ) / ( p2 - p1 ) ); </li>
- </ul>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="aef97acf17f900905f2a93cec7f61e643"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aef97acf17f900905f2a93cec7f61e643">◆ </a></span>bounded()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">double QwtTransform::bounded </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Modify value to be a valid value for the transformation. The default implementation does nothing.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>Value to be bounded </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>value unmodified </dd></dl>
- <p>Reimplemented in <a class="el" href="class_qwt_log_transform.html#a78fa3448e52f738c4907c3dc33874b9e">QwtLogTransform</a>.</p>
- </div>
- </div>
- <a id="a5cfb0a329b8418028baf6974b188d76b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5cfb0a329b8418028baf6974b188d76b">◆ </a></span>invTransform()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual double QwtTransform::invTransform </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Inverse transformation function</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>Value </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Modified value</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_transform.html#a1093b5856cbc6cf812460535442fb130">transform()</a> </dd></dl>
- <p>Implemented in <a class="el" href="class_qwt_power_transform.html#a474af795bf5362422e2be64da5e30b8c">QwtPowerTransform</a>, <a class="el" href="class_qwt_log_transform.html#a71a37e9762400eacbadb7d2c75456547">QwtLogTransform</a>, and <a class="el" href="class_qwt_null_transform.html#a33e7bd83a52c275ce5f1d04fa83a2a13">QwtNullTransform</a>.</p>
- </div>
- </div>
- <a id="a1093b5856cbc6cf812460535442fb130"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1093b5856cbc6cf812460535442fb130">◆ </a></span>transform()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual double QwtTransform::transform </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transformation function</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>Value </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Modified value</dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_transform.html#a5cfb0a329b8418028baf6974b188d76b">invTransform()</a> </dd></dl>
- <p>Implemented in <a class="el" href="class_qwt_power_transform.html#aba383b41c251759121ab76e8a10437d0">QwtPowerTransform</a>, <a class="el" href="class_qwt_log_transform.html#ab1a9d0f598911bebfbd7c9e4fac371f5">QwtLogTransform</a>, and <a class="el" href="class_qwt_null_transform.html#af3fd9ac63c157ea3dab991d02d936972">QwtNullTransform</a>.</p>
- </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_transform.html">QwtTransform</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>
|