Loading...
Searching...
No Matches
qwt_spline_curve_fitter.h
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_SPLINE_CURVE_FITTER_H
#define QWT_SPLINE_CURVE_FITTER_H
#include "qwt_curve_fitter.h"
class QwtSpline;
class QWT_EXPORT QwtSplineCurveFitter : public QwtCurveFitter
{
public:
QwtSplineCurveFitter();
virtual ~QwtSplineCurveFitter();
void setSpline( QwtSpline* );
const QwtSpline* spline() const;
QwtSpline* spline();
virtual QPolygonF fitCurve( const QPolygonF& ) const QWT_OVERRIDE;
virtual QPainterPath fitCurvePath( const QPolygonF& ) const QWT_OVERRIDE;
private:
QwtSpline* m_spline;
};
#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