28 qCInfo(ENGAUGE_LOG) <<
"GuidelineStateHandleT::begin"
36 const double ARBITRARY_RANGE = 0;
42 qCDebug(ENGAUGE_LOG) <<
"GuidelineStateHandleT::convertGraphCoordinateToScreenPoint"
43 <<
" pos=(" << posScreen.x() <<
", " << posScreen.y() <<
")";
54 qCDebug(ENGAUGE_LOG) <<
"GuidelineStateHandleT::convertScreenPointToGraphCoordinate"
55 <<
" pos=(" << posGraph.x() <<
", " << posGraph.y() <<
")";
62 qCInfo(ENGAUGE_LOG) <<
"GuidelineStateHandleT::end";
67 qCDebug(ENGAUGE_LOG) <<
"GuidelineStateHandleT::handleMouseRelease";
QString guidelineStateAsString(GuidelineState state)
@ GUIDELINE_STATE_DISCARDED
@ GUIDELINE_STATE_DEPLOYED_CONSTANT_T_SELECT_EDIT
@ GUIDELINE_STATE_HANDLE_T
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
EllipseParameters()
Constructor when this class is expected to be never used.
void sacrificeHandleAndVisibleGuidelines(const QPointF &posScene, GuidelineState guidelineStateForReplacement)
Replace visible and handle Guidelines after click and drag.
virtual QString identifier() const =0
Unique identifier from QGraphicsItem.
Project a point along the radial direction in graph coordinates to produce a curve along the constant...
QLineF fromPosScreen(const Transformation &transformation, const QRectF &sceneRect, const QPointF &posScreen)
Return line through point in screen coordinates.
QRectF sceneRect() const
Scene rectangle in screen coordinates (=pixels).
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
Transformation transformation() const
Return copy of transformation owned by MainWindow.
GuidelineAbstract & guideline()
Guideline that owns this context class.
void requestStateTransition(GuidelineState guidelineState)
Request a state transition.
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual ~GuidelineStateHandleT()
virtual void begin()
Transition into state.
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
virtual void end()
Transition out of state.
GuidelineStateHandleT(GuidelineStateContext &context)
Single constructor.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.