1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: qwt_spline.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>qwt_spline.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997 Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002 Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009
00010 <span class="preprocessor">#ifndef QWT_SPLINE_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_SPLINE_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include "qwt_array.h"</span>
00014 <span class="preprocessor">#include "qwt_global.h"</span>
00015
<a name="l00063"></a><a class="code" href="class_qwt_spline.html">00063</a> <span class="keyword">class </span>QWT_EXPORT QwtSpline
00064 {
00065 <span class="keyword">public</span>:
00066 QwtSpline();
00067 ~QwtSpline();
00068
00069 <span class="keywordtype">double</span> value(<span class="keywordtype">double</span> x) <span class="keyword">const</span>;
00070 <span class="keywordtype">int</span> recalc(<span class="keywordtype">double</span> *x, <span class="keywordtype">double</span> *y, <span class="keywordtype">int</span> n, <span class="keywordtype">int</span> periodic = 0);
00071 <span class="keywordtype">int</span> recalc(<span class="keyword">const</span> QwtArray<double> &x, <span class="keyword">const</span> QwtArray<double> &y,
00072 <span class="keywordtype">int</span> periodic = 0);
00073 <span class="keywordtype">void</span> copyValues(<span class="keywordtype">int</span> tf = 1);
00074
00075 <span class="keyword">private</span>:
00076 <span class="keywordtype">int</span> buildPerSpline();
00077 <span class="keywordtype">int</span> buildNatSpline();
00078 <span class="keywordtype">int</span> lookup(<span class="keywordtype">double</span> x) <span class="keyword">const</span>;
00079 <span class="keywordtype">void</span> cleanup();
00080
00081 <span class="comment">// coefficient vectors</span>
00082 <span class="keywordtype">double</span> *d_a;
00083 <span class="keywordtype">double</span> *d_b;
00084 <span class="keywordtype">double</span> *d_c;
00085 <span class="keywordtype">double</span> *d_d;
00086
00087 <span class="comment">// values</span>
00088 <span class="keywordtype">double</span> *d_x;
00089 <span class="keywordtype">double</span> *d_y;
00090 <span class="keywordtype">double</span> *d_xbuffer;
00091 <span class="keywordtype">double</span> *d_ybuffer;
00092 <span class="keywordtype">int</span> d_size;
00093
00094 <span class="comment">//flags</span>
00095 <span class="keywordtype">int</span> d_buffered;
00096 };
00097
00098
00099
00100
00101
00102 <span class="preprocessor">#endif</span>
00103 <span class="preprocessor"></span>
00104
00105
00106
00107
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:21 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|