Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_WEEDING_CURVE_FITTER_H
00011 #define QWT_WEEDING_CURVE_FITTER_H
00012
00013 #include "qwt_curve_fitter.h"
00014
00038 class QWT_EXPORT QwtWeedingCurveFitter: public QwtCurveFitter
00039 {
00040 public:
00041 explicit QwtWeedingCurveFitter( double tolerance = 1.0 );
00042 virtual ~QwtWeedingCurveFitter();
00043
00044 void setTolerance( double );
00045 double tolerance() const;
00046
00047 void setChunkSize( uint );
00048 uint chunkSize() const;
00049
00050 virtual QPolygonF fitCurve( const QPolygonF & ) const;
00051 virtual QPainterPath fitCurvePath( const QPolygonF & ) const;
00052
00053 private:
00054 virtual QPolygonF simplify( const QPolygonF & ) const;
00055
00056 class Line;
00057
00058 class PrivateData;
00059 PrivateData *d_data;
00060 };
00061
00062 #endif