Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateDeployedConstantRAbstract.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_DEPLOYED_CONSTANT_R_ABSTRACT_H
8#define GUIDELINE_STATE_DEPLOYED_CONSTANT_R_ABSTRACT_H
9
11
14{
15public:
19
20 virtual QPointF convertGraphCoordinateToScreenPoint (double valueGraph) const;
21 virtual double convertScreenPointToGraphCoordinate (const QPointF &posScreen) const;
22 virtual EllipseParameters pointToEllipse (const QPointF &posScreen) const;
23 virtual QLineF pointToLine (const QPointF &posScreen) const;
24 virtual void updateWithLatestTransformation ();
25
26private:
28
29};
30
31#endif // GUIDELINE_STATE_DEPLOYED_CONSTANT_R_ABSTRACT_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.
GuidelineStateDeployedAbstract(GuidelineStateContext &context)
Single constructor.
GuidelineStateDeployedConstantRAbstract(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 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 EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.