Engauge Digitizer  2
Public Member Functions | Protected Member Functions | List of all members
BackgroundStateAbstractBase Class Referenceabstract

Background image state machine state base class. More...

#include <BackgroundStateAbstractBase.h>

Inheritance diagram for BackgroundStateAbstractBase:
BackgroundStateCurve BackgroundStateNone BackgroundStateOriginal BackgroundStateUnloaded

Public Member Functions

 BackgroundStateAbstractBase (BackgroundStateContext &context, GraphicsScene &scene)
 Single constructor.
 
virtual void begin ()=0
 Method that is called at the exact moment a state is entered. Typically called just after end for the previous state.
 
BackgroundStateContextcontext ()
 Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
 
const BackgroundStateContextcontext () const
 Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
 
virtual void end ()=0
 Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
 
virtual void fitInView (GraphicsView &view)=0
 Zoom so background fills the window.
 
QImage image () const
 Image for the current state.
 
QGraphicsPixmapItem & imageItem () const
 Graphics image item for the current state.
 
GraphicsScenescene ()
 Reference to the GraphicsScene, without const.
 
const GraphicsScenescene () const
 Reference to the GraphicsScene, without const.
 
virtual void setCurveSelected (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)=0
 Update the currently selected curve name.
 
virtual void setPixmap (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmap, const QString &curveSelected)=0
 Update the image for this state, after the leaf class processes it appropriately.
 
virtual QString state () const =0
 State name for debugging.
 
virtual void updateColorFilter (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QString &curveSelected)=0
 Apply color filter settings.
 

Protected Member Functions

void setImageVisible (bool visible)
 Show/hide background image.
 
void setProcessedPixmap (const QPixmap &pixmap)
 Save the image for this state after it has been processed by the leaf class.
 

Detailed Description

Background image state machine state base class.

Definition at line 30 of file BackgroundStateAbstractBase.h.


The documentation for this class was generated from the following files: