|
Engauge Digitizer
2
|
Background image state machine state base class. More...
#include <BackgroundStateAbstractBase.h>
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. | |
| BackgroundStateContext & | context () |
| Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const. | |
| const BackgroundStateContext & | context () 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. | |
| GraphicsScene & | scene () |
| Reference to the GraphicsScene, without const. | |
| const GraphicsScene & | scene () 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)=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)=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. | |
Background image state machine state base class.
Definition at line 24 of file BackgroundStateAbstractBase.h.
1.8.9.1