Engauge Digitizer  2
TransformationStateUndefined.cpp
1 #include "CmdMediator.h"
2 #include "Logger.h"
3 #include <QGraphicsScene>
4 #include <QImage>
5 #include "Transformation.h"
6 #include "TransformationStateContext.h"
7 #include "TransformationStateUndefined.h"
8 
10  QGraphicsScene & /* scene */) :
12 {
13 }
14 
16  const Transformation & /* transformation */,
17  const QString & /* selectedGraphCurve */)
18 {
19  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::begin";
20 }
21 
23  const Transformation & /* transformation */)
24 {
25  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::end";
26 }
27 
29  const Transformation & /* transformation */)
30 {
31  LOG4CPP_INFO_S ((*mainCat)) << "TransformationStateUndefined::updateAxesChecker";
32 
33  // Noop
34 }
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:16
virtual void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.