Engauge Digitizer 2
Loading...
Searching...
No Matches
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
11
13
16{
17public:
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
30private:
32
33 CentipedePairCartesian *m_centipedePair;
34};
35
36#endif // CENTIPEDE_STATE_BUILD_CARTESIAN_H
Show two cartesian Centipede graphics items that the user interacts with by moving the cursor.
CentipedeStateAbstractBase(CentipedeStateContext &context)
Single constructor.
CentipedeStateContext & context()
Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before start of th...
virtual void handleMousePress(QPointF posScreen)
Handle mouse press event.
CentipedeStateBuildCartesian(CentipedeStateContext &context)
Single constructor.
virtual void handleKeyPress(Qt::Key key, bool atLeastOneSelectedItem)
Handle key press event.
virtual void handleMouseRelease(QPointF posScreen)
Handle mouse release event.
virtual void handleMouseMove(QPointF posScreen)
Handle mouse move event.
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...
State context class for tracking the steps involved in creating centipedes in preparation for creatin...