7 #ifndef BACKGROUND_STATE_CURVE_H 8 #define BACKGROUND_STATE_CURVE_H 10 #include "BackgroundStateAbstractBase.h" 26 const QString &curveSelected);
30 const QPixmap &pixmapOriginal,
31 const QString &curveSelected);
32 virtual QString
state ()
const;
36 const QString &curveSelected);
41 void processImageFromSavedInputs(
const Transformation &transformation,
44 const QString &curveSelected);
47 QPixmap m_pixmapOriginal;
50 #endif // BACKGROUND_STATE_CURVE_H virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Background image state for showing filter image from current curve.
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses...
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
virtual void updateColorFilter(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
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 setPixmap(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. ...
virtual void setCurveSelected(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
Background image state machine state base class.
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
virtual QString state() const
State name for debugging.
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
Add point and line handling to generic QGraphicsScene.
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...