123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- <!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: QwtSpline 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_spline.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-types">Public Types</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_spline-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtSpline Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A class for spline interpolation.
- <a href="class_qwt_spline.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__spline_8h_source.html">qwt_spline.h</a>></code></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:a2bd2bda128f82acd596348eb8d64231c"><td class="memItemLeft" align="right" valign="top">enum  </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>,
- <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb">Periodic</a>
- }</td></tr>
- <tr class="memdesc:a2bd2bda128f82acd596348eb8d64231c"><td class="mdescLeft"> </td><td class="mdescRight">Spline type. <a href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">More...</a><br /></td></tr>
- <tr class="separator:a2bd2bda128f82acd596348eb8d64231c"><td class="memSeparator" colspan="2"> </td></tr>
- </table><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:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memItemLeft" align="right" valign="top"><a id="a5d1e0ba35c637a88c66d9e4cbaf36e93"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5d1e0ba35c637a88c66d9e4cbaf36e93">QwtSpline</a> ()</td></tr>
- <tr class="memdesc:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memItemLeft" align="right" valign="top"> </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> &)</td></tr>
- <tr class="separator:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a90805882826469c94fdc871f18261bb6"><td class="memItemLeft" align="right" valign="top"><a id="a90805882826469c94fdc871f18261bb6"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a90805882826469c94fdc871f18261bb6">~QwtSpline</a> ()</td></tr>
- <tr class="memdesc:a90805882826469c94fdc871f18261bb6"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a90805882826469c94fdc871f18261bb6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8a597c34477dd4b5298db2d445b4e596"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html">QwtSpline</a> & </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> &)</td></tr>
- <tr class="separator:a8a597c34477dd4b5298db2d445b4e596"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a222953661f01658a16042d587196aff8"><td class="memItemLeft" align="right" valign="top">void </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>
- <tr class="separator:a222953661f01658a16042d587196aff8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType</a> () const</td></tr>
- <tr class="separator:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a> (const QPolygonF &<a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>)</td></tr>
- <tr class="memdesc:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the spline coefficients. <a href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">More...</a><br /></td></tr>
- <tr class="separator:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5137512588444236e2a2ab1cab207f41"><td class="memItemLeft" align="right" valign="top">QPolygonF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a> () const</td></tr>
- <tr class="separator:a5137512588444236e2a2ab1cab207f41"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afc52fd49e7f00d57a0336059fae299c0"><td class="memItemLeft" align="right" valign="top"><a id="afc52fd49e7f00d57a0336059fae299c0"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#afc52fd49e7f00d57a0336059fae299c0">reset</a> ()</td></tr>
- <tr class="memdesc:afc52fd49e7f00d57a0336059fae299c0"><td class="mdescLeft"> </td><td class="mdescRight">Free allocated memory and set size to 0. <br /></td></tr>
- <tr class="separator:afc52fd49e7f00d57a0336059fae299c0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a50298a899c2199373b0d73fb50bc406d"><td class="memItemLeft" align="right" valign="top"><a id="a50298a899c2199373b0d73fb50bc406d"></a>
- bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a50298a899c2199373b0d73fb50bc406d">isValid</a> () const</td></tr>
- <tr class="memdesc:a50298a899c2199373b0d73fb50bc406d"><td class="mdescLeft"> </td><td class="mdescRight">True if valid. <br /></td></tr>
- <tr class="separator:a50298a899c2199373b0d73fb50bc406d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a> (double x) const</td></tr>
- <tr class="separator:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1b77df69a233a6f918eb35014372b828"><td class="memItemLeft" align="right" valign="top">const QVector< double > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1b77df69a233a6f918eb35014372b828">coefficientsA</a> () const</td></tr>
- <tr class="separator:a1b77df69a233a6f918eb35014372b828"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memItemLeft" align="right" valign="top">const QVector< double > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#aa91b0b8b1b6ed6144c15f62a8aaf51a7">coefficientsB</a> () const</td></tr>
- <tr class="separator:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a77caab9b2b1c42653fa8706171f0dee9"><td class="memItemLeft" align="right" valign="top">const QVector< double > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a77caab9b2b1c42653fa8706171f0dee9">coefficientsC</a> () const</td></tr>
- <tr class="separator:a77caab9b2b1c42653fa8706171f0dee9"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:a1cdf09e841dd6a721eb788914273c484"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">buildNaturalSpline</a> (const QPolygonF &)</td></tr>
- <tr class="memdesc:a1cdf09e841dd6a721eb788914273c484"><td class="mdescLeft"> </td><td class="mdescRight">Determines the coefficients for a natural spline. <a href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">More...</a><br /></td></tr>
- <tr class="separator:a1cdf09e841dd6a721eb788914273c484"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8184717f8c018e69fabd1e33ac68ef19"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">buildPeriodicSpline</a> (const QPolygonF &)</td></tr>
- <tr class="memdesc:a8184717f8c018e69fabd1e33ac68ef19"><td class="mdescLeft"> </td><td class="mdescRight">Determines the coefficients for a periodic spline. <a href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">More...</a><br /></td></tr>
- <tr class="separator:a8184717f8c018e69fabd1e33ac68ef19"><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 class for spline interpolation. </p>
- <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>
- <dl class="section user"><dt>Usage:</dt><dd><ol>
- <li>
- 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>
- <li>
- 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>
- </ol>
- </dd></dl>
- <dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include <qwt_spline.h></span></div>
- <div class="line"> </div>
- <div class="line">QPolygonF interpolate(<span class="keyword">const</span> QPolygonF& <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>, <span class="keywordtype">int</span> numValues)</div>
- <div class="line">{</div>
- <div class="line"> <a class="code" href="class_qwt_spline.html">QwtSpline</a> spline;</div>
- <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>
- <div class="line"> <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>;</div>
- <div class="line"> </div>
- <div class="line"> QPolygonF interpolatedPoints(numValues);</div>
- <div class="line"> </div>
- <div class="line"> <span class="keyword">const</span> <span class="keywordtype">double</span> delta =</div>
- <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>
- <div class="line"> <span class="keywordflow">for</span>(i = 0; i < <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>.size(); i++) / interpolate</div>
- <div class="line"> {</div>
- <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>
- <div class="line"> interpolatedPoints[i].setX(x);</div>
- <div class="line"> interpolatedPoints[i].setY(spline.<a class="code" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a>(x));</div>
- <div class="line"> }</div>
- <div class="line"> <span class="keywordflow">return</span> interpolatedPoints;</div>
- <div class="line">}</div>
- </div><!-- fragment --> </dd></dl>
- </div><h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="a2bd2bda128f82acd596348eb8d64231c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a2bd2bda128f82acd596348eb8d64231c">◆ </a></span>SplineType</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Spline type. </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca506b78ec81ab6d56a4bbce891490c857"></a>Natural </td><td class="fielddoc"><p>A natural spline. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb"></a>Periodic </td><td class="fielddoc"><p>A periodic spline. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a2e42391f76d0b3091bf7754239f3ff0d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a2e42391f76d0b3091bf7754239f3ff0d">◆ </a></span>QwtSpline()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QwtSpline::QwtSpline </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> & </td>
- <td class="paramname"><em>other</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Copy constructor </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a1cdf09e841dd6a721eb788914273c484"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1cdf09e841dd6a721eb788914273c484">◆ </a></span>buildNaturalSpline()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtSpline::buildNaturalSpline </td>
- <td>(</td>
- <td class="paramtype">const QPolygonF & </td>
- <td class="paramname"><em>points</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Determines the coefficients for a natural spline. </p>
- <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
- </div>
- </div>
- <a id="a8184717f8c018e69fabd1e33ac68ef19"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8184717f8c018e69fabd1e33ac68ef19">◆ </a></span>buildPeriodicSpline()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtSpline::buildPeriodicSpline </td>
- <td>(</td>
- <td class="paramtype">const QPolygonF & </td>
- <td class="paramname"><em>points</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Determines the coefficients for a periodic spline. </p>
- <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
- </div>
- </div>
- <a id="a1b77df69a233a6f918eb35014372b828"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1b77df69a233a6f918eb35014372b828">◆ </a></span>coefficientsA()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QVector< double > & QwtSpline::coefficientsA </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>A coefficients </dd></dl>
- </div>
- </div>
- <a id="aa91b0b8b1b6ed6144c15f62a8aaf51a7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa91b0b8b1b6ed6144c15f62a8aaf51a7">◆ </a></span>coefficientsB()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QVector< double > & QwtSpline::coefficientsB </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>B coefficients </dd></dl>
- </div>
- </div>
- <a id="a77caab9b2b1c42653fa8706171f0dee9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a77caab9b2b1c42653fa8706171f0dee9">◆ </a></span>coefficientsC()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QVector< double > & QwtSpline::coefficientsC </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>C coefficients </dd></dl>
- </div>
- </div>
- <a id="a8a597c34477dd4b5298db2d445b4e596"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8a597c34477dd4b5298db2d445b4e596">◆ </a></span>operator=()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_spline.html">QwtSpline</a> & QwtSpline::operator= </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> & </td>
- <td class="paramname"><em>other</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Assignment operator </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
- </div>
- </div>
- <a id="a5137512588444236e2a2ab1cab207f41"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5137512588444236e2a2ab1cab207f41">◆ </a></span>points()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QPolygonF QwtSpline::points </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- </div>
- </div>
- <a id="a6ed13410b1d5f6b33ba0e3c2b07932cf"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6ed13410b1d5f6b33ba0e3c2b07932cf">◆ </a></span>setPoints()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtSpline::setPoints </td>
- <td>(</td>
- <td class="paramtype">const QPolygonF & </td>
- <td class="paramname"><em>points</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the spline coefficients. </p>
- <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>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">points</td><td>Points </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
- <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() < points[i+1].x()</code>. If this is not the case, the function will return false </dd></dl>
- </div>
- </div>
- <a id="a222953661f01658a16042d587196aff8"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a222953661f01658a16042d587196aff8">◆ </a></span>setSplineType()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtSpline::setSplineType </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a> </td>
- <td class="paramname"><em>splineType</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Select the algorithm used for calculating the spline</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">splineType</td><td>Spline type </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType()</a> </dd></dl>
- </div>
- </div>
- <a id="a1ba958ef9d8ea93db822fde1a1176f51"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1ba958ef9d8ea93db822fde1a1176f51">◆ </a></span>splineType()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a> QwtSpline::splineType </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>the spline type </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a222953661f01658a16042d587196aff8">setSplineType()</a> </dd></dl>
- </div>
- </div>
- <a id="a7c7af79ee4d77dd8e0ff08a6fd234e4f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7c7af79ee4d77dd8e0ff08a6fd234e4f">◆ </a></span>value()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtSpline::value </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>x</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the interpolated function value corresponding to a given argument x.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">x</td><td>Coordinate </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Interpolated coordinate </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <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>
- <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>
- <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 &points)</div><div class="ttdoc">Calculate the spline coefficients.</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:128</div></div>
- <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>
- <!-- 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_spline.html">QwtSpline</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>
|