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

qwt_spline.h

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     bool recalc(double *x, double *y, int n, bool periodic = false);
00070     void copyValues(bool tf = true);
00071 
00072 private:
00073     bool buildPerSpline();
00074     bool buildNatSpline();
00075     int lookup(double x) const;
00076     void cleanup();
00077 
00078     class PrivateData;
00079     PrivateData *d_data;
00080 };
00081 
00082 #endif

Generated on Wed Aug 31 23:02:30 2005 for Qwt User's Guide by  doxygen 1.4.1