Engauge Digitizer  2
FittingCurve.h
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 
10 #include "FittingCurveCoefficients.h"
11 #include <QGraphicsPathItem>
12 
13 class Transformation;
14 
16 class FittingCurve : public QGraphicsPathItem
17 {
18 public:
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 
28 private:
29 
30  double yFromCoefficientsAndX (const FittingCurveCoefficients &fittingCoef,
31  double x) const;
32 };
33 
34 #endif // FITTING_CURVE_H
FittingCurve(const FittingCurveCoefficients &fittingCoef, double xMin, double xMax, bool isLogXTheta, bool isLogYRadius, const Transformation &transformation)
Single constructor.
Affine transformation between screen and graph coordinates, based on digitized axis points...
Curve that overlays the current scene so the regression-fitted curve is visible.
Definition: FittingCurve.h:16