Engauge Digitizer  2
BackgroundStateOriginal.h
1 #ifndef BACKGROUND_STATE_ORIGINAL_H
2 #define BACKGROUND_STATE_ORIGINAL_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 
35 #endif // BACKGROUND_STATE_ORIGINAL_H
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...
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:13
Background image state machine state base class.
Background image state for showing original (=unfiltered) image.
virtual void setCurveSelected(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:25
virtual void updateColorFilter(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter)
Apply color filter settings.
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 QString state() const
State name for debugging.
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
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...