Engauge Digitizer  2
BackgroundStateUnloaded.h
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_UNLOADED_H
8 #define BACKGROUND_STATE_UNLOADED_H
9 
10 #include "BackgroundStateAbstractBase.h"
11 
14 {
15  public:
19 
20  virtual void begin();
21  virtual void end();
22  virtual void fitInView (GraphicsView &view);
23  virtual void setCurveSelected (const Transformation &transformation,
24  const DocumentModelGridRemoval &modelGridRemoval,
25  const DocumentModelColorFilter &colorFilter,
26  const QString &curveSelected);
27  virtual void setPixmap (const Transformation &transformation,
28  const DocumentModelGridRemoval &modelGridRemoval,
29  const DocumentModelColorFilter &modelColorFilter,
30  const QPixmap &pixmap,
31  const QString &curveSelected);
32  virtual QString state () const;
33  virtual void updateColorFilter (const Transformation &transformation,
34  const DocumentModelGridRemoval &modelGridRemoval,
35  const DocumentModelColorFilter &colorFilter,
36  const QString &curveSelected);
37 
38  private:
40 };
41 
42 #endif // BACKGROUND_STATE_UNLOADED_H
virtual QString state() const
State name for debugging.
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
Background image state for interval between startup and loading of the image.
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses...
Affine transformation between screen and graph coordinates, based on digitized axis points...
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...
Definition: GraphicsView.h:20
virtual void updateColorFilter(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(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.
Definition: GraphicsScene.h:33
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
virtual void setCurveSelected(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.