Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateHandleR.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GUIDELINE_STATE_HANDLE_R_H
8#define GUIDELINE_STATE_HANDLE_R_H
9
11
14{
15public:
18 virtual ~GuidelineStateHandleR();
19
20 virtual void begin ();
21 virtual QPointF convertGraphCoordinateToScreenPoint (double valueGraph) const;
22 virtual double convertScreenPointToGraphCoordinate (const QPointF &posScreen) const;
23 virtual void end ();
24 virtual void handleMouseRelease (const QPointF &posScene);
25 virtual EllipseParameters pointToEllipse (const QPointF &posScreen) const;
26 virtual QLineF pointToLine (const QPointF &posScreen) const;
27 virtual QString stateName () const;
28
29};
30
31#endif // GUIDELINE_STATE_HANDLE_R_H
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
GuidelineStateHandleR(GuidelineStateContext &context)
Single constructor.
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual void end()
Transition out of state.
virtual void begin()
Transition into state.
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.