Engauge Digitizer 2
|
Implements guideline behavior for GUIDELINE_STATE_DISCARDED. More...
#include <GuidelineStateDiscarded.h>
Public Member Functions | |
GuidelineStateDiscarded (GuidelineStateContext &context) | |
Single constructor. | |
virtual | ~GuidelineStateDiscarded () |
virtual void | begin () |
Transition into state. | |
virtual QPointF | convertGraphCoordinateToScreenPoint (double valueGraph) const |
Convert single graph coordinate into screen point pair. | |
virtual double | convertScreenPointToGraphCoordinate (const QPointF &posScreen) const |
Convert screen point pair into single graph coordinate. | |
virtual bool | doPaint () const |
Allow/skip painting of the owner Guideline. | |
virtual void | end () |
Transition out of state. | |
virtual void | handleActiveChange (bool active) |
DigitizeState change so active status may (or may not) be toggled. | |
virtual void | handleGuidelineMode (bool visible, bool locked) |
User toggled Guideline visibility and/or locked mode. | |
virtual void | handleHoverEnterEvent () |
If transparent then make visible when hover starts. | |
virtual void | handleHoverLeaveEvent () |
If previously transparent before hover enter then make transparent again. | |
virtual void | handleMousePress (const QPointF &posScene) |
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed Guideline. | |
virtual void | handleMouseRelease (const QPointF &posScene) |
At the end of dragging, clone the Guideline that owns the state machine where these states live. | |
virtual void | handleState () |
virtual void | handleTimeout () |
Handle timeout from Appearing state. | |
virtual EllipseParameters | pointToEllipse (const QPointF &posScreen) const |
Return ellipse representing constant range, that passes through the specified point. | |
virtual QLineF | pointToLine (const QPointF &posScreen) const |
Return line parallel to an axis line, that passes through the specified point. | |
virtual QString | stateName () const |
Name of state as a string for debugging only. | |
virtual void | updateWithLatestTransformation () |
Update given Transformation in GuidelineStateContext. | |
![]() | |
GuidelineStateAbstractBase (GuidelineStateContext &context) | |
Single constructor. | |
virtual | ~GuidelineStateAbstractBase () |
Additional Inherited Members | |
![]() | |
GuidelineStateContext & | context () const |
Context in charge of the state classes. | |
void | handleMousePressCommon (const QPointF &posAbsolute, GuidelineState stateHandle, GuidelineState stateDeployed) |
Common mouse press handling. | |
QRectF | sceneRect () const |
Scene rectangle in screen coordinates (=pixels) | |
Implements guideline behavior for GUIDELINE_STATE_DISCARDED.
Definition at line 13 of file GuidelineStateDiscarded.h.
GuidelineStateDiscarded::GuidelineStateDiscarded | ( | GuidelineStateContext & | context | ) |
Single constructor.
Definition at line 17 of file GuidelineStateDiscarded.cpp.
|
virtual |
Definition at line 22 of file GuidelineStateDiscarded.cpp.
|
virtual |
Transition into state.
Implements GuidelineStateAbstractBase.
Definition at line 26 of file GuidelineStateDiscarded.cpp.
|
virtual |
Convert single graph coordinate into screen point pair.
Implements GuidelineStateAbstractBase.
Definition at line 40 of file GuidelineStateDiscarded.cpp.
|
virtual |
Convert screen point pair into single graph coordinate.
Implements GuidelineStateAbstractBase.
Definition at line 50 of file GuidelineStateDiscarded.cpp.
|
virtual |
Allow/skip painting of the owner Guideline.
This prevents display of selection markings on otherwise-invisible handle Guideline
Implements GuidelineStateAbstractBase.
Definition at line 59 of file GuidelineStateDiscarded.cpp.
|
virtual |
Transition out of state.
Implements GuidelineStateAbstractBase.
Definition at line 64 of file GuidelineStateDiscarded.cpp.
DigitizeState change so active status may (or may not) be toggled.
Implements GuidelineStateAbstractBase.
Definition at line 69 of file GuidelineStateDiscarded.cpp.
User toggled Guideline visibility and/or locked mode.
Implements GuidelineStateAbstractBase.
Definition at line 73 of file GuidelineStateDiscarded.cpp.
|
virtual |
If transparent then make visible when hover starts.
Implements GuidelineStateAbstractBase.
Definition at line 78 of file GuidelineStateDiscarded.cpp.
|
virtual |
If previously transparent before hover enter then make transparent again.
Implements GuidelineStateAbstractBase.
Definition at line 85 of file GuidelineStateDiscarded.cpp.
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed Guideline.
Implements GuidelineStateAbstractBase.
Definition at line 92 of file GuidelineStateDiscarded.cpp.
At the end of dragging, clone the Guideline that owns the state machine where these states live.
Implements GuidelineStateAbstractBase.
Definition at line 97 of file GuidelineStateDiscarded.cpp.
|
virtual |
Definition at line 102 of file GuidelineStateDiscarded.cpp.
|
virtual |
Handle timeout from Appearing state.
Implements GuidelineStateAbstractBase.
Definition at line 107 of file GuidelineStateDiscarded.cpp.
|
virtual |
Return ellipse representing constant range, that passes through the specified point.
Implements GuidelineStateAbstractBase.
Definition at line 112 of file GuidelineStateDiscarded.cpp.
Return line parallel to an axis line, that passes through the specified point.
Implements GuidelineStateAbstractBase.
Definition at line 117 of file GuidelineStateDiscarded.cpp.
|
virtual |
Name of state as a string for debugging only.
Implements GuidelineStateAbstractBase.
Definition at line 122 of file GuidelineStateDiscarded.cpp.
|
virtual |
Update given Transformation in GuidelineStateContext.
Implements GuidelineStateAbstractBase.
Definition at line 127 of file GuidelineStateDiscarded.cpp.