Engauge Digitizer 2
Loading...
Searching...
No Matches
CentipedeStateAbstractBase Class Referenceabstract

Base class for CentipedePair states. More...

#include <CentipedeStateAbstractBase.h>

Inheritance diagram for CentipedeStateAbstractBase:
Inheritance graph
Collaboration diagram for CentipedeStateAbstractBase:
Collaboration graph

Public Member Functions

 CentipedeStateAbstractBase (CentipedeStateContext &context)
 Single constructor.
virtual ~CentipedeStateAbstractBase ()
virtual void begin ()=0
 Method that is called at the exact moment a state is entered. Typically called just after end for the previous stat.
CentipedeStateContextcontext ()
 Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.
virtual void end ()=0
 Method that is called at the exact moment a state is exited. Typically called just before start of the next stat.
virtual void handleKeyPress (Qt::Key key, bool atLeastOneSelectedItem)=0
 Handle key press event.
virtual void handleMouseMove (QPointF posScreen)=0
 Handle mouse move event.
virtual void handleMousePress (QPointF posScreen)=0
 Handle mouse press event.
virtual void handleMouseRelease (QPointF posScreen)=0
 Handle mouse release event.

Protected Member Functions

void enableUndoStack (bool enable)
 Method called by subclasses to send signalUndoActve.

Detailed Description

Base class for CentipedePair states.

Definition at line 16 of file CentipedeStateAbstractBase.h.

Constructor & Destructor Documentation

◆ CentipedeStateAbstractBase()

CentipedeStateAbstractBase::CentipedeStateAbstractBase ( CentipedeStateContext & context)

Single constructor.

Definition at line 10 of file CentipedeStateAbstractBase.cpp.

10 :
11 m_context (context)
12{
13}
CentipedeStateContext & context()
Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.

◆ ~CentipedeStateAbstractBase()

CentipedeStateAbstractBase::~CentipedeStateAbstractBase ( )
virtual

Definition at line 15 of file CentipedeStateAbstractBase.cpp.

16{
17}

Member Function Documentation

◆ begin()

virtual void CentipedeStateAbstractBase::begin ( )
pure virtual

Method that is called at the exact moment a state is entered. Typically called just after end for the previous stat.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.

◆ context()

CentipedeStateContext & CentipedeStateAbstractBase::context ( )

Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.

Definition at line 19 of file CentipedeStateAbstractBase.cpp.

20{
21 return m_context;
22}

◆ enableUndoStack()

void CentipedeStateAbstractBase::enableUndoStack ( bool enable)
protected

Method called by subclasses to send signalUndoActve.

◆ end()

virtual void CentipedeStateAbstractBase::end ( )
pure virtual

Method that is called at the exact moment a state is exited. Typically called just before start of the next stat.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.

◆ handleKeyPress()

virtual void CentipedeStateAbstractBase::handleKeyPress ( Qt::Key key,
bool atLeastOneSelectedItem )
pure virtual

Handle key press event.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.

◆ handleMouseMove()

virtual void CentipedeStateAbstractBase::handleMouseMove ( QPointF posScreen)
pure virtual

Handle mouse move event.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.

◆ handleMousePress()

virtual void CentipedeStateAbstractBase::handleMousePress ( QPointF posScreen)
pure virtual

Handle mouse press event.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.

◆ handleMouseRelease()

virtual void CentipedeStateAbstractBase::handleMouseRelease ( QPointF posScreen)
pure virtual

Handle mouse release event.

Implemented in CentipedeStateBuildCartesian, CentipedeStateBuildPolar, and CentipedeStatePrebuild.


The documentation for this class was generated from the following files: