Engauge Digitizer 2
Loading...
Searching...
No Matches
TransformationStateDefined.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_DEFINED_H
8#define TRANSFORMATION_STATE_DEFINED_H
9
10#include "Checker.h"
11#include <QObject>
12#include "Transformation.h"
14
15class QTimer;
16
19{
21
22public:
25 QGraphicsScene &scene);
26
27 virtual void begin(bool isGnuplot,
28 CmdMediator &cmdMediator,
29 const Transformation &transformation,
30 const QString &selectedGraphCurve);
31 virtual void end(CmdMediator &cmdMediator,
32 const Transformation &transformation);
33 virtual void updateAxesChecker (CmdMediator &cmdMediator,
34 const Transformation &transformation);
35
36private slots:
37 void slotTimeout();
38
39private:
41
42 void initializeModelGridDisplay (CmdMediator &cmdMediator,
43 const Transformation &transformation);
44 void initializeModelGridRemoval (bool isGnuplot,
45 CmdMediator &cmdMediator,
46 const Transformation &transformation,
47 const QString &selectedGraphCurve);
48 void startTimer (const DocumentModelAxesChecker &modelAxesChecker);
49
50 // As a QGraphicsItem subclass, the Checker is deleted by the QGraphicsScene so it must be a pointer
51 Checker *m_axesChecker;
52
53 QTimer *m_timer;
54};
55
56#endif // TRANSFORMATION_STATE_DEFINED_H
const int INNER_RADIUS_MIN
Box shape that is drawn through the three axis points, to temporarily (usually) or permanently (rarel...
Definition Checker.h:34
Command queue stack.
Definition CmdMediator.h:24
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
Base class for all transformation states. This serves as an interface to TransformationStateContext.
TransformationStateContext & context()
Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase sub...
Context class for transformation state machine.
Class to show transformation since transformation is defined.
virtual void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.
virtual void begin(bool isGnuplot, 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...
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...
Affine transformation between screen and graph coordinates, based on digitized axis points.