Engauge Digitizer 2
|
Digitizing state for creating multiple Points along a highlighted segment. More...
#include <DigitizeStateSegment.h>
Public Slots | |
void | slotMouseClickOnSegment (QPointF) |
Receive signal from Segment that has been clicked on. The CmdMediator from the begin method will be used. |
Public Member Functions | |
DigitizeStateSegment (DigitizeStateContext &context) | |
Single constructor. | |
virtual | ~DigitizeStateSegment () |
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 bool | canPaste (const Transformation &transformation, const QSize &viewSize) const |
Return true if there is good data in the clipboard for pasting, and that is compatible with the current state. | |
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 bool | guidelinesAreSelectable () const |
Enable/disable guidelines according to state. | |
virtual void | handleContextMenuEventAxis (CmdMediator *cmdMediator, const QString &pointIdentifier) |
Handle a right click, on an axis point, that was intercepted earlier. | |
virtual void | handleContextMenuEventGraph (CmdMediator *cmdMediator, const QStringList &pointIdentifiers) |
Handle a right click, on a graph point, that was intercepted earlier. | |
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 | updateAfterPointAddition () |
Update graphics attributes after possible new points. This is useful for highlight opacity. | |
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. | |
virtual | ~DigitizeStateAbstractBase () |
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 | setCursor (CmdMediator *cmdMediator) |
Update the cursor according to the current state. |
Additional Inherited Members | |
Protected Member Functions inherited from DigitizeStateAbstractBase | |
bool | canPasteProtected (const Transformation &transformation, const QSize &viewSize) const |
Protected version of canPaste method. Some, but not all, leaf classes use this method. | |
virtual void | handleKeyPressArrow (CmdMediator *cmdMediator, Qt::Key key, bool atLeastOneSelectedItem) |
If the key is an arrow (left, right, up, down) then move currently selected items. | |
QString | moveTextDown () const |
Display text for down arrow. | |
QString | moveTextLeft () const |
Display text for left arrow. | |
QString | moveTextRight () const |
Display text for right arrow. | |
QString | moveTextUp () const |
Display text for up arrow. |
Digitizing state for creating multiple Points along a highlighted segment.
Definition at line 18 of file DigitizeStateSegment.h.
DigitizeStateSegment::DigitizeStateSegment | ( | DigitizeStateContext & | context | ) |
Single constructor.
Definition at line 23 of file DigitizeStateSegment.cpp.
|
virtual |
Definition at line 28 of file DigitizeStateSegment.cpp.
|
virtual |
Name of the active Curve. This can include AXIS_CURVE_NAME.
Implements DigitizeStateAbstractBase.
Definition at line 32 of file DigitizeStateSegment.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 DigitizeStateSegment.cpp.
|
virtual |
Return true if there is good data in the clipboard for pasting, and that is compatible with the current state.
Implements DigitizeStateAbstractBase.
Definition at line 52 of file DigitizeStateSegment.cpp.
|
virtual |
Returns the state-specific cursor shape.
Implements DigitizeStateAbstractBase.
Definition at line 59 of file DigitizeStateSegment.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 66 of file DigitizeStateSegment.cpp.
|
virtual |
Enable/disable guidelines according to state.
Implements DigitizeStateAbstractBase.
Definition at line 77 of file DigitizeStateSegment.cpp.
|
virtual |
Handle a right click, on an axis point, that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 82 of file DigitizeStateSegment.cpp.
|
virtual |
Handle a right click, on a graph point, that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 89 of file DigitizeStateSegment.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 96 of file DigitizeStateSegment.cpp.
|
virtual |
Handle a key press that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 125 of file DigitizeStateSegment.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 137 of file DigitizeStateSegment.cpp.
|
virtual |
Handle a mouse press that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 143 of file DigitizeStateSegment.cpp.
|
virtual |
Handle a mouse release that was intercepted earlier.
Implements DigitizeStateAbstractBase.
Definition at line 149 of file DigitizeStateSegment.cpp.
|
slot |
Receive signal from Segment that has been clicked on. The CmdMediator from the begin method will be used.
Definition at line 175 of file DigitizeStateSegment.cpp.
|
virtual |
State name for debugging.
Implements DigitizeStateAbstractBase.
Definition at line 218 of file DigitizeStateSegment.cpp.
|
virtual |
Update graphics attributes after possible new points. This is useful for highlight opacity.
Implements DigitizeStateAbstractBase.
Definition at line 223 of file DigitizeStateSegment.cpp.
|
virtual |
Update the digitize curve settings.
Implements DigitizeStateAbstractBase.
Definition at line 228 of file DigitizeStateSegment.cpp.
|
virtual |
Update the segments given the new settings.
Implements DigitizeStateAbstractBase.
Definition at line 234 of file DigitizeStateSegment.cpp.