Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

qwt_spline.h

Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef QWT_SPLINE_H
00011 #define QWT_SPLINE_H
00012 
00013 #include "qwt_global.h"
00014 
00062 class QWT_EXPORT QwtSpline
00063 {
00064 public:
00065     QwtSpline();
00066     ~QwtSpline();
00067 
00068     double value(double x) const;
00069     int recalc(double *x, double *y, int n, int periodic = 0);
00070     void copyValues(int tf = 1);
00071 
00072 private:
00073     int buildPerSpline();
00074     int buildNatSpline();
00075     int lookup(double x) const;
00076     void cleanup();
00077 
00078     // coefficient vectors
00079     double *d_a;
00080     double *d_b;
00081     double *d_c;
00082     double *d_d;
00083 
00084     // values
00085     double *d_x;
00086     double *d_y;
00087     double *d_xbuffer;
00088     double *d_ybuffer;
00089     int d_size;
00090 
00091     //flags
00092     int d_buffered;
00093 };
00094 
00095 
00096 
00097 
00098 
00099 #endif
00100 
00101 
00102 
00103 
00104 

Generated on Fri Nov 7 14:11:46 2003 for Qwt Developer's Guide by doxygen 1.3.2