Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
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
10
#include "
GuidelineStateHandleAbstract.h
"
11
13
class
GuidelineStateHandleR
:
public
GuidelineStateHandleAbstract
14
{
15
public
:
17
GuidelineStateHandleR
(
GuidelineStateContext
&
context
);
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
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:27
GuidelineStateContext
Context class for state machine that belongs to the Guideline class.
Definition
GuidelineStateContext.h:132
GuidelineStateHandleAbstract::GuidelineStateHandleAbstract
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleAbstract.cpp:17
GuidelineStateHandleR::convertGraphCoordinateToScreenPoint
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
Definition
GuidelineStateHandleR.cpp:34
GuidelineStateHandleR::GuidelineStateHandleR
GuidelineStateHandleR(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleR.cpp:17
GuidelineStateHandleR::pointToLine
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
Definition
GuidelineStateHandleR.cpp:83
GuidelineStateHandleR::~GuidelineStateHandleR
virtual ~GuidelineStateHandleR()
Definition
GuidelineStateHandleR.cpp:22
GuidelineStateHandleR::pointToEllipse
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
Definition
GuidelineStateHandleR.cpp:74
GuidelineStateHandleR::end
virtual void end()
Transition out of state.
Definition
GuidelineStateHandleR.cpp:60
GuidelineStateHandleR::begin
virtual void begin()
Transition into state.
Definition
GuidelineStateHandleR.cpp:26
GuidelineStateHandleR::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
GuidelineStateHandleR.cpp:65
GuidelineStateHandleR::stateName
virtual QString stateName() const
Name of state as a string for debugging only.
Definition
GuidelineStateHandleR.cpp:89
GuidelineStateHandleR::convertScreenPointToGraphCoordinate
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
Definition
GuidelineStateHandleR.cpp:48
Generated on
for Engauge Digitizer by
1.14.0