Engauge Digitizer 2
Loading...
Searching...
No Matches
CallbackUpdateTransform.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
8#include "EngaugeAssert.h"
9#include "Point.h"
10
17
19{
20 switch (documentAxesPointsRequired ()) {
22 return !isError () && (numberAxisPoints () == 2);
23
25 return !isError () && (numberAxisPoints () == 3);
26
28 return !isError () && (numberAxisPoints () == 4);
29 }
30
31 return !isError () && (numberAxisPoints () == 4);
32}
@ DOCUMENT_AXES_POINTS_REQUIRED_3
@ DOCUMENT_AXES_POINTS_REQUIRED_4
@ DOCUMENT_AXES_POINTS_REQUIRED_2
DocumentAxesPointsRequired documentAxesPointsRequired() const
Number of axes points required for the transformation.
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.
unsigned int numberAxisPoints() const
Number of axis points which is less than 3 if the axes curve is incomplete.
bool transformIsDefined() const
True if enough Points were available to create a Transformation.
CallbackUpdateTransform(const DocumentModelCoords &modelCoords, DocumentAxesPointsRequired documentAxesPointsRequired)
Single constructor.
Model for DlgSettingsCoords and CmdSettingsCoords.