Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
TransformationStateAbstractBase Class Referenceabstract

Base class for all transformation states. This serves as an interface to TransformationStateContext. More...

#include <TransformationStateAbstractBase.h>

Inheritance diagram for TransformationStateAbstractBase:
Inheritance graph
Collaboration diagram for TransformationStateAbstractBase:
Collaboration graph

Public Member Functions

 TransformationStateAbstractBase (TransformationStateContext &context)
 Single constructor.
 
virtual ~TransformationStateAbstractBase ()
 
virtual void begin (bool isGnuplot, CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve)=0
 Method that is called at the exact moment a state is entered. Typically called just after end for the previous state.
 
virtual void end (CmdMediator &cmdMediator, const Transformation &transformation)=0
 Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
 
virtual void updateAxesChecker (CmdMediator &cmdMediator, const Transformation &transformation)=0
 Apply the new DocumentModelAxesChecker.
 

Protected Member Functions

TransformationStateContextcontext ()
 Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase subclasses, without const.
 

Detailed Description

Base class for all transformation states. This serves as an interface to TransformationStateContext.

Definition at line 25 of file TransformationStateAbstractBase.h.

Constructor & Destructor Documentation

◆ TransformationStateAbstractBase()

TransformationStateAbstractBase::TransformationStateAbstractBase ( TransformationStateContext & context)

Single constructor.

Definition at line 10 of file TransformationStateAbstractBase.cpp.

10 :
11 m_context (context)
12{
13}
TransformationStateContext & context()
Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase sub...

◆ ~TransformationStateAbstractBase()

TransformationStateAbstractBase::~TransformationStateAbstractBase ( )
virtual

Definition at line 15 of file TransformationStateAbstractBase.cpp.

16{
17}

Member Function Documentation

◆ begin()

virtual void TransformationStateAbstractBase::begin ( bool isGnuplot,
CmdMediator & cmdMediator,
const Transformation & transformation,
const QString & selectedGraphCurve )
pure virtual

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

Implemented in TransformationStateDefined, and TransformationStateUndefined.

◆ context()

TransformationStateContext & TransformationStateAbstractBase::context ( )
protected

Reference to the TransformationStateContext that contains all the TransformationStateAbstractBase subclasses, without const.

Definition at line 19 of file TransformationStateAbstractBase.cpp.

20{
21 return m_context;
22}

◆ end()

virtual void TransformationStateAbstractBase::end ( CmdMediator & cmdMediator,
const Transformation & transformation )
pure virtual

Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.

Implemented in TransformationStateDefined, and TransformationStateUndefined.

◆ updateAxesChecker()

virtual void TransformationStateAbstractBase::updateAxesChecker ( CmdMediator & cmdMediator,
const Transformation & transformation )
pure virtual

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