Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_curve_fitter.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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
#include <qpolygon.h>
15
#include <qpainterpath.h>
16
20
class
QWT_EXPORT
QwtCurveFitter
21
{
22
public
:
31
enum
Mode
32
{
39
Polygon
,
40
47
Path
48
};
49
50
virtual
~
QwtCurveFitter
();
51
52
Mode
mode()
const
;
53
62
virtual
QPolygonF fitCurve(
const
QPolygonF &polygon )
const
= 0;
63
72
virtual
QPainterPath fitCurvePath(
const
QPolygonF &polygon )
const
= 0;
73
74
protected
:
75
explicit
QwtCurveFitter
(
Mode
mode );
76
77
private
:
78
Q_DISABLE_COPY(
QwtCurveFitter
)
79
80
const
Mode
d_mode;
81
};
82
83
#endif
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
qwt_global.h
QwtCurveFitter::Polygon
Definition:
qwt_curve_fitter.h:39
QwtCurveFitter
Abstract base class for a curve fitter.
Definition:
qwt_curve_fitter.h:20
QwtCurveFitter::Mode
Mode
Preferred mode of the fitting algorithm.
Definition:
qwt_curve_fitter.h:31
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17