Engauge Digitizer
2
|
Context class for transformation state machine. More...
#include <TransformationStateContext.h>
Public Member Functions | |
TransformationStateContext (QGraphicsScene &scene, bool isGnuplot) | |
Single constructor. | |
bool | isGnuplot () const |
Flag for gnuplot debug files. | |
void | resetOnLoad () |
Reset, when loading a document after the first, to same state that first document was at when loaded. | |
void | triggerStateTransition (TransformationState transformationState, CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve) |
Trigger a state transition to be performed immediately. | |
void | updateAxesChecker (CmdMediator &cmdMediator, const Transformation &transformation) |
Apply the new DocumentModelAxesChecker. | |
Context class for transformation state machine.
This removes some tricky state processing from MainWindow. Unlike typical state machines, the transitions are driven directly from the outside rather than indirectly by events that are processed by the states (this has triggerStateTransition rather than requestStateTransition)
Definition at line 21 of file TransformationStateContext.h.