qwt_polar_fitter.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
  2. * QwtPolar Widget Library
  3. * Copyright (C) 2008 Uwe Rathmann
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the Qwt License, Version 1.0
  7. *****************************************************************************/
  8. #ifndef QWT_POLAR_FITTER_H
  9. #define QWT_POLAR_FITTER_H
  10. #include "qwt_polar_global.h"
  11. #include <qwt_curve_fitter.h>
  12. /*!
  13. \brief A simple curve fitter for polar points
  14. QwtPolarFitter adds equidistant points between 2 curve points,
  15. so that the connection gets rounded according to the nature of
  16. a polar plot.
  17. \sa QwtPolarCurve::setCurveFitter()
  18. */
  19. class QWT_POLAR_EXPORT QwtPolarFitter: public QwtCurveFitter
  20. {
  21. public:
  22. QwtPolarFitter( int stepCount = 5 );
  23. virtual ~QwtPolarFitter();
  24. void setStepCount( int size );
  25. int stepCount() const;
  26. virtual QPolygonF fitCurve( const QPolygonF & ) const;
  27. private:
  28. class PrivateData;
  29. PrivateData *d_data;
  30. };
  31. #endif