7#ifndef BACKGROUND_STATE_CURVE_H
8#define BACKGROUND_STATE_CURVE_H
27 const QString &curveSelected);
32 const QPixmap &pixmapOriginal,
33 const QString &curveSelected);
34 virtual QString
state ()
const;
39 const QString &curveSelected);
44 void processImageFromSavedInputs(
bool isGnuplot,
48 const QString &curveSelected);
51 QPixmap m_pixmapOriginal;
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 updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
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...
BackgroundStateCurve(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
virtual void setCurveSelected(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
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.
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...
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...