Engauge Digitizer 2
Loading...
Searching...
No Matches
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
11#include "ExportValuesXOrY.h"
12#include <QHash>
13#include <QMap>
14#include "Transformation.h"
15#include "ValuesVectorXOrY.h"
16
18class 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
22typedef QMap<double, bool> ValuesVectorXOrY;
23
24typedef QHash<QString, bool> CurveNamesIncluded;
25
28{
29public:
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
42private:
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
CallbackSearchReturn
Return values for search callback methods.
Callback for collecting X/Theta independent variables, for functions, in preparation for exporting.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
ValuesVectorXOrY xThetaValuesRaw() const
Resulting x/theta values for all included functions.
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition Point.h:24
Affine transformation between screen and graph coordinates, based on digitized axis points.