Engauge Digitizer 2
Loading...
Searching...
No Matches
FittingCurve.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef FITTING_CURVE_H
8#define FITTING_CURVE_H
9
11#include <QGraphicsPathItem>
12
13class Transformation;
14
16class FittingCurve : public QGraphicsPathItem
17{
18public:
20 FittingCurve (const FittingCurveCoefficients &fittingCoef,
21 double xMin,
22 double xMax,
23 bool isLogXTheta,
24 bool isLogYRadius,
25 const Transformation &transformation);
26 virtual ~FittingCurve ();
27
28private:
29
30 double yFromCoefficientsAndX (const FittingCurveCoefficients &fittingCoef,
31 double x) const;
32};
33
34#endif // FITTING_CURVE_H
QVector< double > FittingCurveCoefficients
Coefficients x0, x1, ... in y = a0 + a1 * x + a2 * x^2 + ...
FittingCurve(const FittingCurveCoefficients &fittingCoef, double xMin, double xMax, bool isLogXTheta, bool isLogYRadius, const Transformation &transformation)
Single constructor.
virtual ~FittingCurve()
Affine transformation between screen and graph coordinates, based on digitized axis points.