Qwt User's Guide 6.3.0

Loading...
Searching...
No Matches
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 {
40 Polygon,
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
QwtCurveFitter
Abstract base class for a curve fitter.
Definition qwt_curve_fitter.h:22
QwtCurveFitter::fitCurvePath
virtual QPainterPath fitCurvePath(const QPolygonF &polygon) const =0
QwtCurveFitter::Mode
Mode
Preferred mode of the fitting algorithm.
Definition qwt_curve_fitter.h:33
QwtCurveFitter::Polygon
@ Polygon
Definition qwt_curve_fitter.h:40
QwtCurveFitter::fitCurve
virtual QPolygonF fitCurve(const QPolygonF &polygon) const =0