Qwt User's Guide: qwt_spline_curve_fitter.h Source File

Qwt User's Guide 6.3.0

Loading...
Searching...
No Matches
qwt_spline_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_SPLINE_CURVE_FITTER_H
11#define QWT_SPLINE_CURVE_FITTER_H
12
13#include "qwt_curve_fitter.h"
14
15class QwtSpline;
16
25 class QWT_EXPORT QwtSplineCurveFitter : public QwtCurveFitter
26{
27 public:
28 QwtSplineCurveFitter();
29 virtual ~QwtSplineCurveFitter();
30
31 void setSpline( QwtSpline* );
32
33 const QwtSpline* spline() const;
34 QwtSpline* spline();
35
36 virtual QPolygonF fitCurve( const QPolygonF& ) const QWT_OVERRIDE;
37 virtual QPainterPath fitCurvePath( const QPolygonF& ) const QWT_OVERRIDE;
38
39 private:
40 QwtSpline* m_spline;
41};
42
43#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::fitCurve
virtual QPolygonF fitCurve(const QPolygonF &polygon) const =0
QwtSplineCurveFitter
A curve fitter using a spline interpolation.
Definition qwt_spline_curve_fitter.h:26
QwtSpline
Base class for all splines.
Definition qwt_spline.h:58