Engauge Digitizer  2
BackgroundStateUnloaded.h
1 #ifndef BACKGROUND_STATE_UNLOADED_H
2 #define BACKGROUND_STATE_UNLOADED_H
3 
4 #include "BackgroundStateAbstractBase.h"
5 
8 {
9  public:
13 
14  virtual void begin();
15  virtual void end();
16  virtual void fitInView (GraphicsView &view);
17  virtual void setCurveSelected (const Transformation &transformation,
18  const DocumentModelGridRemoval &modelGridRemoval,
19  const DocumentModelColorFilter &colorFilter,
20  const QString &curveSelected);
21  virtual void setPixmap (const Transformation &transformation,
22  const DocumentModelGridRemoval &modelGridRemoval,
23  const DocumentModelColorFilter &modelColorFilter,
24  const QPixmap &pixmap);
25  virtual QString state () const;
26  virtual void updateColorFilter (const Transformation &transformation,
27  const DocumentModelGridRemoval &modelGridRemoval,
28  const DocumentModelColorFilter &colorFilter);
29 
30  private:
32 };
33 
34 #endif // BACKGROUND_STATE_UNLOADED_H
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:14
Background image state machine state base class.
virtual QString state() const
State name for debugging.
virtual void setPixmap(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmap)
Update the image for this state, after the leaf class processes it appropriately. ...
virtual void updateColorFilter(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter)
Apply color filter settings.
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:25
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.