Engauge Digitizer  2
CallbackGatherXThetaValuesFunctions.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 CALLBACK_GATHER_X_THETA_VALUES_FUNCTIONS_H
8 #define CALLBACK_GATHER_X_THETA_VALUES_FUNCTIONS_H
9 
10 #include "CallbackSearchReturn.h"
11 #include "ExportValuesXOrY.h"
12 #include <QHash>
13 #include <QMap>
14 #include "Transformation.h"
15 #include "ValuesVectorXOrY.h"
16 
18 class Point;
19 
20 // Save values into container that preserves order by key (QMap). These are common to all included curves
21 // QMap is for fast random access
22 typedef QMap<double, bool> ValuesVectorXOrY;
23 
24 typedef QHash<QString, bool> CurveNamesIncluded;
25 
28 {
29 public:
32  const QStringList &curveNamesIncluded,
33  const Transformation &transformation);
34 
36  CallbackSearchReturn callback (const QString &curveName,
37  const Point &point);
38 
40  ValuesVectorXOrY xThetaValuesRaw () const;
41 
42 private:
44 
45  const Transformation m_transformation;
46  CurveNamesIncluded m_curveNamesIncluded;
47  ValuesVectorXOrY m_xThetaValues;
48 };
49 
50 #endif // CALLBACK_GATHER_X_THETA_VALUES_FUNCTIONS_H
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:23
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
ValuesVectorXOrY xThetaValuesRaw() const
Resulting x/theta values for all included functions.
Affine transformation between screen and graph coordinates, based on digitized axis points...
Callback for collecting X/Theta independent variables, for functions, in preparation for exporting...