Engauge Digitizer 2
Loading...
Searching...
No Matches
CallbackGatherXThetasInCurves.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 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
9#include "EngaugeAssert.h"
11#include "Logger.h"
12#include "Point.h"
13
15 const QStringList &curvesIncluded,
16 const Transformation &transformation) :
17 CallbackGatherXThetasAbstractBase ((modelExport.pointsSelectionFunctions() ==
19 modelExport.extrapolateOutsideEndpoints (),
20 curvesIncluded,
21 transformation)
22{
23}
24
26 const Point &point)
27{
28 LOG4CPP_DEBUG_S ((*mainCat)) << "CallbackGatherXThetasInCurves::callback"
29 << " curveName=" << curveName.toLatin1().data()
30 << " point=" << point.identifier().toLatin1().data();
31
32 updateMinMax (curveName,
33 point);
34
35 if (curvesIncludedHash ().contains (curveName)) {
36
37 QPointF posGraph;
39 posGraph);
40 addGraphX (posGraph.x ());
41 }
42
44}
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
@ EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_FIRST_CURVE
log4cpp::Category * mainCat
Definition Logger.cpp:14
Base callback for collecting X/Theta independent variables, for functions, in preparation for exporti...
const Transformation & transformation() const
Get method for transformation.
void updateMinMax(const QString &curveName, const Point &point)
Update the tracked min and max values for each curve.
CurvesIncludedHash curvesIncludedHash() const
Get method for included names as hash.
void addGraphX(double xGraph)
Save one graph x value.
CallbackGatherXThetasInCurves(const DocumentModelExportFormat &modelExport, const QStringList &curvesIncluded, const Transformation &transformation)
Single constructor.
virtual CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition Point.h:26
QPointF posScreen() const
Accessor for screen position.
Definition Point.cpp:404
QString identifier() const
Unique identifier for a specific Point.
Definition Point.cpp:268
Affine transformation between screen and graph coordinates, based on digitized axis points.
void transformScreenToRawGraph(const QPointF &coordScreen, QPointF &coordGraph) const
Transform from cartesian pixel screen coordinates to cartesian/polar graph coordinates.
#define LOG4CPP_DEBUG_S(logger)
Definition convenience.h:20