Qwt Polar User's Guide  0.1.0
qwt_polar_fitter.h
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * QwtPolar Widget Library
00003  * Copyright (C) 2008   Uwe Rathmann
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the Qwt License, Version 1.0
00007  *****************************************************************************/
00008 
00009 #ifndef QWT_POLAR_FITTER_H
00010 #define QWT_POLAR_FITTER_H
00011 
00012 #include "qwt_polar_global.h"
00013 #include "qwt_curve_fitter.h"
00014 
00024 class QWT_POLAR_EXPORT QwtPolarFitter: public QwtCurveFitter
00025 {
00026 public:
00027     QwtPolarFitter(int stepCount = 5);
00028     virtual ~QwtPolarFitter();
00029 
00030     void setStepCount(int size);
00031     int stepCount() const;
00032 
00033 #if QT_VERSION < 0x040000
00034     virtual QwtArray<QwtDoublePoint> fitCurve(
00035         const QwtArray<QwtDoublePoint> &) const;
00036 #else
00037     virtual QPolygonF fitCurve(const QPolygonF &) const;
00038 #endif
00039 
00040 private:
00041     class PrivateData;
00042     PrivateData *d_data;
00043 };
00044 
00045 #endif