class_qwt_scale_arithmetic.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.20"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Qwt User&#39;s Guide: QwtScaleArithmetic Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectalign" style="padding-left: 0.5em;">
  28. <div id="projectname">Qwt User&#39;s Guide
  29. &#160;<span id="projectnumber">6.1.6</span>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <!-- Generated by Doxygen 1.8.20 -->
  38. <script type="text/javascript">
  39. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  40. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  41. /* @license-end */
  42. </script>
  43. <script type="text/javascript" src="menudata.js"></script>
  44. <script type="text/javascript" src="menu.js"></script>
  45. <script type="text/javascript">
  46. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  47. $(function() {
  48. initMenu('',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. /* @license-end */</script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  66. $(document).ready(function(){initNavTree('class_qwt_scale_arithmetic.html',''); initResizable(); });
  67. /* @license-end */
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  85. <a href="class_qwt_scale_arithmetic-members.html">List of all members</a> </div>
  86. <div class="headertitle">
  87. <div class="title">QwtScaleArithmetic Class Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p>Arithmetic including a tolerance.
  91. <a href="class_qwt_scale_arithmetic.html#details">More...</a></p>
  92. <p><code>#include &lt;<a class="el" href="qwt__scale__engine_8h_source.html">qwt_scale_engine.h</a>&gt;</code></p>
  93. <table class="memberdecls">
  94. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  95. Static Public Member Functions</h2></td></tr>
  96. <tr class="memitem:a86da4fc0928457d03201d8b520d7d816"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_arithmetic.html#a86da4fc0928457d03201d8b520d7d816">ceilEps</a> (double value, double intervalSize)</td></tr>
  97. <tr class="separator:a86da4fc0928457d03201d8b520d7d816"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a924d97f2e5db236f43f4d65e430e09c1"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_arithmetic.html#a924d97f2e5db236f43f4d65e430e09c1">floorEps</a> (double value, double intervalSize)</td></tr>
  99. <tr class="separator:a924d97f2e5db236f43f4d65e430e09c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a349d85f9c5df08e950827a2fde7da59e"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_arithmetic.html#a349d85f9c5df08e950827a2fde7da59e">divideEps</a> (double intervalSize, double numSteps)</td></tr>
  101. <tr class="memdesc:a349d85f9c5df08e950827a2fde7da59e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an interval into steps. <a href="class_qwt_scale_arithmetic.html#a349d85f9c5df08e950827a2fde7da59e">More...</a><br /></td></tr>
  102. <tr class="separator:a349d85f9c5df08e950827a2fde7da59e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a9d50d78310bbd82289f2558ad436667a"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_arithmetic.html#a9d50d78310bbd82289f2558ad436667a">divideInterval</a> (double intervalSize, int numSteps, uint base)</td></tr>
  104. <tr class="separator:a9d50d78310bbd82289f2558ad436667a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. </table>
  106. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  107. <div class="textblock"><p>Arithmetic including a tolerance. </p>
  108. </div><h2 class="groupheader">Member Function Documentation</h2>
  109. <a id="a86da4fc0928457d03201d8b520d7d816"></a>
  110. <h2 class="memtitle"><span class="permalink"><a href="#a86da4fc0928457d03201d8b520d7d816">&#9670;&nbsp;</a></span>ceilEps()</h2>
  111. <div class="memitem">
  112. <div class="memproto">
  113. <table class="mlabels">
  114. <tr>
  115. <td class="mlabels-left">
  116. <table class="memname">
  117. <tr>
  118. <td class="memname">double QwtScaleArithmetic::ceilEps </td>
  119. <td>(</td>
  120. <td class="paramtype">double&#160;</td>
  121. <td class="paramname"><em>value</em>, </td>
  122. </tr>
  123. <tr>
  124. <td class="paramkey"></td>
  125. <td></td>
  126. <td class="paramtype">double&#160;</td>
  127. <td class="paramname"><em>intervalSize</em>&#160;</td>
  128. </tr>
  129. <tr>
  130. <td></td>
  131. <td>)</td>
  132. <td></td><td></td>
  133. </tr>
  134. </table>
  135. </td>
  136. <td class="mlabels-right">
  137. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  138. </tr>
  139. </table>
  140. </div><div class="memdoc">
  141. <p>Ceil a value, relative to an interval</p>
  142. <dl class="params"><dt>Parameters</dt><dd>
  143. <table class="params">
  144. <tr><td class="paramname">value</td><td>Value to be ceiled </td></tr>
  145. <tr><td class="paramname">intervalSize</td><td>Interval size</td></tr>
  146. </table>
  147. </dd>
  148. </dl>
  149. <dl class="section return"><dt>Returns</dt><dd>Rounded value</dd></dl>
  150. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_arithmetic.html#a924d97f2e5db236f43f4d65e430e09c1">floorEps()</a> </dd></dl>
  151. </div>
  152. </div>
  153. <a id="a349d85f9c5df08e950827a2fde7da59e"></a>
  154. <h2 class="memtitle"><span class="permalink"><a href="#a349d85f9c5df08e950827a2fde7da59e">&#9670;&nbsp;</a></span>divideEps()</h2>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="mlabels">
  158. <tr>
  159. <td class="mlabels-left">
  160. <table class="memname">
  161. <tr>
  162. <td class="memname">double QwtScaleArithmetic::divideEps </td>
  163. <td>(</td>
  164. <td class="paramtype">double&#160;</td>
  165. <td class="paramname"><em>intervalSize</em>, </td>
  166. </tr>
  167. <tr>
  168. <td class="paramkey"></td>
  169. <td></td>
  170. <td class="paramtype">double&#160;</td>
  171. <td class="paramname"><em>numSteps</em>&#160;</td>
  172. </tr>
  173. <tr>
  174. <td></td>
  175. <td>)</td>
  176. <td></td><td></td>
  177. </tr>
  178. </table>
  179. </td>
  180. <td class="mlabels-right">
  181. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. <p>Divide an interval into steps. </p>
  186. <p><img class="formulaInl" alt="$stepSize = (intervalSize - intervalSize * 10e^{-6}) / numSteps$" src="form_3.png" width="334" height="15"/></p>
  187. <dl class="params"><dt>Parameters</dt><dd>
  188. <table class="params">
  189. <tr><td class="paramname">intervalSize</td><td>Interval size </td></tr>
  190. <tr><td class="paramname">numSteps</td><td>Number of steps </td></tr>
  191. </table>
  192. </dd>
  193. </dl>
  194. <dl class="section return"><dt>Returns</dt><dd>Step size </dd></dl>
  195. </div>
  196. </div>
  197. <a id="a9d50d78310bbd82289f2558ad436667a"></a>
  198. <h2 class="memtitle"><span class="permalink"><a href="#a9d50d78310bbd82289f2558ad436667a">&#9670;&nbsp;</a></span>divideInterval()</h2>
  199. <div class="memitem">
  200. <div class="memproto">
  201. <table class="mlabels">
  202. <tr>
  203. <td class="mlabels-left">
  204. <table class="memname">
  205. <tr>
  206. <td class="memname">double QwtScaleArithmetic::divideInterval </td>
  207. <td>(</td>
  208. <td class="paramtype">double&#160;</td>
  209. <td class="paramname"><em>intervalSize</em>, </td>
  210. </tr>
  211. <tr>
  212. <td class="paramkey"></td>
  213. <td></td>
  214. <td class="paramtype">int&#160;</td>
  215. <td class="paramname"><em>numSteps</em>, </td>
  216. </tr>
  217. <tr>
  218. <td class="paramkey"></td>
  219. <td></td>
  220. <td class="paramtype">uint&#160;</td>
  221. <td class="paramname"><em>base</em>&#160;</td>
  222. </tr>
  223. <tr>
  224. <td></td>
  225. <td>)</td>
  226. <td></td><td></td>
  227. </tr>
  228. </table>
  229. </td>
  230. <td class="mlabels-right">
  231. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  232. </tr>
  233. </table>
  234. </div><div class="memdoc">
  235. <p>Calculate a step size for a given interval</p>
  236. <dl class="params"><dt>Parameters</dt><dd>
  237. <table class="params">
  238. <tr><td class="paramname">intervalSize</td><td>Interval size </td></tr>
  239. <tr><td class="paramname">numSteps</td><td>Number of steps </td></tr>
  240. <tr><td class="paramname">base</td><td>Base for the division ( usually 10 )</td></tr>
  241. </table>
  242. </dd>
  243. </dl>
  244. <dl class="section return"><dt>Returns</dt><dd>Calculated step size </dd></dl>
  245. </div>
  246. </div>
  247. <a id="a924d97f2e5db236f43f4d65e430e09c1"></a>
  248. <h2 class="memtitle"><span class="permalink"><a href="#a924d97f2e5db236f43f4d65e430e09c1">&#9670;&nbsp;</a></span>floorEps()</h2>
  249. <div class="memitem">
  250. <div class="memproto">
  251. <table class="mlabels">
  252. <tr>
  253. <td class="mlabels-left">
  254. <table class="memname">
  255. <tr>
  256. <td class="memname">double QwtScaleArithmetic::floorEps </td>
  257. <td>(</td>
  258. <td class="paramtype">double&#160;</td>
  259. <td class="paramname"><em>value</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype">double&#160;</td>
  265. <td class="paramname"><em>intervalSize</em>&#160;</td>
  266. </tr>
  267. <tr>
  268. <td></td>
  269. <td>)</td>
  270. <td></td><td></td>
  271. </tr>
  272. </table>
  273. </td>
  274. <td class="mlabels-right">
  275. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Floor a value, relative to an interval</p>
  280. <dl class="params"><dt>Parameters</dt><dd>
  281. <table class="params">
  282. <tr><td class="paramname">value</td><td>Value to be floored </td></tr>
  283. <tr><td class="paramname">intervalSize</td><td>Interval size</td></tr>
  284. </table>
  285. </dd>
  286. </dl>
  287. <dl class="section return"><dt>Returns</dt><dd>Rounded value </dd></dl>
  288. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_arithmetic.html#a924d97f2e5db236f43f4d65e430e09c1">floorEps()</a> </dd></dl>
  289. </div>
  290. </div>
  291. </div><!-- contents -->
  292. </div><!-- doc-content -->
  293. <!-- start footer part -->
  294. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  295. <ul>
  296. <li class="navelem"><a class="el" href="class_qwt_scale_arithmetic.html">QwtScaleArithmetic</a></li>
  297. <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>
  298. </ul>
  299. </div>
  300. </body>
  301. </html>