Engauge Digitizer 2
|
State context class for tracking the steps involved in creating centipedes in preparation for creating a guideline. More...
#include <CentipedeStateContext.h>
Public Member Functions | |
CentipedeStateContext (DigitizeStateGuideline &stateGuideline) | |
Single constructor. | |
virtual | ~CentipedeStateContext () |
void | createGuidelineCommand (bool selectedXTFinal, double valueFinal) |
Create a command for creating a Guideline. | |
GraphicsScene * | graphicsScene () const |
Get method for forwarded GraphicsScene. | |
virtual void | handleKeyPress (Qt::Key key, bool atLeastOneSelectedItem) |
virtual void | handleMouseMove (QPointF posScreen) |
virtual void | handleMousePress (GraphicsScene *scene, const Transformation &transformation, const DocumentModelGuideline &modelGuideline, const DocumentModelCoords &modelCoords, QPointF posScreen, bool clickedOnItem) |
virtual void | handleMouseRelease (QPointF posScreen) |
DocumentModelCoords | modelCoords () const |
Get method for forwarded DocumentModelCoords. | |
DocumentModelGuideline | modelGuideline () const |
Get method for forwarded DocumentModelGuideline. | |
QPointF | posClickScreen () const |
Get method for forwarded click point. | |
void | requestDelayedStateTransition (CentipedeState centipedeState) |
Initiate state transition to be performed later, when CentipedeState is off the stack. | |
void | requestImmediateStateTransition (CentipedeState centipedeState) |
Perform immediate state transition for immediate action. Called when states are off the stack. | |
GraphicsScene & | scene () const |
Get method for forwarded GraphicsScene. | |
Transformation | transformation () const |
Get method for forwarded Transformation. |
State context class for tracking the steps involved in creating centipedes in preparation for creating a guideline.
Definition at line 25 of file CentipedeStateContext.h.
CentipedeStateContext::CentipedeStateContext | ( | DigitizeStateGuideline & | stateGuideline | ) |
Single constructor.
Definition at line 22 of file CentipedeStateContext.cpp.
|
virtual |
Definition at line 37 of file CentipedeStateContext.cpp.
void CentipedeStateContext::createGuidelineCommand | ( | bool | selectedXTFinal, |
double | valueFinal ) |
Create a command for creating a Guideline.
Definition at line 70 of file CentipedeStateContext.cpp.
GraphicsScene * CentipedeStateContext::graphicsScene | ( | ) | const |
Get method for forwarded GraphicsScene.
|
virtual |
Definition at line 77 of file CentipedeStateContext.cpp.
|
virtual |
Definition at line 87 of file CentipedeStateContext.cpp.
|
virtual |
Definition at line 95 of file CentipedeStateContext.cpp.
|
virtual |
Definition at line 119 of file CentipedeStateContext.cpp.
DocumentModelCoords CentipedeStateContext::modelCoords | ( | ) | const |
Get method for forwarded DocumentModelCoords.
Definition at line 126 of file CentipedeStateContext.cpp.
DocumentModelGuideline CentipedeStateContext::modelGuideline | ( | ) | const |
Get method for forwarded DocumentModelGuideline.
Definition at line 131 of file CentipedeStateContext.cpp.
QPointF CentipedeStateContext::posClickScreen | ( | ) | const |
Get method for forwarded click point.
Definition at line 136 of file CentipedeStateContext.cpp.
void CentipedeStateContext::requestDelayedStateTransition | ( | CentipedeState | centipedeState | ) |
Initiate state transition to be performed later, when CentipedeState is off the stack.
Definition at line 141 of file CentipedeStateContext.cpp.
void CentipedeStateContext::requestImmediateStateTransition | ( | CentipedeState | centipedeState | ) |
Perform immediate state transition for immediate action. Called when states are off the stack.
Definition at line 146 of file CentipedeStateContext.cpp.
GraphicsScene & CentipedeStateContext::scene | ( | ) | const |
Get method for forwarded GraphicsScene.
Definition at line 152 of file CentipedeStateContext.cpp.
Transformation CentipedeStateContext::transformation | ( | ) | const |
Get method for forwarded Transformation.
Definition at line 157 of file CentipedeStateContext.cpp.