Loading...
Searching...
No Matches
qwt_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_CURVE_FITTER_H
#define QWT_CURVE_FITTER_H
#include "qwt_global.h"
class QPainterPath;
class QPolygonF;
class QWT_EXPORT QwtCurveFitter
{
public:
enum Mode
{
Polygon,
Path
};
virtual ~QwtCurveFitter();
Mode mode() const;
virtual QPolygonF fitCurve( const QPolygonF& polygon ) const = 0;
virtual QPainterPath fitCurvePath( const QPolygonF& polygon ) const = 0;
protected:
explicit QwtCurveFitter( Mode mode );
private:
Q_DISABLE_COPY(QwtCurveFitter)
const Mode m_mode;
};
#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