Engauge Digitizer  2
BackgroundStateCurve.h
1 #ifndef BACKGROUND_STATE_CURVE_H
2 #define BACKGROUND_STATE_CURVE_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 &pixmapOriginal);
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  void processImageFromSavedInputs(const Transformation &transformation,
34  const DocumentModelGridRemoval &modelGridRemoval,
35  const DocumentModelColorFilter &modelColorFilter);
36 
37  // Data saved for use by processImageFromSavedInputs
38  QString m_curveSelected;
39  QPixmap m_pixmapOriginal;
40 };
41 
42 #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.
virtual QString state() const
State name for debugging.
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
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 void setPixmap(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmapOriginal)
Update the image for this state, after the leaf class processes it appropriately. ...
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
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.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...