|
Engauge Digitizer 2
|
Digitizing state for selecting a color for DigitizeStateSegment. More...
#include <DigitizeStateColorPicker.h>
Public Member Functions | |
| DigitizeStateColorPicker (DigitizeStateContext &context) | |
| Single constructor. | |
| virtual QString | activeCurve () const |
| Name of the active Curve. This can include AXIS_CURVE_NAME. | |
| virtual void | begin (CmdMediator *cmdMediator, DigitizeState previousState) |
| Method that is called at the exact moment a state is entered. | |
| virtual QCursor | cursor (CmdMediator *cmdMediator) const |
| Returns the state-specific cursor shape. | |
| virtual void | end () |
| Method that is called at the exact moment a state is exited. Typically called just before begin for the next state. | |
| virtual void | handleCurveChange (CmdMediator *cmdMediator) |
| Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Segments. | |
| virtual void | handleKeyPress (CmdMediator *cmdMediator, Qt::Key key, bool atLeastOneSelectedItem) |
| Handle a key press that was intercepted earlier. | |
| virtual void | handleMouseMove (CmdMediator *cmdMediator, QPointF posScreen) |
| 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 (CmdMediator *cmdMediator, QPointF posScreen) |
| Handle a mouse press that was intercepted earlier. | |
| virtual void | handleMouseRelease (CmdMediator *cmdMediator, QPointF posScreen) |
| Handle a mouse release that was intercepted earlier. | |
| virtual QString | state () const |
| State name for debugging. | |
| virtual void | updateModelDigitizeCurve (CmdMediator *cmdMediator, const DocumentModelDigitizeCurve &modelDigitizeCurve) |
| Update the digitize curve settings. | |
| virtual void | updateModelSegments (const DocumentModelSegments &modelSegments) |
| Update the segments given the new settings. | |
Public Member Functions inherited from DigitizeStateAbstractBase | |
| DigitizeStateAbstractBase (DigitizeStateContext &context) | |
| Single constructor. | |
| 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. | |
| void | handleContextMenuEvent (CmdMediator *cmdMediator, 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 | handleLeave (CmdMediator *cmdMediator) |
| Handle leave in case an override cursor is in effect from last QDialog, by resetting the override cursor. | |
| void | handleSetOverrideCursor (CmdMediator *cmdMediator, 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 (CmdMediator *cmdMediator) |
| Update the cursor according to the current state. | |
Additional Inherited Members |
Digitizing state for selecting a color for DigitizeStateSegment.
The basic strategy is that this class acts like a special case of DlgSettingsFilter. Specifically, the pixel just selected by a mouse click is used to change the segment filter for the currently specified curve
Definition at line 21 of file DigitizeStateColorPicker.h.
| DigitizeStateColorPicker::DigitizeStateColorPicker | ( | DigitizeStateContext & | context | ) |
Single constructor.
Definition at line 23 of file DigitizeStateColorPicker.cpp.
|
virtual |
Definition at line 28 of file DigitizeStateColorPicker.cpp.
|
virtual |
Name of the active Curve. This can include AXIS_CURVE_NAME.
Implements DigitizeStateAbstractBase.
Definition at line 32 of file DigitizeStateColorPicker.cpp.
|
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
Implements DigitizeStateAbstractBase.
Definition at line 37 of file DigitizeStateColorPicker.cpp.
|
virtual |
Returns the state-specific cursor shape.
Implements DigitizeStateAbstractBase.
Definition at line 153 of file DigitizeStateColorPicker.cpp.
|
virtual |
Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
Implements DigitizeStateAbstractBase.
Definition at line 168 of file DigitizeStateColorPicker.cpp.
|
virtual |
Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Segments.
Implements DigitizeStateAbstractBase.
Definition at line 223 of file DigitizeStateColorPicker.cpp.
|
virtual |
Handle a key press that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 228 of file DigitizeStateColorPicker.cpp.
|
virtual |
Handle a mouse move. This is part of an experiment to see if augmenting the cursor in Point Match mode is worthwhile.
Implements DigitizeStateAbstractBase.
Definition at line 236 of file DigitizeStateColorPicker.cpp.
|
virtual |
Handle a mouse press that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 242 of file DigitizeStateColorPicker.cpp.
|
virtual |
Handle a mouse release that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 248 of file DigitizeStateColorPicker.cpp.
|
virtual |
State name for debugging.
Implements DigitizeStateAbstractBase.
Definition at line 319 of file DigitizeStateColorPicker.cpp.
|
virtual |
Update the digitize curve settings.
Implements DigitizeStateAbstractBase.
Definition at line 324 of file DigitizeStateColorPicker.cpp.
|
virtual |
Update the segments given the new settings.
Implements DigitizeStateAbstractBase.
Definition at line 330 of file DigitizeStateColorPicker.cpp.