Engauge Digitizer
2
|
Base class for all digitizing states. This serves as an interface to DigitizeStateContext. More...
#include <DigitizeStateAbstractBase.h>
Public Member Functions | |
DigitizeStateAbstractBase (DigitizeStateContext &context) | |
Single constructor. | |
virtual QString | activeCurve () const =0 |
Name of the active Curve. This can include AXIS_CURVE_NAME. | |
virtual void | begin (DigitizeState previousState)=0 |
Method that is called at the exact moment a state is entered. More... | |
DigitizeStateContext & | context () |
Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase subclasses, without const. | |
const DigitizeStateContext & | context () const |
Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase 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. | |
void | handleContextMenuEvent (const QString &pointIdentifier) |
Handle a right click that was intercepted earlier. This is done in the superclass since it works the same in all states. | |
virtual void | handleCurveChange ()=0 |
Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Segments. | |
virtual void | handleKeyPress (Qt::Key key, bool atLeastOneSelectedItem)=0 |
Handle a key press that was intercepted earlier. | |
virtual void | handleLeave () |
Handle leave in case an override cursor is in effect from last QDialog, by resetting the override cursor. | |
virtual void | handleMouseMove (QPointF posScreen)=0 |
Handle a mouse move. This is part of an experiment to see if augmenting the cursor in Point Match mode is worthwhile. | |
virtual void | handleMousePress (QPointF pos)=0 |
Handle a mouse press that was intercepted earlier. | |
virtual void | handleMouseRelease (QPointF pos)=0 |
Handle a mouse release that was intercepted earlier. | |
void | handleSetOverrideCursor (const QCursor &cursor) |
Handle the command to set the override cursor. | |
void | removeOverrideCursor () |
Remove the override cursor if it is in use. This is called after a leave event, and prior to displaying a QDialog. | |
void | setCursor () |
Update the cursor according to the current state. | |
virtual QString | state () const =0 |
State name for debugging. | |
virtual void | updateModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)=0 |
Update the digitize curve settings. | |
virtual void | updateModelSegments (const DocumentModelSegments &modelSegments)=0 |
Update the segments given the new settings. | |
Protected Member Functions | |
virtual QCursor | cursor () const =0 |
Returns the state-specific cursor shape. | |
Base class for all digitizing states. This serves as an interface to DigitizeStateContext.
Definition at line 28 of file DigitizeStateAbstractBase.h.
|
pure virtual |
Method that is called at the exact moment a state is entered.
Typically called just after end for the previous state. The previousState value is used by DigitizeStateColorPicker to return to the previous state
Implemented in DigitizeStateColorPicker, DigitizeStatePointMatch, DigitizeStateSegment, DigitizeStateAxis, DigitizeStateCurve, DigitizeStateEmpty, and DigitizeStateSelect.