7 #ifndef DIGITIZE_STATE_COLOR_PICKER_H 8 #define DIGITIZE_STATE_COLOR_PICKER_H 10 #include "BackgroundImage.h" 11 #include "DigitizeStateAbstractBase.h" 30 DigitizeState previousState);
36 bool atLeastOneSelectedItem);
43 virtual QString
state()
const;
51 bool computeFilterFromPixel (
CmdMediator *cmdMediator,
52 const QPointF &posScreen,
53 const QString &curveName,
55 bool findNearestNonBackgroundPixel (
CmdMediator *cmdMediator,
57 const QPointF &posScreenPlusHalf,
58 const QRgb &rgbBackground,
61 const QString &curveName,
66 DigitizeState m_previousDigitizeState;
67 BackgroundImage m_previousBackground;
70 #endif // DIGITIZE_STATE_COLOR_PICKER_H 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 mod...
virtual void handleMousePress(CmdMediator *cmdMediator, QPointF posScreen)
Handle a mouse press that was intercepted earlier.
virtual void updateModelDigitizeCurve(CmdMediator *cmdMediator, const DocumentModelDigitizeCurve &modelDigitizeCurve)
Update the digitize curve settings.
Digitizing state for selecting a color for DigitizeStateSegment.
virtual void handleKeyPress(CmdMediator *cmdMediator, Qt::Key key, bool atLeastOneSelectedItem)
Handle a key press that was intercepted earlier.
virtual QString state() const
State name for debugging.
virtual void updateModelSegments(const DocumentModelSegments &modelSegments)
Update the segments given the new settings.
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.
DigitizeStateContext & context()
Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase subclasses...
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a stan...
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
virtual QCursor cursor(CmdMediator *cmdMediator) const
Returns the state-specific cursor shape.
virtual void handleCurveChange(CmdMediator *cmdMediator)
Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Se...
Model for DlgSettingsSegments and CmdSettingsSegments.
virtual void handleMouseRelease(CmdMediator *cmdMediator, QPointF posScreen)
Handle a mouse release that was intercepted earlier.
Base class for all digitizing states. This serves as an interface to DigitizeStateContext.