Engauge Digitizer
2
Loading...
Searching...
No Matches
Transformation
TransformationStateUndefined.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
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
15
TransformationStateUndefined::TransformationStateUndefined
(
TransformationStateContext
&
context
,
16
QGraphicsScene &
/* scene */
) :
17
TransformationStateAbstractBase
(
context
)
18
{
19
}
20
21
void
TransformationStateUndefined::begin
(
bool
/* isGnuplot */
,
22
CmdMediator
&
/* cmdMediator */
,
23
const
Transformation
&
/* transformation */
,
24
const
QString &
/* selectedGraphCurve */
)
25
{
26
LOG4CPP_INFO_S
((*
mainCat
)) <<
"TransformationStateUndefined::begin"
;
27
}
28
29
void
TransformationStateUndefined::end
(
CmdMediator
&
/* cmdMediator */
,
30
const
Transformation
&
/* transformation */
)
31
{
32
LOG4CPP_INFO_S
((*
mainCat
)) <<
"TransformationStateUndefined::end"
;
33
}
34
35
void
TransformationStateUndefined::updateAxesChecker
(
CmdMediator
&
/* cmdMediator */
,
36
const
Transformation
&
/* transformation */
)
37
{
38
LOG4CPP_INFO_S
((*
mainCat
)) <<
"TransformationStateUndefined::updateAxesChecker"
;
39
40
// Noop
41
}
CmdMediator.h
mainCat
log4cpp::Category * mainCat
Definition
Logger.cpp:14
Logger.h
TransformationStateContext.h
TransformationStateUndefined.h
Transformation.h
CmdMediator
Command queue stack.
Definition
CmdMediator.h:24
TransformationStateAbstractBase::context
TransformationStateContext & context()
Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase sub...
Definition
TransformationStateAbstractBase.cpp:19
TransformationStateAbstractBase::TransformationStateAbstractBase
TransformationStateAbstractBase(TransformationStateContext &context)
Single constructor.
Definition
TransformationStateAbstractBase.cpp:10
TransformationStateContext
Context class for transformation state machine.
Definition
TransformationStateContext.h:22
TransformationStateUndefined::TransformationStateUndefined
TransformationStateUndefined(TransformationStateContext &context, QGraphicsScene &scene)
Single constructor.
Definition
TransformationStateUndefined.cpp:15
TransformationStateUndefined::updateAxesChecker
virtual void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.
Definition
TransformationStateUndefined.cpp:35
TransformationStateUndefined::begin
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...
Definition
TransformationStateUndefined.cpp:21
TransformationStateUndefined::end
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...
Definition
TransformationStateUndefined.cpp:29
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
LOG4CPP_INFO_S
#define LOG4CPP_INFO_S(logger)
Definition
convenience.h:18
Generated on
for Engauge Digitizer by
1.14.0