Engauge Digitizer  2
OrdinalGenerator.h
1 /******************************************************************************************************
2  * (C) 2014 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 ORDINAL_GENERATOR_H
8 #define ORDINAL_GENERATOR_H
9 
10 #include <QPointF>
11 #include <QString>
12 
13 class Document;
14 class Transformation;
15 
19 {
20  public:
22 
24  double generateAxisPointOrdinal (const Document &document);
25 
27  double generateCurvePointOrdinal (const Document &document,
28  const Transformation &transformation,
29  const QPointF &posScreen,
30  const QString &curveName);
31 
32 };
33 
34 #endif // ORDINAL_GENERATOR_H
Affine transformation between screen and graph coordinates, based on digitized axis points...
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
Utility class for generating ordinal numbers.
double generateAxisPointOrdinal(const Document &document)
Select ordinal just for uniqueness, since there is never a curve drawn through the axis points...
double generateCurvePointOrdinal(const Document &document, const Transformation &transformation, const QPointF &posScreen, const QString &curveName)
Select ordinal so new point curve passes smoothly through existing points.