Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CallbackCheckAddPointAxis.cpp
1 #include "CallbackCheckAddPointAxis.h"
2 #include "Curve.h"
3 #include "Point.h"
4 
5 extern const QString AXIS_CURVE_NAME;
6 
8  const QPointF &posScreen,
9  const QPointF &posGraph) :
10  CallbackAxisPointsAbstract (modelCoords)
11 {
12  // Insert an extra Point as if it already was in the axes curve. This is done before iterating rather
13  // than after since there is no safe place to do this afterwards (isError and errorMessage may be called more than once)
14  Point point (AXIS_CURVE_NAME,
15  posScreen,
16  posGraph);
17 
18  callback (AXIS_CURVE_NAME,
19  point);
20 }
21 
23 {
25 }
26 
28 {
30 }
QString errorMessage() const
Error message that explains the problem indicated by isError.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:17
bool isError() const
True if an error occurred during iteration.
Model for DlgSettingsCoords and CmdSettingsCoords.
bool isError() const
This value is checked after iterating to see if the axis data is correct.
Callback for collecting axis points and then performing common calculations on those axis points...
QString errorMessage() const
This value is checked after iterating to see what was wrong if the axis data was incorrect.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackCheckAddPointAxis(const DocumentModelCoords &modelCoords, const QPointF &posScreen, const QPointF &posGraph)
Single constructor.