7 #include "BackgroundStateContext.h"
8 #include "BackgroundStateOriginal.h"
9 #include "DocumentModelColorFilter.h"
10 #include "DocumentModelGridRemoval.h"
11 #include "GraphicsScene.h"
12 #include "GraphicsView.h"
15 #include "Transformation.h"
26 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::begin";
33 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::end";
40 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::fitInView";
42 view.fitInView (
imageItem ().boundingRect());
51 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::setCurveSelected";
58 const QPixmap &pixmapOriginal,
61 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::setPixmap";
69 return "BackgroundStateOriginal";
78 LOG4CPP_INFO_S ((*mainCat)) <<
"BackgroundStateOriginal::updateColorFilter";
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
QGraphicsPixmapItem & imageItem() const
Graphics image item for the current state.
void setImageVisible(bool visible)
Show/hide background image.
void setProcessedPixmap(const QPixmap &pixmap)
Save the image for this state after it has been processed by the leaf class.
virtual void setCurveSelected(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
BackgroundStateOriginal(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Context class that manages the background image state machine.
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
virtual void updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
Background image state machine state base class.
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. ...
Add point and line handling to generic QGraphicsScene.
virtual QString state() const
State name for debugging.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...