class_qwt_spline.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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: QwtSpline 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_spline.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-types">Public Types</a> &#124;
  85. <a href="#pub-methods">Public Member Functions</a> &#124;
  86. <a href="#pro-methods">Protected Member Functions</a> &#124;
  87. <a href="class_qwt_spline-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">QwtSpline Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p>A class for spline interpolation.
  93. <a href="class_qwt_spline.html#details">More...</a></p>
  94. <p><code>#include &lt;<a class="el" href="qwt__spline_8h_source.html">qwt_spline.h</a>&gt;</code></p>
  95. <table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  97. Public Types</h2></td></tr>
  98. <tr class="memitem:a2bd2bda128f82acd596348eb8d64231c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a> { <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231ca506b78ec81ab6d56a4bbce891490c857">Natural</a>,
  99. <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb">Periodic</a>
  100. }</td></tr>
  101. <tr class="memdesc:a2bd2bda128f82acd596348eb8d64231c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Spline type. <a href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">More...</a><br /></td></tr>
  102. <tr class="separator:a2bd2bda128f82acd596348eb8d64231c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. </table><table class="memberdecls">
  104. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  105. Public Member Functions</h2></td></tr>
  106. <tr class="memitem:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memItemLeft" align="right" valign="top"><a id="a5d1e0ba35c637a88c66d9e4cbaf36e93"></a>
  107. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5d1e0ba35c637a88c66d9e4cbaf36e93">QwtSpline</a> ()</td></tr>
  108. <tr class="memdesc:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  109. <tr class="separator:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a2e42391f76d0b3091bf7754239f3ff0d">QwtSpline</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
  111. <tr class="separator:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a90805882826469c94fdc871f18261bb6"><td class="memItemLeft" align="right" valign="top"><a id="a90805882826469c94fdc871f18261bb6"></a>
  113. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a90805882826469c94fdc871f18261bb6">~QwtSpline</a> ()</td></tr>
  114. <tr class="memdesc:a90805882826469c94fdc871f18261bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  115. <tr class="separator:a90805882826469c94fdc871f18261bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a8a597c34477dd4b5298db2d445b4e596"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a8a597c34477dd4b5298db2d445b4e596">operator=</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
  117. <tr class="separator:a8a597c34477dd4b5298db2d445b4e596"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a222953661f01658a16042d587196aff8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a222953661f01658a16042d587196aff8">setSplineType</a> (<a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>)</td></tr>
  119. <tr class="separator:a222953661f01658a16042d587196aff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType</a> () const</td></tr>
  121. <tr class="separator:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a> (const QPolygonF &amp;<a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>)</td></tr>
  123. <tr class="memdesc:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the spline coefficients. <a href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">More...</a><br /></td></tr>
  124. <tr class="separator:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a5137512588444236e2a2ab1cab207f41"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a> () const</td></tr>
  126. <tr class="separator:a5137512588444236e2a2ab1cab207f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:afc52fd49e7f00d57a0336059fae299c0"><td class="memItemLeft" align="right" valign="top"><a id="afc52fd49e7f00d57a0336059fae299c0"></a>
  128. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#afc52fd49e7f00d57a0336059fae299c0">reset</a> ()</td></tr>
  129. <tr class="memdesc:afc52fd49e7f00d57a0336059fae299c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free allocated memory and set size to 0. <br /></td></tr>
  130. <tr class="separator:afc52fd49e7f00d57a0336059fae299c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a50298a899c2199373b0d73fb50bc406d"><td class="memItemLeft" align="right" valign="top"><a id="a50298a899c2199373b0d73fb50bc406d"></a>
  132. bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a50298a899c2199373b0d73fb50bc406d">isValid</a> () const</td></tr>
  133. <tr class="memdesc:a50298a899c2199373b0d73fb50bc406d"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if valid. <br /></td></tr>
  134. <tr class="separator:a50298a899c2199373b0d73fb50bc406d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a> (double x) const</td></tr>
  136. <tr class="separator:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a1b77df69a233a6f918eb35014372b828"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1b77df69a233a6f918eb35014372b828">coefficientsA</a> () const</td></tr>
  138. <tr class="separator:a1b77df69a233a6f918eb35014372b828"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#aa91b0b8b1b6ed6144c15f62a8aaf51a7">coefficientsB</a> () const</td></tr>
  140. <tr class="separator:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a77caab9b2b1c42653fa8706171f0dee9"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a77caab9b2b1c42653fa8706171f0dee9">coefficientsC</a> () const</td></tr>
  142. <tr class="separator:a77caab9b2b1c42653fa8706171f0dee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. </table><table class="memberdecls">
  144. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  145. Protected Member Functions</h2></td></tr>
  146. <tr class="memitem:a1cdf09e841dd6a721eb788914273c484"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">buildNaturalSpline</a> (const QPolygonF &amp;)</td></tr>
  147. <tr class="memdesc:a1cdf09e841dd6a721eb788914273c484"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the coefficients for a natural spline. <a href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">More...</a><br /></td></tr>
  148. <tr class="separator:a1cdf09e841dd6a721eb788914273c484"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a8184717f8c018e69fabd1e33ac68ef19"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">buildPeriodicSpline</a> (const QPolygonF &amp;)</td></tr>
  150. <tr class="memdesc:a8184717f8c018e69fabd1e33ac68ef19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the coefficients for a periodic spline. <a href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">More...</a><br /></td></tr>
  151. <tr class="separator:a8184717f8c018e69fabd1e33ac68ef19"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. </table>
  153. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  154. <div class="textblock"><p>A class for spline interpolation. </p>
  155. <p>The <a class="el" href="class_qwt_spline.html" title="A class for spline interpolation.">QwtSpline</a> class is used for cubical spline interpolation. Two types of splines, natural and periodic, are supported.</p>
  156. <dl class="section user"><dt>Usage:</dt><dd><ol>
  157. <li>
  158. First call <a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf" title="Calculate the spline coefficients.">setPoints()</a> to determine the spline coefficients for a tabulated function y(x). </li>
  159. <li>
  160. After the coefficients have been set up, the interpolated function value for an argument x can be determined by calling <a class="el" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">QwtSpline::value()</a>. </li>
  161. </ol>
  162. </dd></dl>
  163. <dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;qwt_spline.h&gt;</span></div>
  164. <div class="line"> </div>
  165. <div class="line">QPolygonF interpolate(<span class="keyword">const</span> QPolygonF&amp; <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>, <span class="keywordtype">int</span> numValues)</div>
  166. <div class="line">{</div>
  167. <div class="line"> <a class="code" href="class_qwt_spline.html">QwtSpline</a> spline;</div>
  168. <div class="line"> <span class="keywordflow">if</span> ( !spline.<a class="code" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a>(<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>) )</div>
  169. <div class="line"> <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>;</div>
  170. <div class="line"> </div>
  171. <div class="line"> QPolygonF interpolatedPoints(numValues);</div>
  172. <div class="line"> </div>
  173. <div class="line"> <span class="keyword">const</span> <span class="keywordtype">double</span> delta =</div>
  174. <div class="line"> (<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[numPoints - 1].x() - <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[0].x()) / (<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>.size() - 1);</div>
  175. <div class="line"> <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>.size(); i++) / interpolate</div>
  176. <div class="line"> {</div>
  177. <div class="line"> <span class="keyword">const</span> <span class="keywordtype">double</span> x = <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[0].x() + i * delta;</div>
  178. <div class="line"> interpolatedPoints[i].setX(x);</div>
  179. <div class="line"> interpolatedPoints[i].setY(spline.<a class="code" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a>(x));</div>
  180. <div class="line"> }</div>
  181. <div class="line"> <span class="keywordflow">return</span> interpolatedPoints;</div>
  182. <div class="line">}</div>
  183. </div><!-- fragment --> </dd></dl>
  184. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  185. <a id="a2bd2bda128f82acd596348eb8d64231c"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#a2bd2bda128f82acd596348eb8d64231c">&#9670;&nbsp;</a></span>SplineType</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="memname">
  190. <tr>
  191. <td class="memname">enum <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a></td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>Spline type. </p>
  196. <table class="fieldtable">
  197. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca506b78ec81ab6d56a4bbce891490c857"></a>Natural&#160;</td><td class="fielddoc"><p>A natural spline. </p>
  198. </td></tr>
  199. <tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb"></a>Periodic&#160;</td><td class="fielddoc"><p>A periodic spline. </p>
  200. </td></tr>
  201. </table>
  202. </div>
  203. </div>
  204. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  205. <a id="a2e42391f76d0b3091bf7754239f3ff0d"></a>
  206. <h2 class="memtitle"><span class="permalink"><a href="#a2e42391f76d0b3091bf7754239f3ff0d">&#9670;&nbsp;</a></span>QwtSpline()</h2>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">QwtSpline::QwtSpline </td>
  212. <td>(</td>
  213. <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td>
  214. <td class="paramname"><em>other</em></td><td>)</td>
  215. <td></td>
  216. </tr>
  217. </table>
  218. </div><div class="memdoc">
  219. <p>Copy constructor </p><dl class="params"><dt>Parameters</dt><dd>
  220. <table class="params">
  221. <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
  222. </table>
  223. </dd>
  224. </dl>
  225. </div>
  226. </div>
  227. <h2 class="groupheader">Member Function Documentation</h2>
  228. <a id="a1cdf09e841dd6a721eb788914273c484"></a>
  229. <h2 class="memtitle"><span class="permalink"><a href="#a1cdf09e841dd6a721eb788914273c484">&#9670;&nbsp;</a></span>buildNaturalSpline()</h2>
  230. <div class="memitem">
  231. <div class="memproto">
  232. <table class="mlabels">
  233. <tr>
  234. <td class="mlabels-left">
  235. <table class="memname">
  236. <tr>
  237. <td class="memname">bool QwtSpline::buildNaturalSpline </td>
  238. <td>(</td>
  239. <td class="paramtype">const QPolygonF &amp;&#160;</td>
  240. <td class="paramname"><em>points</em></td><td>)</td>
  241. <td></td>
  242. </tr>
  243. </table>
  244. </td>
  245. <td class="mlabels-right">
  246. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  247. </tr>
  248. </table>
  249. </div><div class="memdoc">
  250. <p>Determines the coefficients for a natural spline. </p>
  251. <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
  252. </div>
  253. </div>
  254. <a id="a8184717f8c018e69fabd1e33ac68ef19"></a>
  255. <h2 class="memtitle"><span class="permalink"><a href="#a8184717f8c018e69fabd1e33ac68ef19">&#9670;&nbsp;</a></span>buildPeriodicSpline()</h2>
  256. <div class="memitem">
  257. <div class="memproto">
  258. <table class="mlabels">
  259. <tr>
  260. <td class="mlabels-left">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">bool QwtSpline::buildPeriodicSpline </td>
  264. <td>(</td>
  265. <td class="paramtype">const QPolygonF &amp;&#160;</td>
  266. <td class="paramname"><em>points</em></td><td>)</td>
  267. <td></td>
  268. </tr>
  269. </table>
  270. </td>
  271. <td class="mlabels-right">
  272. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  273. </tr>
  274. </table>
  275. </div><div class="memdoc">
  276. <p>Determines the coefficients for a periodic spline. </p>
  277. <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
  278. </div>
  279. </div>
  280. <a id="a1b77df69a233a6f918eb35014372b828"></a>
  281. <h2 class="memtitle"><span class="permalink"><a href="#a1b77df69a233a6f918eb35014372b828">&#9670;&nbsp;</a></span>coefficientsA()</h2>
  282. <div class="memitem">
  283. <div class="memproto">
  284. <table class="memname">
  285. <tr>
  286. <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsA </td>
  287. <td>(</td>
  288. <td class="paramname"></td><td>)</td>
  289. <td> const</td>
  290. </tr>
  291. </table>
  292. </div><div class="memdoc">
  293. <dl class="section return"><dt>Returns</dt><dd>A coefficients </dd></dl>
  294. </div>
  295. </div>
  296. <a id="aa91b0b8b1b6ed6144c15f62a8aaf51a7"></a>
  297. <h2 class="memtitle"><span class="permalink"><a href="#aa91b0b8b1b6ed6144c15f62a8aaf51a7">&#9670;&nbsp;</a></span>coefficientsB()</h2>
  298. <div class="memitem">
  299. <div class="memproto">
  300. <table class="memname">
  301. <tr>
  302. <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsB </td>
  303. <td>(</td>
  304. <td class="paramname"></td><td>)</td>
  305. <td> const</td>
  306. </tr>
  307. </table>
  308. </div><div class="memdoc">
  309. <dl class="section return"><dt>Returns</dt><dd>B coefficients </dd></dl>
  310. </div>
  311. </div>
  312. <a id="a77caab9b2b1c42653fa8706171f0dee9"></a>
  313. <h2 class="memtitle"><span class="permalink"><a href="#a77caab9b2b1c42653fa8706171f0dee9">&#9670;&nbsp;</a></span>coefficientsC()</h2>
  314. <div class="memitem">
  315. <div class="memproto">
  316. <table class="memname">
  317. <tr>
  318. <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsC </td>
  319. <td>(</td>
  320. <td class="paramname"></td><td>)</td>
  321. <td> const</td>
  322. </tr>
  323. </table>
  324. </div><div class="memdoc">
  325. <dl class="section return"><dt>Returns</dt><dd>C coefficients </dd></dl>
  326. </div>
  327. </div>
  328. <a id="a8a597c34477dd4b5298db2d445b4e596"></a>
  329. <h2 class="memtitle"><span class="permalink"><a href="#a8a597c34477dd4b5298db2d445b4e596">&#9670;&nbsp;</a></span>operator=()</h2>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <table class="memname">
  333. <tr>
  334. <td class="memname"><a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp; QwtSpline::operator= </td>
  335. <td>(</td>
  336. <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td>
  337. <td class="paramname"><em>other</em></td><td>)</td>
  338. <td></td>
  339. </tr>
  340. </table>
  341. </div><div class="memdoc">
  342. <p>Assignment operator </p><dl class="params"><dt>Parameters</dt><dd>
  343. <table class="params">
  344. <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
  345. </table>
  346. </dd>
  347. </dl>
  348. <dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
  349. </div>
  350. </div>
  351. <a id="a5137512588444236e2a2ab1cab207f41"></a>
  352. <h2 class="memtitle"><span class="permalink"><a href="#a5137512588444236e2a2ab1cab207f41">&#9670;&nbsp;</a></span>points()</h2>
  353. <div class="memitem">
  354. <div class="memproto">
  355. <table class="memname">
  356. <tr>
  357. <td class="memname">QPolygonF QwtSpline::points </td>
  358. <td>(</td>
  359. <td class="paramname"></td><td>)</td>
  360. <td> const</td>
  361. </tr>
  362. </table>
  363. </div><div class="memdoc">
  364. <dl class="section return"><dt>Returns</dt><dd>Points, that have been by <a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf" title="Calculate the spline coefficients.">setPoints()</a> </dd></dl>
  365. </div>
  366. </div>
  367. <a id="a6ed13410b1d5f6b33ba0e3c2b07932cf"></a>
  368. <h2 class="memtitle"><span class="permalink"><a href="#a6ed13410b1d5f6b33ba0e3c2b07932cf">&#9670;&nbsp;</a></span>setPoints()</h2>
  369. <div class="memitem">
  370. <div class="memproto">
  371. <table class="memname">
  372. <tr>
  373. <td class="memname">bool QwtSpline::setPoints </td>
  374. <td>(</td>
  375. <td class="paramtype">const QPolygonF &amp;&#160;</td>
  376. <td class="paramname"><em>points</em></td><td>)</td>
  377. <td></td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. <p>Calculate the spline coefficients. </p>
  382. <p>Depending on the value of <em>periodic</em>, this function will determine the coefficients for a natural or a periodic spline and store them internally.</p>
  383. <dl class="params"><dt>Parameters</dt><dd>
  384. <table class="params">
  385. <tr><td class="paramname">points</td><td>Points </td></tr>
  386. </table>
  387. </dd>
  388. </dl>
  389. <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
  390. <dl class="section warning"><dt>Warning</dt><dd>The sequence of x (but not y) values has to be strictly monotone increasing, which means <code>points[i].x() &lt; points[i+1].x()</code>. If this is not the case, the function will return false </dd></dl>
  391. </div>
  392. </div>
  393. <a id="a222953661f01658a16042d587196aff8"></a>
  394. <h2 class="memtitle"><span class="permalink"><a href="#a222953661f01658a16042d587196aff8">&#9670;&nbsp;</a></span>setSplineType()</h2>
  395. <div class="memitem">
  396. <div class="memproto">
  397. <table class="memname">
  398. <tr>
  399. <td class="memname">void QwtSpline::setSplineType </td>
  400. <td>(</td>
  401. <td class="paramtype"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>&#160;</td>
  402. <td class="paramname"><em>splineType</em></td><td>)</td>
  403. <td></td>
  404. </tr>
  405. </table>
  406. </div><div class="memdoc">
  407. <p>Select the algorithm used for calculating the spline</p>
  408. <dl class="params"><dt>Parameters</dt><dd>
  409. <table class="params">
  410. <tr><td class="paramname">splineType</td><td>Spline type </td></tr>
  411. </table>
  412. </dd>
  413. </dl>
  414. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType()</a> </dd></dl>
  415. </div>
  416. </div>
  417. <a id="a1ba958ef9d8ea93db822fde1a1176f51"></a>
  418. <h2 class="memtitle"><span class="permalink"><a href="#a1ba958ef9d8ea93db822fde1a1176f51">&#9670;&nbsp;</a></span>splineType()</h2>
  419. <div class="memitem">
  420. <div class="memproto">
  421. <table class="memname">
  422. <tr>
  423. <td class="memname"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a> QwtSpline::splineType </td>
  424. <td>(</td>
  425. <td class="paramname"></td><td>)</td>
  426. <td> const</td>
  427. </tr>
  428. </table>
  429. </div><div class="memdoc">
  430. <dl class="section return"><dt>Returns</dt><dd>the spline type </dd></dl>
  431. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a222953661f01658a16042d587196aff8">setSplineType()</a> </dd></dl>
  432. </div>
  433. </div>
  434. <a id="a7c7af79ee4d77dd8e0ff08a6fd234e4f"></a>
  435. <h2 class="memtitle"><span class="permalink"><a href="#a7c7af79ee4d77dd8e0ff08a6fd234e4f">&#9670;&nbsp;</a></span>value()</h2>
  436. <div class="memitem">
  437. <div class="memproto">
  438. <table class="memname">
  439. <tr>
  440. <td class="memname">double QwtSpline::value </td>
  441. <td>(</td>
  442. <td class="paramtype">double&#160;</td>
  443. <td class="paramname"><em>x</em></td><td>)</td>
  444. <td> const</td>
  445. </tr>
  446. </table>
  447. </div><div class="memdoc">
  448. <p>Calculate the interpolated function value corresponding to a given argument x.</p>
  449. <dl class="params"><dt>Parameters</dt><dd>
  450. <table class="params">
  451. <tr><td class="paramname">x</td><td>Coordinate </td></tr>
  452. </table>
  453. </dd>
  454. </dl>
  455. <dl class="section return"><dt>Returns</dt><dd>Interpolated coordinate </dd></dl>
  456. </div>
  457. </div>
  458. </div><!-- contents -->
  459. </div><!-- doc-content -->
  460. <div class="ttc" id="aclass_qwt_spline_html_a5137512588444236e2a2ab1cab207f41"><div class="ttname"><a href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">QwtSpline::points</a></div><div class="ttdeci">QPolygonF points() const</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:158</div></div>
  461. <div class="ttc" id="aclass_qwt_spline_html_a7c7af79ee4d77dd8e0ff08a6fd234e4f"><div class="ttname"><a href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">QwtSpline::value</a></div><div class="ttdeci">double value(double x) const</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:204</div></div>
  462. <div class="ttc" id="aclass_qwt_spline_html_a6ed13410b1d5f6b33ba0e3c2b07932cf"><div class="ttname"><a href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">QwtSpline::setPoints</a></div><div class="ttdeci">bool setPoints(const QPolygonF &amp;points)</div><div class="ttdoc">Calculate the spline coefficients.</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:128</div></div>
  463. <div class="ttc" id="aclass_qwt_spline_html"><div class="ttname"><a href="class_qwt_spline.html">QwtSpline</a></div><div class="ttdoc">A class for spline interpolation.</div><div class="ttdef"><b>Definition:</b> qwt_spline.h:58</div></div>
  464. <!-- start footer part -->
  465. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  466. <ul>
  467. <li class="navelem"><a class="el" href="class_qwt_spline.html">QwtSpline</a></li>
  468. <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>
  469. </ul>
  470. </div>
  471. </body>
  472. </html>