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 | ~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. | |
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 (bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)=0 |
Update the currently selected curve name. | |
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. | |
virtual QString | state () const =0 |
State name for debugging. | |
virtual void | updateColorFilter (bool isGnuplot, 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. | |
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.
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.
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.
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 BackgroundStateNone, BackgroundStateOriginal, BackgroundStateUnloaded, and BackgroundStateCurve.
Save the image for this state after it has been processed by the leaf class.
Definition at line 69 of file BackgroundStateAbstractBase.cpp.
State name for debugging.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.
|
pure virtual |
Apply color filter settings.
Implemented in BackgroundStateCurve, BackgroundStateNone, BackgroundStateOriginal, and BackgroundStateUnloaded.