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;
121 QString m_pointIdentifierOverride;
122 QPointF m_posScreenOverride;
123 QPointF m_posGraphOverride;
136 QTransform m_screenInputsTransform;
137 QTransform m_graphOutputsTransform;
141 QString m_errorMessage;
153 #endif // CALLBACK_AXIS_POINTS_ABSTRACT QTransform matrixScreen() const
Returns screen 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...
double yGraphRange() const
Return the range of the y graph coordinate from low to high, after the transform is defined.
QList< QPointF > CoordPairVector
CallbackSearchReturn
Return values for search callback methods.
unsigned int numberAxisPoints() const
Number of axis points which is less than 3 if the axes curve is incomplete.
QList< double > CoordSingleVector
QString errorMessage() const
This value is checked after iterating to see what was wrong if the axis data was incorrect.
Model for DlgSettingsCoords and CmdSettingsCoords.
CallbackAxisPointsAbstract(const DocumentModelCoords &modelCoords, DocumentAxesPointsRequired documentAxesPointsRequired)
Constructor for when all of the existing axis points are to be processed as is.
bool isError() const
This value is checked after iterating to see if the axis data is correct.
double xGraphRange() const
Return the range of the x graph coordinate from low to high, after the transform is defined.
QTransform matrixGraph() const
Returns graph coordinates matrix after transformIsDefined has already indicated success.
Callback for collecting axis points and then performing common calculations on those axis points.
DocumentAxesPointsRequired
DocumentAxesPointsRequired documentAxesPointsRequired() const
Number of axes points required for the transformation.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.