Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CallbackGatherXThetaValuesFunctions.h
1 #ifndef CALLBACK_GATHER_X_THETA_VALUES_FUNCTIONS_H
2 #define CALLBACK_GATHER_X_THETA_VALUES_FUNCTIONS_H
3 
4 #include "CallbackSearchReturn.h"
5 #include "ExportValuesXOrY.h"
6 #include <QHash>
7 #include <QMap>
8 #include "Transformation.h"
9 #include "ValuesVectorXOrY.h"
10 
12 class Point;
13 
14 // Save values into container that preserves order by key (QMap). These are common to all included curves
15 // QMap is for fast random access
16 typedef QMap<double, bool> ValuesVectorXOrY;
17 
18 typedef QHash<QString, bool> CurveNamesIncluded;
19 
22 {
23 public:
26  const QStringList &curveNamesIncluded,
27  const Transformation &transformation);
28 
30  CallbackSearchReturn callback (const QString &curveName,
31  const Point &point);
32 
34  ValuesVectorXOrY xThetaValuesRaw () const;
35 
36 private:
38 
39  const Transformation m_transformation;
40  CurveNamesIncluded m_curveNamesIncluded;
41  ValuesVectorXOrY m_xThetaValues;
42 };
43 
44 #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:17
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackSearchReturn
Return values for search callback methods.
Affine transformation between screen and graph coordinates, based on digitized axis points...
ValuesVectorXOrY xThetaValuesRaw() const
Resulting x/theta values for all included functions.
Callback for collecting X/Theta independent variables, for functions, in preparation for exporting...