Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
GuidelineStateHandleX.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_X_H
8
#define GUIDELINE_STATE_HANDLE_X_H
9
10
#include "
GuidelineStateHandleAbstract.h
"
11
12
class
GuidelineStateHandleX
:
public
GuidelineStateHandleAbstract
13
{
14
public
:
16
GuidelineStateHandleX
(
GuidelineStateContext
&
context
);
17
virtual
~GuidelineStateHandleX
();
18
19
virtual
void
begin
();
20
virtual
QPointF
convertGraphCoordinateToScreenPoint
(
double
valueGraph
)
const
;
21
virtual
double
convertScreenPointToGraphCoordinate
(
const
QPointF
&posScreen)
const
;
22
virtual
void
end
();
23
virtual
void
handleMouseRelease
(
const
QPointF
&
posScene
);
24
virtual
EllipseParameters
pointToEllipse
(
const
QPointF
&posScreen)
const
;
25
virtual
QLineF
pointToLine
(
const
QPointF
&posScreen)
const
;
26
virtual
QString
stateName
()
const
;
27
28
};
29
30
#endif
// GUIDELINE_STATE_HANDLE_X_H
INNER_RADIUS_MIN
const int INNER_RADIUS_MIN
Definition
DlgSettingsDigitizeCurve.cpp:35
GuidelineStateHandleAbstract.h
EllipseParameters
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
Definition
EllipseParameters.h:16
GuidelineStateAbstractBase::context
GuidelineStateContext & context() const
Context in charge of the state classes.
Definition
GuidelineStateAbstractBase.cpp:28
GuidelineStateContext
Context class for state machine that belongs to the Guideline class.
Definition
GuidelineStateContext.h:130
GuidelineStateHandleAbstract
State for an invisible handle which was previously a deployed Guideline but morphed into an invisible...
Definition
GuidelineStateHandleAbstract.h:20
GuidelineStateHandleX
Definition
GuidelineStateHandleX.h:13
GuidelineStateHandleX::~GuidelineStateHandleX
virtual ~GuidelineStateHandleX()
Definition
GuidelineStateHandleX.cpp:23
GuidelineStateHandleX::begin
virtual void begin()
Transition into state.
Definition
GuidelineStateHandleX.cpp:27
GuidelineStateHandleX::stateName
virtual QString stateName() const
Name of state as a string for debugging only.
Definition
GuidelineStateHandleX.cpp:90
GuidelineStateHandleX::pointToEllipse
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
Definition
GuidelineStateHandleX.cpp:75
GuidelineStateHandleX::end
virtual void end()
Transition out of state.
Definition
GuidelineStateHandleX.cpp:61
GuidelineStateHandleX::convertScreenPointToGraphCoordinate
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
Definition
GuidelineStateHandleX.cpp:49
GuidelineStateHandleX::handleMouseRelease
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
Definition
GuidelineStateHandleX.cpp:66
GuidelineStateHandleX::GuidelineStateHandleX
GuidelineStateHandleX(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleX.cpp:18
GuidelineStateHandleX::convertGraphCoordinateToScreenPoint
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
Definition
GuidelineStateHandleX.cpp:35
GuidelineStateHandleX::pointToLine
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
Definition
GuidelineStateHandleX.cpp:81
Generated on Sat Dec 21 2024 18:04:14 for Engauge Digitizer by
1.10.0