7#ifndef CALLBACK_AXIS_POINTS_ABSTRACT
8#define CALLBACK_AXIS_POINTS_ABSTRACT
47 const QString pointIdentifierOverride,
48 const QPointF &posGraphOverride,
49 const QPointF &posScreenOverride,
65 double xGraphRange ()
const {
return m_xGraphHigh - m_xGraphLow; }
68 double yGraphRange ()
const {
return m_yGraphHigh - m_yGraphLow; }
80 bool isError ()
const {
return m_isError; }
94 double epsilon)
const;
98 double epsilon)
const;
100 const QPointF &posGraph);
102 const QPointF &posGraph);
104 const QPointF &posScreen,
105 const QPointF &posGraph);
106 void computeTransforms3();
107 void computeTransforms4();
108 void loadTransforms2();
109 void loadTransforms3();
110 void loadTransforms4();
111 LinearOrLog logXGraph ()
const;
112 LinearOrLog logYGraph ()
const;
113 bool threePointsAreCollinear (
const QTransform &transform,
115 LinearOrLog logY)
const;
118 DocumentModelCoords m_modelCoords;
121 QString m_pointIdentifierOverride;
122 QPointF m_posScreenOverride;
123 QPointF m_posGraphOverride;
136 QTransform m_screenInputsTransform;
137 QTransform m_graphOutputsTransform;
141 QString m_errorMessage;
QList< QPointF > CoordPairVector
QList< double > CoordSingleVector
CallbackSearchReturn
Return values for search callback methods.
DocumentAxesPointsRequired
DocumentAxesPointsRequired documentAxesPointsRequired() const
Number of axes points required for the transformation.
double yGraphRange() const
Return the range of the y graph coordinate from low to high, after the transform is defined.
QTransform matrixGraph() const
Returns graph coordinates matrix after transformIsDefined has already indicated success.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackAxisPointsAbstract(const DocumentModelCoords &modelCoords, DocumentAxesPointsRequired documentAxesPointsRequired)
Constructor for when all of the existing axis points are to be processed as is.
friend class TestGraphCoords
For unit testing.
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.
QString errorMessage() const
This value is checked after iterating to see what was wrong if the axis data was incorrect.
QTransform matrixScreen() const
Returns screen coordinates matrix after transformIsDefined has already indicated success.
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.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...