Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Background
BackgroundStateCurve.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 BACKGROUND_STATE_CURVE_H
8
#define BACKGROUND_STATE_CURVE_H
9
10
#include "
BackgroundStateAbstractBase.h
"
11
13
class
BackgroundStateCurve
:
public
BackgroundStateAbstractBase
14
{
15
public
:
17
BackgroundStateCurve
(
BackgroundStateContext
&
context
,
18
GraphicsScene
&
scene
);
19
20
virtual
void
begin
();
21
virtual
void
end
();
22
virtual
void
fitInView
(
GraphicsView
&view);
23
virtual
void
setCurveSelected
(
bool
isGnuplot,
24
const
Transformation
&transformation,
25
const
DocumentModelGridRemoval
&modelGridRemoval,
26
const
DocumentModelColorFilter
&colorFilter,
27
const
QString &curveSelected);
28
virtual
void
setPixmap
(
bool
isGnuplot,
29
const
Transformation
&transformation,
30
const
DocumentModelGridRemoval
&modelGridRemoval,
31
const
DocumentModelColorFilter
&modelColorFilter,
32
const
QPixmap &pixmapOriginal,
33
const
QString &curveSelected);
34
virtual
QString
state
()
const
;
35
virtual
void
updateColorFilter
(
bool
isGnuplot,
36
const
Transformation
&transformation,
37
const
DocumentModelGridRemoval
&modelGridRemoval,
38
const
DocumentModelColorFilter
&colorFilter,
39
const
QString &curveSelected);
40
41
private
:
42
BackgroundStateCurve
();
43
44
void
processImageFromSavedInputs(
bool
isGnuplot,
45
const
Transformation
&transformation,
46
const
DocumentModelGridRemoval
&modelGridRemoval,
47
const
DocumentModelColorFilter
&modelColorFilter,
48
const
QString &curveSelected);
49
50
// Data saved for use by processImageFromSavedInputs
51
QPixmap m_pixmapOriginal;
52
};
53
54
#endif
// BACKGROUND_STATE_CURVE_H
BackgroundStateAbstractBase.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
BackgroundStateCurve::updateColorFilter
virtual void updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
Definition
BackgroundStateCurve.cpp:116
BackgroundStateCurve::state
virtual QString state() const
State name for debugging.
Definition
BackgroundStateCurve.cpp:111
BackgroundStateCurve::begin
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Definition
BackgroundStateCurve.cpp:25
BackgroundStateCurve::BackgroundStateCurve
BackgroundStateCurve(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
Definition
BackgroundStateCurve.cpp:18
BackgroundStateCurve::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
BackgroundStateCurve.cpp:76
BackgroundStateCurve::setPixmap
virtual void setPixmap(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmapOriginal, const QString &curveSelected)
Update the image for this state, after the leaf class processes it appropriately.
Definition
BackgroundStateCurve.cpp:94
BackgroundStateCurve::fitInView
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
Definition
BackgroundStateCurve.cpp:39
BackgroundStateCurve::end
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
Definition
BackgroundStateCurve.cpp:32
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