Без опису

class_q_c_p_range.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.9.1"/>
  7. <title>My Project: QCPRange Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  42. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  43. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  44. <li><a href="files.html"><span>Files</span></a></li>
  45. <li>
  46. <div id="MSearchBox" class="MSearchBoxInactive">
  47. <span class="left">
  48. <img id="MSearchSelect" src="search/mag_sel.png"
  49. onmouseover="return searchBox.OnSearchSelectShow()"
  50. onmouseout="return searchBox.OnSearchSelectHide()"
  51. alt=""/>
  52. <input type="text" id="MSearchField" value="Search" accesskey="S"
  53. onfocus="searchBox.OnSearchFieldFocus(true)"
  54. onblur="searchBox.OnSearchFieldFocus(false)"
  55. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  56. </span><span class="right">
  57. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  58. </span>
  59. </div>
  60. </li>
  61. </ul>
  62. </div>
  63. <div id="navrow2" class="tabs2">
  64. <ul class="tablist">
  65. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  66. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  67. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  68. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  69. </ul>
  70. </div>
  71. <!-- window showing the filter options -->
  72. <div id="MSearchSelectWindow"
  73. onmouseover="return searchBox.OnSearchSelectShow()"
  74. onmouseout="return searchBox.OnSearchSelectHide()"
  75. onkeydown="return searchBox.OnSearchSelectKey(event)">
  76. </div>
  77. <!-- iframe showing the search results (closed by default) -->
  78. <div id="MSearchResultsWindow">
  79. <iframe src="javascript:void(0)" frameborder="0"
  80. name="MSearchResults" id="MSearchResults">
  81. </iframe>
  82. </div>
  83. </div><!-- top -->
  84. <div class="header">
  85. <div class="summary">
  86. <a href="#pub-methods">Public Member Functions</a> &#124;
  87. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  88. <a href="#pub-attribs">Public Attributes</a> &#124;
  89. <a href="#pub-static-attribs">Static Public Attributes</a> &#124;
  90. <a href="class_q_c_p_range-members.html">List of all members</a> </div>
  91. <div class="headertitle">
  92. <div class="title">QCPRange Class Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p>Represents the range an axis is encompassing.
  96. <a href="class_q_c_p_range.html#details">More...</a></p>
  97. <table class="memberdecls">
  98. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  99. Public Member Functions</h2></td></tr>
  100. <tr class="memitem:aca158d7e69702cee5d77d10a269b01e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#aca158d7e69702cee5d77d10a269b01e2">QCPRange</a> ()</td></tr>
  101. <tr class="separator:aca158d7e69702cee5d77d10a269b01e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a1d9d84d084c8f368fdedd42e0978d405"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a1d9d84d084c8f368fdedd42e0978d405">QCPRange</a> (double lower, double upper)</td></tr>
  103. <tr class="separator:a1d9d84d084c8f368fdedd42e0978d405"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:afa57c13049b965edb6fd1c00ac56338a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#afa57c13049b965edb6fd1c00ac56338a">size</a> () const </td></tr>
  105. <tr class="separator:afa57c13049b965edb6fd1c00ac56338a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a3825b53cf17da5de0843c1f3baad07db"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a3825b53cf17da5de0843c1f3baad07db">center</a> () const </td></tr>
  107. <tr class="separator:a3825b53cf17da5de0843c1f3baad07db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:af914a7740269b0604d0827c634a878a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#af914a7740269b0604d0827c634a878a9">normalize</a> ()</td></tr>
  109. <tr class="separator:af914a7740269b0604d0827c634a878a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a0fa1bc8048be50d52bea93a8caf08305"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a0fa1bc8048be50d52bea93a8caf08305">expand</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;otherRange)</td></tr>
  111. <tr class="separator:a0fa1bc8048be50d52bea93a8caf08305"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a6437bdf29a7ebc2c88a6045c4e622384"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a6437bdf29a7ebc2c88a6045c4e622384">expanded</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;otherRange) const </td></tr>
  113. <tr class="separator:a6437bdf29a7ebc2c88a6045c4e622384"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:aaf6a9046e78d91eeb8e89584fe46b034"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#aaf6a9046e78d91eeb8e89584fe46b034">sanitizedForLogScale</a> () const </td></tr>
  115. <tr class="separator:aaf6a9046e78d91eeb8e89584fe46b034"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a1ff029704c29a75adbc1dc36cecaf44c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a1ff029704c29a75adbc1dc36cecaf44c">sanitizedForLinScale</a> () const </td></tr>
  117. <tr class="separator:a1ff029704c29a75adbc1dc36cecaf44c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a030ce95b527c32e01414d0351347b46d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a030ce95b527c32e01414d0351347b46d">contains</a> (double value) const </td></tr>
  119. <tr class="separator:a030ce95b527c32e01414d0351347b46d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. </table><table class="memberdecls">
  121. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  122. Static Public Member Functions</h2></td></tr>
  123. <tr class="memitem:ab38bd4841c77c7bb86c9eea0f142dcc0"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a> (double lower, double upper)</td></tr>
  124. <tr class="separator:ab38bd4841c77c7bb86c9eea0f142dcc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a801b964752eaad6219be9d8a651ec2b3"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a801b964752eaad6219be9d8a651ec2b3">validRange</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;range)</td></tr>
  126. <tr class="separator:a801b964752eaad6219be9d8a651ec2b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. </table><table class="memberdecls">
  128. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  129. Public Attributes</h2></td></tr>
  130. <tr class="memitem:aa3aca3edb14f7ca0c85d912647b91745"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3aca3edb14f7ca0c85d912647b91745"></a>
  131. double&#160;</td><td class="memItemRight" valign="bottom"><b>lower</b></td></tr>
  132. <tr class="separator:aa3aca3edb14f7ca0c85d912647b91745"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:ae44eb3aafe1d0e2ed34b499b6d2e074f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae44eb3aafe1d0e2ed34b499b6d2e074f"></a>
  134. double&#160;</td><td class="memItemRight" valign="bottom"><b>upper</b></td></tr>
  135. <tr class="separator:ae44eb3aafe1d0e2ed34b499b6d2e074f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. </table><table class="memberdecls">
  137. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
  138. Static Public Attributes</h2></td></tr>
  139. <tr class="memitem:ab46d3bc95030ee25efda41b89e2b616b"><td class="memItemLeft" align="right" valign="top">static const double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#ab46d3bc95030ee25efda41b89e2b616b">minRange</a> = 1e-280</td></tr>
  140. <tr class="separator:ab46d3bc95030ee25efda41b89e2b616b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a5ca51e7a2dc5dc0d49527ab171fe1f4f"><td class="memItemLeft" align="right" valign="top">static const double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_range.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">maxRange</a> = 1e250</td></tr>
  142. <tr class="separator:a5ca51e7a2dc5dc0d49527ab171fe1f4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. </table>
  144. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  145. <div class="textblock"><p>Represents the range an axis is encompassing. </p>
  146. <p>contains a <em>lower</em> and <em>upper</em> double value and provides convenience input, output and modification functions.</p>
  147. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_axis.html#aebdfea5d44c3a0ad2b4700cd4d25b641">QCPAxis::setRange</a> </dd></dl>
  148. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  149. <a class="anchor" id="aca158d7e69702cee5d77d10a269b01e2"></a>
  150. <div class="memitem">
  151. <div class="memproto">
  152. <table class="memname">
  153. <tr>
  154. <td class="memname">QCPRange::QCPRange </td>
  155. <td>(</td>
  156. <td class="paramname"></td><td>)</td>
  157. <td></td>
  158. </tr>
  159. </table>
  160. </div><div class="memdoc">
  161. <p>Constructs a range with <em>lower</em> and <em>upper</em> set to zero. </p>
  162. </div>
  163. </div>
  164. <a class="anchor" id="a1d9d84d084c8f368fdedd42e0978d405"></a>
  165. <div class="memitem">
  166. <div class="memproto">
  167. <table class="memname">
  168. <tr>
  169. <td class="memname">QCPRange::QCPRange </td>
  170. <td>(</td>
  171. <td class="paramtype">double&#160;</td>
  172. <td class="paramname"><em>lower</em>, </td>
  173. </tr>
  174. <tr>
  175. <td class="paramkey"></td>
  176. <td></td>
  177. <td class="paramtype">double&#160;</td>
  178. <td class="paramname"><em>upper</em>&#160;</td>
  179. </tr>
  180. <tr>
  181. <td></td>
  182. <td>)</td>
  183. <td></td><td></td>
  184. </tr>
  185. </table>
  186. </div><div class="memdoc">
  187. <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Constructs a range with the specified <em>lower</em> and <em>upper</em> values. </p>
  188. </div>
  189. </div>
  190. <h2 class="groupheader">Member Function Documentation</h2>
  191. <a class="anchor" id="a3825b53cf17da5de0843c1f3baad07db"></a>
  192. <div class="memitem">
  193. <div class="memproto">
  194. <table class="memname">
  195. <tr>
  196. <td class="memname">double QCPRange::center </td>
  197. <td>(</td>
  198. <td class="paramname"></td><td>)</td>
  199. <td> const</td>
  200. </tr>
  201. </table>
  202. </div><div class="memdoc">
  203. <p>Returns the center of the range, i.e. (<em>upper+<em>lower</em>)*0</em>.5 </p>
  204. </div>
  205. </div>
  206. <a class="anchor" id="a030ce95b527c32e01414d0351347b46d"></a>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">bool QCPRange::contains </td>
  212. <td>(</td>
  213. <td class="paramtype">double&#160;</td>
  214. <td class="paramname"><em>value</em></td><td>)</td>
  215. <td> const</td>
  216. </tr>
  217. </table>
  218. </div><div class="memdoc">
  219. <p>Returns true when <em>value</em> lies within or exactly on the borders of the range. </p>
  220. </div>
  221. </div>
  222. <a class="anchor" id="a0fa1bc8048be50d52bea93a8caf08305"></a>
  223. <div class="memitem">
  224. <div class="memproto">
  225. <table class="memname">
  226. <tr>
  227. <td class="memname">void QCPRange::expand </td>
  228. <td>(</td>
  229. <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
  230. <td class="paramname"><em>otherRange</em></td><td>)</td>
  231. <td></td>
  232. </tr>
  233. </table>
  234. </div><div class="memdoc">
  235. <p>Expands this range such that <em>otherRange</em> is contained in the new range. It is assumed that both this range and <em>otherRange</em> are normalized (see <a class="el" href="class_q_c_p_range.html#af914a7740269b0604d0827c634a878a9">normalize</a>).</p>
  236. <p>If <em>otherRange</em> is already inside the current range, this function does nothing.</p>
  237. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_range.html#a6437bdf29a7ebc2c88a6045c4e622384">expanded</a> </dd></dl>
  238. </div>
  239. </div>
  240. <a class="anchor" id="a6437bdf29a7ebc2c88a6045c4e622384"></a>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <table class="memname">
  244. <tr>
  245. <td class="memname"><a class="el" href="class_q_c_p_range.html">QCPRange</a> QCPRange::expanded </td>
  246. <td>(</td>
  247. <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
  248. <td class="paramname"><em>otherRange</em></td><td>)</td>
  249. <td> const</td>
  250. </tr>
  251. </table>
  252. </div><div class="memdoc">
  253. <p>Returns an expanded range that contains this and <em>otherRange</em>. It is assumed that both this range and <em>otherRange</em> are normalized (see <a class="el" href="class_q_c_p_range.html#af914a7740269b0604d0827c634a878a9">normalize</a>).</p>
  254. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_range.html#a0fa1bc8048be50d52bea93a8caf08305">expand</a> </dd></dl>
  255. </div>
  256. </div>
  257. <a class="anchor" id="af914a7740269b0604d0827c634a878a9"></a>
  258. <div class="memitem">
  259. <div class="memproto">
  260. <table class="memname">
  261. <tr>
  262. <td class="memname">void QCPRange::normalize </td>
  263. <td>(</td>
  264. <td class="paramname"></td><td>)</td>
  265. <td></td>
  266. </tr>
  267. </table>
  268. </div><div class="memdoc">
  269. <p>Makes sure <em>lower</em> is numerically smaller than <em>upper</em>. If this is not the case, the values are swapped. </p>
  270. </div>
  271. </div>
  272. <a class="anchor" id="a1ff029704c29a75adbc1dc36cecaf44c"></a>
  273. <div class="memitem">
  274. <div class="memproto">
  275. <table class="memname">
  276. <tr>
  277. <td class="memname"><a class="el" href="class_q_c_p_range.html">QCPRange</a> QCPRange::sanitizedForLinScale </td>
  278. <td>(</td>
  279. <td class="paramname"></td><td>)</td>
  280. <td> const</td>
  281. </tr>
  282. </table>
  283. </div><div class="memdoc">
  284. <p>Returns a sanitized version of the range. Sanitized means for linear scales, that <em>lower</em> will always be numerically smaller (or equal) to <em>upper</em>. </p>
  285. </div>
  286. </div>
  287. <a class="anchor" id="aaf6a9046e78d91eeb8e89584fe46b034"></a>
  288. <div class="memitem">
  289. <div class="memproto">
  290. <table class="memname">
  291. <tr>
  292. <td class="memname"><a class="el" href="class_q_c_p_range.html">QCPRange</a> QCPRange::sanitizedForLogScale </td>
  293. <td>(</td>
  294. <td class="paramname"></td><td>)</td>
  295. <td> const</td>
  296. </tr>
  297. </table>
  298. </div><div class="memdoc">
  299. <p>Returns a sanitized version of the range. Sanitized means for logarithmic scales, that the range won't span the positive and negative sign domain, i.e. contain zero. Further <em>lower</em> will always be numerically smaller (or equal) to <em>upper</em>.</p>
  300. <p>If the original range does span positive and negative sign domains or contains zero, the returned range will try to approximate the original range as good as possible. If the positive interval of the original range is wider than the negative interval, the returned range will only contain the positive interval, with lower bound set to <em>rangeFac</em> or <em>rangeFac</em> *<em>upper</em>, whichever is closer to zero. Same procedure is used if the negative interval is wider than the positive interval, this time by changing the <em>upper</em> bound. </p>
  301. </div>
  302. </div>
  303. <a class="anchor" id="afa57c13049b965edb6fd1c00ac56338a"></a>
  304. <div class="memitem">
  305. <div class="memproto">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">double QCPRange::size </td>
  309. <td>(</td>
  310. <td class="paramname"></td><td>)</td>
  311. <td> const</td>
  312. </tr>
  313. </table>
  314. </div><div class="memdoc">
  315. <p>Returns the size of the range, i.e. <em>upper-<em>lower</em> </em> </p>
  316. </div>
  317. </div>
  318. <a class="anchor" id="ab38bd4841c77c7bb86c9eea0f142dcc0"></a>
  319. <div class="memitem">
  320. <div class="memproto">
  321. <table class="mlabels">
  322. <tr>
  323. <td class="mlabels-left">
  324. <table class="memname">
  325. <tr>
  326. <td class="memname">bool QCPRange::validRange </td>
  327. <td>(</td>
  328. <td class="paramtype">double&#160;</td>
  329. <td class="paramname"><em>lower</em>, </td>
  330. </tr>
  331. <tr>
  332. <td class="paramkey"></td>
  333. <td></td>
  334. <td class="paramtype">double&#160;</td>
  335. <td class="paramname"><em>upper</em>&#160;</td>
  336. </tr>
  337. <tr>
  338. <td></td>
  339. <td>)</td>
  340. <td></td><td></td>
  341. </tr>
  342. </table>
  343. </td>
  344. <td class="mlabels-right">
  345. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  346. </tr>
  347. </table>
  348. </div><div class="memdoc">
  349. <p>Checks, whether the specified range is within valid bounds, which are defined as <a class="el" href="class_q_c_p_range.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">QCPRange::maxRange</a> and <a class="el" href="class_q_c_p_range.html#ab46d3bc95030ee25efda41b89e2b616b">QCPRange::minRange</a>. A valid range means: </p><ul>
  350. <li>range bounds within -maxRange and maxRange </li>
  351. <li>range size above minRange </li>
  352. <li>range size below maxRange </li>
  353. </ul>
  354. </div>
  355. </div>
  356. <a class="anchor" id="a801b964752eaad6219be9d8a651ec2b3"></a>
  357. <div class="memitem">
  358. <div class="memproto">
  359. <table class="mlabels">
  360. <tr>
  361. <td class="mlabels-left">
  362. <table class="memname">
  363. <tr>
  364. <td class="memname">bool QCPRange::validRange </td>
  365. <td>(</td>
  366. <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
  367. <td class="paramname"><em>range</em></td><td>)</td>
  368. <td></td>
  369. </tr>
  370. </table>
  371. </td>
  372. <td class="mlabels-right">
  373. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  374. </tr>
  375. </table>
  376. </div><div class="memdoc">
  377. <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Checks, whether the specified range is within valid bounds, which are defined as <a class="el" href="class_q_c_p_range.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">QCPRange::maxRange</a> and <a class="el" href="class_q_c_p_range.html#ab46d3bc95030ee25efda41b89e2b616b">QCPRange::minRange</a>. A valid range means: </p><ul>
  378. <li>range bounds within -maxRange and maxRange </li>
  379. <li>range size above minRange </li>
  380. <li>range size below maxRange </li>
  381. </ul>
  382. </div>
  383. </div>
  384. <h2 class="groupheader">Member Data Documentation</h2>
  385. <a class="anchor" id="a5ca51e7a2dc5dc0d49527ab171fe1f4f"></a>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <table class="mlabels">
  389. <tr>
  390. <td class="mlabels-left">
  391. <table class="memname">
  392. <tr>
  393. <td class="memname">const double QCPRange::maxRange = 1e250</td>
  394. </tr>
  395. </table>
  396. </td>
  397. <td class="mlabels-right">
  398. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  399. </tr>
  400. </table>
  401. </div><div class="memdoc">
  402. <p>Maximum values (negative and positive) the range will accept in range-changing functions. Larger absolute values would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a maximum magnitude of roughly 1e308. Since the number of planck-volumes in the entire visible universe is only ~1e183, this should be enough. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_range.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a>, <a class="el" href="class_q_c_p_range.html#ab46d3bc95030ee25efda41b89e2b616b">minRange</a> </dd></dl>
  403. </div>
  404. </div>
  405. <a class="anchor" id="ab46d3bc95030ee25efda41b89e2b616b"></a>
  406. <div class="memitem">
  407. <div class="memproto">
  408. <table class="mlabels">
  409. <tr>
  410. <td class="mlabels-left">
  411. <table class="memname">
  412. <tr>
  413. <td class="memname">const double QCPRange::minRange = 1e-280</td>
  414. </tr>
  415. </table>
  416. </td>
  417. <td class="mlabels-right">
  418. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  419. </tr>
  420. </table>
  421. </div><div class="memdoc">
  422. <p>Minimum range size (<em>upper</em> - <em>lower</em>) the range changing functions will accept. Smaller intervals would cause errors due to the 11-bit exponent of double precision numbers, corresponding to a minimum magnitude of roughly 1e-308. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_range.html#ab38bd4841c77c7bb86c9eea0f142dcc0">validRange</a>, <a class="el" href="class_q_c_p_range.html#a5ca51e7a2dc5dc0d49527ab171fe1f4f">maxRange</a> </dd></dl>
  423. </div>
  424. </div>
  425. <hr/>The documentation for this class was generated from the following files:<ul>
  426. <li><a class="el" href="qcustomplot_8h_source.html">qcustomplot.h</a></li>
  427. <li><a class="el" href="qcustomplot_8cpp.html">qcustomplot.cpp</a></li>
  428. </ul>
  429. </div><!-- contents -->
  430. <!-- start footer part -->
  431. <hr class="footer"/><address class="footer"><small>
  432. Generated on Tue Aug 11 2015 13:04:53 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  433. <img class="footer" src="doxygen.png" alt="doxygen"/>
  434. </a> 1.8.9.1
  435. </small></address>
  436. </body>
  437. </html>