Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 25 of file CallbackGatherXThetasInCurves.h.

Constructor & Destructor Documentation

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 }
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
Base callback for collecting X/Theta independent variables, for functions, in preparation for exporti...
bool extrapolateOutsideEndpoints() const
Get methods for extrapolation.
const Transformation & transformation() const
Get method for transformation.
QStringList curvesIncluded() const
Get method for included names.

Member Function Documentation

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 }
void transformScreenToRawGraph(const QPointF &coordScreen, QPointF &coordGraph) const
Transform from cartesian pixel screen coordinates to cartesian/polar graph coordinates.
void updateMinMax(const QString &curveName, const Point &point)
Update the tracked min and max values for each curve.
QPointF posScreen() const
Accessor for screen position.
Definition: Point.cpp:404
void addGraphX(double xGraph)
Save one graph x value.
CurvesIncludedHash curvesIncludedHash() const
Get method for included names as hash.
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:268
Continue normal execution of the search.
const Transformation & transformation() const
Get method for transformation.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define LOG4CPP_DEBUG_S(logger)
Definition: convenience.h:20

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