Engauge Digitizer  2
Public Member Functions | List of all members
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. More...
 
virtual CallbackSearchReturn callback (const QString &curveName, const Point &point)
 Callback method. More...
 
- Public Member Functions inherited from CallbackGatherXThetasAbstractBase
 CallbackGatherXThetasAbstractBase (bool firstCurveOnly, bool extrapolateOutsideEndpoints, const QStringList &curvesIncluded, const Transformation &transformation)
 Single constructor. More...
 
virtual ~CallbackGatherXThetasAbstractBase ()
 
CurveLimits curveLimitsMax () const
 Endpoint maxima for each curve, if extrapolation has been disabled. More...
 
CurveLimits curveLimitsMin () const
 Endpoint minima for each curve, if extrapolation has been disabled. More...
 
ValuesVectorXOrY xThetaValuesRaw () const
 Resulting x/theta values for all included functions. More...
 

Additional Inherited Members

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

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 24 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.

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 }

The documentation for this class was generated from the following files:
CallbackGatherXThetasAbstractBase::updateMinMax
void updateMinMax(const QString &curveName, const Point &point)
Update the tracked min and max values for each curve.
Definition: CallbackGatherXThetasAbstractBase.cpp:75
DocumentModelExportFormat::pointsSelectionFunctions
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
Definition: DocumentModelExportFormat.cpp:253
CallbackGatherXThetasAbstractBase::transformation
const Transformation & transformation() const
Get method for transformation.
Definition: CallbackGatherXThetasAbstractBase.cpp:70
EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_FIRST_CURVE
Definition: ExportPointsSelectionFunctions.h:16
CallbackGatherXThetasAbstractBase::addGraphX
void addGraphX(double xGraph)
Save one graph x value.
Definition: CallbackGatherXThetasAbstractBase.cpp:45
CallbackGatherXThetasAbstractBase
Base callback for collecting X/Theta independent variables, for functions, in preparation for exporti...
Definition: CallbackGatherXThetasAbstractBase.h:19
Point::posScreen
QPointF posScreen() const
Accessor for screen position.
Definition: Point.cpp:404
CallbackGatherXThetasAbstractBase::curvesIncludedHash
CurvesIncludedHash curvesIncludedHash() const
Get method for included names as hash.
Definition: CallbackGatherXThetasAbstractBase.cpp:65
CallbackGatherXThetasAbstractBase::curvesIncluded
QStringList curvesIncluded() const
Get method for included names.
Definition: CallbackGatherXThetasAbstractBase.cpp:60
Point::identifier
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:268
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14
Transformation::transformScreenToRawGraph
void transformScreenToRawGraph(const QPointF &coordScreen, QPointF &coordGraph) const
Transform from cartesian pixel screen coordinates to cartesian/polar graph coordinates.
Definition: Transformation.cpp:453
CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
Definition: CallbackSearchReturn.h:21
LOG4CPP_DEBUG_S
#define LOG4CPP_DEBUG_S(logger)
Definition: convenience.h:20
DocumentModelExportFormat::extrapolateOutsideEndpoints
bool extrapolateOutsideEndpoints() const
Get methods for extrapolation.
Definition: DocumentModelExportFormat.cpp:124