1 #ifndef CALLBACK_AXIS_POINTS_ABSTRACT
2 #define CALLBACK_AXIS_POINTS_ABSTRACT
5 #include "DocumentModelCoords.h"
35 const QString pointIdentifierOverride,
36 const QPointF &posGraphOverride,
37 const QPointF &posScreenOverride);
52 double xGraphRange ()
const {
return m_xGraphHigh - m_xGraphLow; }
55 double yGraphRange ()
const {
return m_yGraphHigh - m_yGraphLow; }
64 bool isError ()
const {
return m_isError; }
71 bool anyColumnsRepeat (
double m [3] [3],
int numberColumns);
72 bool threePointsAreCollinear (
double m [3] [3],
int numberColumns);
78 QString m_pointIdentifierOverride;
79 QPointF m_posScreenOverride;
80 QPointF m_posGraphOverride;
82 int m_numberAxisPoints;
83 QTransform m_screenInputs;
84 QTransform m_graphOutputs;
87 QString m_errorMessage;
96 #endif // CALLBACK_AXIS_POINTS_ABSTRACT
QTransform matrixGraph() const
Returns graph coordinates matrix after transformIsDefined has already indicated success.
Unit tests of graph coordinate sanity checking.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
CallbackSearchReturn
Return values for search callback methods.
CallbackAxisPointsAbstract(const DocumentModelCoords &modelCoords)
Constructor for when all of the existing axis points are to be processed as is.
double xGraphRange() const
Return the range of the x graph coordinate from low to high, after the transform is defined...
Model for DlgSettingsCoords and CmdSettingsCoords.
bool isError() const
This value is checked after iterating to see if the axis data is correct.
unsigned int numberAxisPoints() const
Number of axis points which is less than 3 if the axes curve is incomplete.
double yGraphRange() const
Return the range of the y graph coordinate from low to high, after the transform is defined...
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.
QTransform matrixScreen() const
Returns screen coordinates matrix after transformIsDefined has already indicated success.