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_CURVE_FITTER_H 00011 #define QWT_SPLINE_CURVE_FITTER_H 00012 00013 #include "qwt_curve_fitter.h" 00014 00015 class QwtSpline; 00016 00025 class QWT_EXPORT QwtSplineCurveFitter: public QwtCurveFitter 00026 { 00027 public: 00028 QwtSplineCurveFitter(); 00029 virtual ~QwtSplineCurveFitter(); 00030 00031 void setSpline( QwtSpline * ); 00032 00033 const QwtSpline *spline() const; 00034 QwtSpline *spline(); 00035 00036 virtual QPolygonF fitCurve( const QPolygonF & ) const; 00037 virtual QPainterPath fitCurvePath( const QPolygonF & ) const; 00038 00039 private: 00040 QwtSpline *d_spline; 00041 }; 00042 00043 #endif