Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
GuidelineStateHandleT.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_T_H
8
#define GUIDELINE_STATE_HANDLE_T_H
9
10
#include "
GuidelineStateHandleAbstract.h
"
11
12
class
GuidelineStateHandleT
:
public
GuidelineStateHandleAbstract
13
{
14
public
:
16
GuidelineStateHandleT
(
GuidelineStateContext
&
context
);
17
virtual
~GuidelineStateHandleT
();
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_T_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:28
GuidelineStateContext
Context class for state machine that belongs to the Guideline class.
Definition
GuidelineStateContext.h:130
GuidelineStateHandleAbstract::GuidelineStateHandleAbstract
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleAbstract.cpp:18
GuidelineStateHandleT::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
GuidelineStateHandleT.cpp:66
GuidelineStateHandleT::pointToEllipse
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
Definition
GuidelineStateHandleT.cpp:75
GuidelineStateHandleT::stateName
virtual QString stateName() const
Name of state as a string for debugging only.
Definition
GuidelineStateHandleT.cpp:90
GuidelineStateHandleT::pointToLine
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
Definition
GuidelineStateHandleT.cpp:81
GuidelineStateHandleT::~GuidelineStateHandleT
virtual ~GuidelineStateHandleT()
Definition
GuidelineStateHandleT.cpp:23
GuidelineStateHandleT::begin
virtual void begin()
Transition into state.
Definition
GuidelineStateHandleT.cpp:27
GuidelineStateHandleT::convertGraphCoordinateToScreenPoint
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
Definition
GuidelineStateHandleT.cpp:35
GuidelineStateHandleT::end
virtual void end()
Transition out of state.
Definition
GuidelineStateHandleT.cpp:61
GuidelineStateHandleT::GuidelineStateHandleT
GuidelineStateHandleT(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleT.cpp:18
GuidelineStateHandleT::convertScreenPointToGraphCoordinate
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
Definition
GuidelineStateHandleT.cpp:49
Generated on
for Engauge Digitizer by
1.14.0