Engauge Digitizer 2
Loading...
Searching...
No Matches
CallbackGatherXThetasInCurves Class Reference

Callback for collecting X/Theta independent variables, for functions, in preparation for exporting, based on curve points. More...

#include <CallbackGatherXThetasInCurves.h>

Inheritance diagram for CallbackGatherXThetasInCurves:
Inheritance graph
Collaboration diagram for CallbackGatherXThetasInCurves:
Collaboration graph

Public Member Functions

 CallbackGatherXThetasInCurves (const DocumentModelExportFormat &modelExport, const QStringList &curvesIncluded, const Transformation &transformation)
 Single constructor.
virtual CallbackSearchReturn callback (const QString &curveName, const Point &point)
 Callback method.
Public Member Functions inherited from CallbackGatherXThetasAbstractBase
 CallbackGatherXThetasAbstractBase (bool firstCurveOnly, bool extrapolateOutsideEndpoints, const QStringList &curvesIncluded, const Transformation &transformation)
 Single constructor.
virtual ~CallbackGatherXThetasAbstractBase ()
CurveLimits curveLimitsMax () const
 Endpoint maxima for each curve, if extrapolation has been disabled.
CurveLimits curveLimitsMin () const
 Endpoint minima for each curve, if extrapolation has been disabled.
ValuesVectorXOrY xThetaValuesRaw () const
 Resulting x/theta values for all included functions.

Additional Inherited Members

Protected Member Functions inherited from CallbackGatherXThetasAbstractBase
void addGraphX (double xGraph)
 Save one graph x value.
QStringList curvesIncluded () const
 Get method for included names.
CurvesIncludedHash curvesIncludedHash () const
 Get method for included names as hash.
const Transformationtransformation () const
 Get method for transformation.
void updateMinMax (const QString &curveName, const Point &point)
 Update the tracked min and max values for each curve.

Detailed Description

Callback for collecting X/Theta independent variables, for functions, in preparation for exporting, based on curve points.

Although most of the time the X values are extracted from the X values of the document curves, they are sometimes extracted from the X coordinates of the grid lines (depending on ExportPointsSelectionFunctions), or even both the document curves and grid lines

Definition at line 25 of file CallbackGatherXThetasInCurves.h.

Constructor & Destructor Documentation

◆ CallbackGatherXThetasInCurves()

CallbackGatherXThetasInCurves::CallbackGatherXThetasInCurves ( const DocumentModelExportFormat & modelExport,
const QStringList & curvesIncluded,
const Transformation & transformation )

Single constructor.

Definition at line 14 of file CallbackGatherXThetasInCurves.cpp.

16 :
19 modelExport.extrapolateOutsideEndpoints (),
22{
23}
@ EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_FIRST_CURVE
const Transformation & transformation() const
Get method for transformation.
QStringList curvesIncluded() const
Get method for included names.
CallbackGatherXThetasAbstractBase(bool firstCurveOnly, bool extrapolateOutsideEndpoints, const QStringList &curvesIncluded, const Transformation &transformation)
Single constructor.
bool extrapolateOutsideEndpoints() const
Get methods for extrapolation.
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.

Member Function Documentation

◆ callback()

CallbackSearchReturn CallbackGatherXThetasInCurves::callback ( const QString & curveName,
const Point & point )
virtual

Callback method.

Implements CallbackGatherXThetasAbstractBase.

Definition at line 25 of file CallbackGatherXThetasInCurves.cpp.

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}
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
log4cpp::Category * mainCat
Definition Logger.cpp:14
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.
QPointF posScreen() const
Accessor for screen position.
Definition Point.cpp:404
QString identifier() const
Unique identifier for a specific Point.
Definition Point.cpp:268
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

The documentation for this class was generated from the following files: