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

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

#include <CallbackGatherXThetasInGridLines.h>

Inheritance diagram for CallbackGatherXThetasInGridLines:
Inheritance graph
Collaboration diagram for CallbackGatherXThetasInGridLines:
Collaboration graph

Public Member Functions

 CallbackGatherXThetasInGridLines (const MainWindowModel &modelMainWindow, const DocumentModelExportFormat &modelExport, const QStringList &curvesIncluded, const Transformation &transformation, const Document &document)
 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 grid lines.

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 28 of file CallbackGatherXThetasInGridLines.h.

Constructor & Destructor Documentation

◆ CallbackGatherXThetasInGridLines()

CallbackGatherXThetasInGridLines::CallbackGatherXThetasInGridLines ( const MainWindowModel & modelMainWindow,
const DocumentModelExportFormat & modelExport,
const QStringList & curvesIncluded,
const Transformation & transformation,
const Document & document )

Single constructor.

Definition at line 22 of file CallbackGatherXThetasInGridLines.cpp.

26 :
28 modelExport.extrapolateOutsideEndpoints (),
31{
32 addGridLines (modelMainWindow,
34 document);
35}
const bool NOT_FIRST_CURVE_ONLY
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.

Member Function Documentation

◆ callback()

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

Callback method.

Implements CallbackGatherXThetasAbstractBase.

Definition at line 74 of file CallbackGatherXThetasInGridLines.cpp.

76{
77 LOG4CPP_DEBUG_S ((*mainCat)) << "CallbackGatherXThetasInGridLines::callback"
78 << " curveName=" << curveName.toLatin1().data()
79 << " point=" << point.identifier().toLatin1().data();
80
81 updateMinMax (curveName,
82 point);
83
85}
@ 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.
QString identifier() const
Unique identifier for a specific Point.
Definition Point.cpp:268
#define LOG4CPP_DEBUG_S(logger)
Definition convenience.h:20

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