Engauge Digitizer 2
Loading...
Searching...
No Matches
TransformationStateAbstractBase.h
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
7#ifndef TRANSFORMATION_STATE_ABSTRACT_BASE_H
8#define TRANSFORMATION_STATE_ABSTRACT_BASE_H
9
10class CmdMediator;
12class QColor;
13class QString;
14class Transformation;
16
23
26{
27public:
31
33 virtual void begin(bool isGnuplot,
34 CmdMediator &cmdMediator,
35 const Transformation &transformation,
36 const QString &selectedGraphCurve) = 0;
37
39 virtual void end(CmdMediator &cmdMediator,
40 const Transformation &transformation) = 0;
41
43 virtual void updateAxesChecker (CmdMediator &cmdMediator,
44 const Transformation &transformation) = 0;
45
46protected:
49
50private:
52
54};
55
56#endif // TRANSFORMATION_STATE_ABSTRACT_BASE_H
TransformationState
Set of possible states of axes transformation.
Command queue stack.
Definition CmdMediator.h:24
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
virtual void end(CmdMediator &cmdMediator, const Transformation &transformation)=0
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
TransformationStateContext & context()
Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase sub...
TransformationStateAbstractBase(TransformationStateContext &context)
Single constructor.
virtual void begin(bool isGnuplot, CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve)=0
Method that is called at the exact moment a state is entered. Typically called just after end for the...
virtual void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)=0
Apply the new DocumentModelAxesChecker.
Context class for transformation state machine.
Affine transformation between screen and graph coordinates, based on digitized axis points.