|
Engauge Digitizer
2
|
Background image state machine state base class. More...
#include <BackgroundStateAbstractBase.h>


Public Member Functions | |
| BackgroundStateAbstractBase (BackgroundStateContext &context, GraphicsScene &scene) | |
| Single constructor. More... | |
| virtual | ~BackgroundStateAbstractBase () |
| 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. More... | |
| BackgroundStateContext & | context () |
| Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const. More... | |
| const BackgroundStateContext & | context () const |
| Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const. More... | |
| 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. More... | |
| virtual void | fitInView (GraphicsView &view)=0 |
| Zoom so background fills the window. More... | |
| QImage | image () const |
| Image for the current state. More... | |
| QGraphicsPixmapItem & | imageItem () const |
| Graphics image item for the current state. More... | |
| GraphicsScene & | scene () |
| Reference to the GraphicsScene, without const. More... | |
| const GraphicsScene & | scene () const |
| Reference to the GraphicsScene, without const. More... | |
| virtual void | setCurveSelected (bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)=0 |
| Update the currently selected curve name. More... | |
| virtual void | setPixmap (bool isGnuplot, 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. More... | |
| virtual QString | state () const =0 |
| State name for debugging. More... | |
| virtual void | updateColorFilter (bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QString &curveSelected)=0 |
| Apply color filter settings. More... | |
Protected Member Functions | |
| void | setImageVisible (bool visible) |
| Show/hide background image. More... | |
| void | setProcessedPixmap (const QPixmap &pixmap) |
| Save the image for this state after it has been processed by the leaf class. More... | |
Background image state machine state base class.
Definition at line 30 of file BackgroundStateAbstractBase.h.
| BackgroundStateAbstractBase::BackgroundStateAbstractBase | ( | BackgroundStateContext & | context, |
| GraphicsScene & | scene | ||
| ) |
Single constructor.
Definition at line 15 of file BackgroundStateAbstractBase.cpp.
|
virtual |
Definition at line 30 of file BackgroundStateAbstractBase.cpp.
|
pure virtual |
Method that is called at the exact moment a state is entered. Typically called just after end for the previous state.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
| BackgroundStateContext & BackgroundStateAbstractBase::context | ( | ) |
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
Definition at line 34 of file BackgroundStateAbstractBase.cpp.
| const BackgroundStateContext & BackgroundStateAbstractBase::context | ( | ) | const |
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
Definition at line 39 of file BackgroundStateAbstractBase.cpp.
|
pure virtual |
Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
|
pure virtual |
Zoom so background fills the window.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
| QImage BackgroundStateAbstractBase::image | ( | ) | const |
Image for the current state.
Definition at line 44 of file BackgroundStateAbstractBase.cpp.
| QGraphicsPixmapItem & BackgroundStateAbstractBase::imageItem | ( | ) | const |
Graphics image item for the current state.
Definition at line 49 of file BackgroundStateAbstractBase.cpp.
| GraphicsScene & BackgroundStateAbstractBase::scene | ( | ) |
Reference to the GraphicsScene, without const.
Definition at line 54 of file BackgroundStateAbstractBase.cpp.
| const GraphicsScene & BackgroundStateAbstractBase::scene | ( | ) | const |
Reference to the GraphicsScene, without const.
Definition at line 59 of file BackgroundStateAbstractBase.cpp.
|
pure virtual |
Update the currently selected curve name.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
|
protected |
Show/hide background image.
Definition at line 64 of file BackgroundStateAbstractBase.cpp.
|
pure virtual |
Update the image for this state, after the leaf class processes it appropriately.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
|
protected |
Save the image for this state after it has been processed by the leaf class.
Definition at line 69 of file BackgroundStateAbstractBase.cpp.
|
pure virtual |
State name for debugging.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
|
pure virtual |
Apply color filter settings.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
1.8.14