Qwt User's Guide  6.2.0
qwt_curve_fitter.h
1 /******************************************************************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_CURVE_FITTER_H
11 #define QWT_CURVE_FITTER_H
12 
13 #include "qwt_global.h"
14 
15 class QPainterPath;
16 class QPolygonF;
17 
21 class QWT_EXPORT QwtCurveFitter
22 {
23  public:
32  enum Mode
33  {
41 
48  Path
49  };
50 
51  virtual ~QwtCurveFitter();
52 
53  Mode mode() const;
54 
63  virtual QPolygonF fitCurve( const QPolygonF& polygon ) const = 0;
64 
73  virtual QPainterPath fitCurvePath( const QPolygonF& polygon ) const = 0;
74 
75  protected:
76  explicit QwtCurveFitter( Mode mode );
77 
78  private:
79  Q_DISABLE_COPY(QwtCurveFitter)
80 
81  const Mode m_mode;
82 };
83 
84 #endif
Abstract base class for a curve fitter.
virtual QPainterPath fitCurvePath(const QPolygonF &polygon) const =0
Mode
Preferred mode of the fitting algorithm.
virtual QPolygonF fitCurve(const QPolygonF &polygon) const =0