Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Background
BackgroundStateUnloaded.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 "
BackgroundStateContext.h
"
8
#include "
BackgroundStateUnloaded.h
"
9
#include "
DocumentModelColorFilter.h
"
10
#include "
DocumentModelGridRemoval.h
"
11
#include "
GraphicsScene.h
"
12
#include "
GraphicsView.h
"
13
#include "
Logger.h
"
14
#include <QPixmap>
15
16
BackgroundStateUnloaded::BackgroundStateUnloaded
(
BackgroundStateContext
&
context
,
17
GraphicsScene
&
scene
) :
18
BackgroundStateAbstractBase
(
context
,
19
scene
)
20
{
21
}
22
23
void
BackgroundStateUnloaded::begin
()
24
{
25
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::begin"
;
26
}
27
28
void
BackgroundStateUnloaded::end
()
29
{
30
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::end"
;
31
}
32
33
void
BackgroundStateUnloaded::fitInView
(
GraphicsView
&
/* view */
)
34
{
35
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::fitInView"
;
36
}
37
38
void
BackgroundStateUnloaded::setCurveSelected
(
bool
/* isGnuplot */
,
39
const
Transformation
&
/* transformation */
,
40
const
DocumentModelGridRemoval
&
/* modelGridRemoval */
,
41
const
DocumentModelColorFilter
&
/* modelColorFilter */
,
42
const
QString &
/* curveSelected */
)
43
{
44
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::setCurveSelected"
;
45
}
46
47
void
BackgroundStateUnloaded::setPixmap
(
bool
/* isGnuplot */
,
48
const
Transformation
&
/* transformation */
,
49
const
DocumentModelGridRemoval
&
/* modelGridRemoval */
,
50
const
DocumentModelColorFilter
&
/* modelColorFilter */
,
51
const
QPixmap &
/* pixmap */
,
52
const
QString &
/* curveSelected */
)
53
{
54
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::setPixmap"
;
55
56
// This state has no displayed image
57
}
58
59
QString
BackgroundStateUnloaded::state
()
const
60
{
61
return
"BackgroundStateUnloaded"
;
62
}
63
64
void
BackgroundStateUnloaded::updateColorFilter
(
bool
/* isGnuplot */
,
65
const
Transformation
&
/* transformation */
,
66
const
DocumentModelGridRemoval
&
/* modelGridRemoval */
,
67
const
DocumentModelColorFilter
&
/* modelColorFilter */
,
68
const
QString &
/* curveSelected */
)
69
{
70
qCInfo(ENGAUGE_LOG) <<
"BackgroundStateUnloaded::updateColorFilter"
;
71
}
BackgroundStateContext.h
BackgroundStateUnloaded.h
DocumentModelColorFilter.h
DocumentModelGridRemoval.h
GraphicsScene.h
GraphicsView.h
Logger.h
BackgroundStateAbstractBase::BackgroundStateAbstractBase
BackgroundStateAbstractBase(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
Definition
BackgroundStateAbstractBase.cpp:15
BackgroundStateAbstractBase::scene
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
Definition
BackgroundStateAbstractBase.cpp:54
BackgroundStateAbstractBase::context
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses,...
Definition
BackgroundStateAbstractBase.cpp:34
BackgroundStateContext
Context class that manages the background image state machine.
Definition
BackgroundStateContext.h:33
BackgroundStateUnloaded::fitInView
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
Definition
BackgroundStateUnloaded.cpp:33
BackgroundStateUnloaded::end
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
Definition
BackgroundStateUnloaded.cpp:28
BackgroundStateUnloaded::updateColorFilter
virtual void updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
Definition
BackgroundStateUnloaded.cpp:64
BackgroundStateUnloaded::setPixmap
virtual void setPixmap(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmap, const QString &curveSelected)
Update the image for this state, after the leaf class processes it appropriately.
Definition
BackgroundStateUnloaded.cpp:47
BackgroundStateUnloaded::state
virtual QString state() const
State name for debugging.
Definition
BackgroundStateUnloaded.cpp:59
BackgroundStateUnloaded::begin
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Definition
BackgroundStateUnloaded.cpp:23
BackgroundStateUnloaded::setCurveSelected
virtual void setCurveSelected(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
Definition
BackgroundStateUnloaded.cpp:38
BackgroundStateUnloaded::BackgroundStateUnloaded
BackgroundStateUnloaded(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
Definition
BackgroundStateUnloaded.cpp:16
DocumentModelColorFilter
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Definition
DocumentModelColorFilter.h:22
DocumentModelGridRemoval
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval.
Definition
DocumentModelGridRemoval.h:21
GraphicsScene
Add point and line handling to generic QGraphicsScene.
Definition
GraphicsScene.h:37
GraphicsView
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Definition
GraphicsView.h:21
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition
Transformation.h:32
Generated on
for Engauge Digitizer by
1.17.0