Engauge Digitizer
2
Loading...
Searching...
No Matches
Centipede
CentipedeStateBuildCartesian.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2020 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 CENTIPEDE_STATE_BUILD_CARTESIAN_H
8
#define CENTIPEDE_STATE_BUILD_CARTESIAN_H
9
10
#include "
CentipedeStateAbstractBase.h
"
11
12
class
CentipedePairCartesian
;
13
15
class
CentipedeStateBuildCartesian
:
public
CentipedeStateAbstractBase
16
{
17
public
:
19
CentipedeStateBuildCartesian
(
CentipedeStateContext
&
context
);
20
virtual
~CentipedeStateBuildCartesian
();
21
22
virtual
void
begin
();
23
virtual
void
end
();
24
virtual
void
handleKeyPress
(Qt::Key key,
25
bool
atLeastOneSelectedItem);
26
virtual
void
handleMouseMove
(QPointF posScreen);
27
virtual
void
handleMousePress
(QPointF posScreen);
28
virtual
void
handleMouseRelease
(QPointF posScreen);
29
30
private
:
31
CentipedeStateBuildCartesian
();
32
33
CentipedePairCartesian
*m_centipedePair;
34
};
35
36
#endif
// CENTIPEDE_STATE_BUILD_CARTESIAN_H
CentipedeStateAbstractBase.h
CentipedePairCartesian
Show two cartesian Centipede graphics items that the user interacts with by moving the cursor.
Definition
CentipedePairCartesian.h:65
CentipedeStateAbstractBase::CentipedeStateAbstractBase
CentipedeStateAbstractBase(CentipedeStateContext &context)
Single constructor.
Definition
CentipedeStateAbstractBase.cpp:10
CentipedeStateAbstractBase::context
CentipedeStateContext & context()
Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.
Definition
CentipedeStateAbstractBase.cpp:19
CentipedeStateBuildCartesian::end
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before start of th...
Definition
CentipedeStateBuildCartesian.cpp:39
CentipedeStateBuildCartesian::handleMousePress
virtual void handleMousePress(QPointF posScreen)
Handle mouse press event.
Definition
CentipedeStateBuildCartesian.cpp:70
CentipedeStateBuildCartesian::CentipedeStateBuildCartesian
CentipedeStateBuildCartesian(CentipedeStateContext &context)
Single constructor.
Definition
CentipedeStateBuildCartesian.cpp:16
CentipedeStateBuildCartesian::handleKeyPress
virtual void handleKeyPress(Qt::Key key, bool atLeastOneSelectedItem)
Handle key press event.
Definition
CentipedeStateBuildCartesian.cpp:47
CentipedeStateBuildCartesian::handleMouseRelease
virtual void handleMouseRelease(QPointF posScreen)
Handle mouse release event.
Definition
CentipedeStateBuildCartesian.cpp:75
CentipedeStateBuildCartesian::handleMouseMove
virtual void handleMouseMove(QPointF posScreen)
Handle mouse move event.
Definition
CentipedeStateBuildCartesian.cpp:54
CentipedeStateBuildCartesian::~CentipedeStateBuildCartesian
virtual ~CentipedeStateBuildCartesian()
Definition
CentipedeStateBuildCartesian.cpp:22
CentipedeStateBuildCartesian::begin
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
Definition
CentipedeStateBuildCartesian.cpp:27
CentipedeStateContext
State context class for tracking the steps involved in creating centipedes in preparation for creatin...
Definition
CentipedeStateContext.h:26
Generated on
for Engauge Digitizer by
1.14.0