Engauge Digitizer  2
TransformationStateUndefined.cpp
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 
7 #include "CmdMediator.h"
8 #include "Logger.h"
9 #include <QGraphicsScene>
10 #include <QImage>
11 #include "Transformation.h"
12 #include "TransformationStateContext.h"
13 #include "TransformationStateUndefined.h"
14 
16  QGraphicsScene & /* scene */) :
18 {
19 }
20 
22  const Transformation & /* transformation */,
23  const QString & /* selectedGraphCurve */)
24 {
25  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::begin";
26 }
27 
29  const Transformation & /* transformation */)
30 {
31  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::end";
32 }
33 
35  const Transformation & /* transformation */)
36 {
37  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::updateAxesChecker";
38 
39  // Noop
40 }
virtual void end(CmdMediator &cmdMediator, const Transformation &transformation)
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
Base class for all transformation states. This serves as an interface to TransformationStateContext.
Context class for transformation state machine.
TransformationStateUndefined(TransformationStateContext &context, QGraphicsScene &scene)
Single constructor.
virtual void begin(CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve)
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Affine transformation between screen and graph coordinates, based on digitized axis points...
Command queue stack.
Definition: CmdMediator.h:23
virtual void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.