Engauge Digitizer
2
|
Callback for collecting axis points and then calculating the current transform from those axis points. More...
#include <CallbackUpdateTransform.h>
Public Member Functions | |
CallbackUpdateTransform (const DocumentModelCoords &modelCoords) | |
Single constructor. | |
bool | transformIsDefined () const |
True if enough Points were available to create a Transformation. More... | |
![]() | |
CallbackAxisPointsAbstract (const DocumentModelCoords &modelCoords) | |
Constructor for when all of the existing axis points are to be processed as is. | |
CallbackAxisPointsAbstract (const DocumentModelCoords &modelCoords, const QString pointIdentifierOverride, const QPointF &posGraphOverride, const QPointF &posScreenOverride) | |
Constructor for when the data for one of the existing axis points is to be locally overwritten. | |
CallbackSearchReturn | callback (const QString &curveName, const Point &point) |
Callback method. | |
QTransform | matrixGraph () const |
Returns graph coordinates matrix after transformIsDefined has already indicated success. More... | |
QTransform | matrixScreen () const |
Returns screen coordinates matrix after transformIsDefined has already indicated success. More... | |
double | xGraphRange () const |
Return the range of the x graph coordinate from low to high, after the transform is defined. | |
double | yGraphRange () const |
Return the range of the y graph coordinate from low to high, after the transform is defined. | |
Additional Inherited Members | |
![]() | |
QString | errorMessage () const |
This value is checked after iterating to see what was wrong if the axis data was incorrect. | |
bool | isError () const |
This value is checked after iterating to see if the axis data is correct. More... | |
unsigned int | numberAxisPoints () const |
Number of axis points which is less than 3 if the axes curve is incomplete. | |
Callback for collecting axis points and then calculating the current transform from those axis points.
Sanity checking of the axis points was applied earlier when the axis points were added/edited.
Definition at line 13 of file CallbackUpdateTransform.h.
bool CallbackUpdateTransform::transformIsDefined | ( | ) | const |
True if enough Points were available to create a Transformation.
Except for the node count, all other failure modes are caught externally so user gets immediate feedback as soon as bad axis point data appears
Definition at line 9 of file CallbackUpdateTransform.cpp.