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