Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DigitizeStateAxis Class Reference

Digitizing state for digitizing one axis point at a time. More...

#include <DigitizeStateAxis.h>

Inheritance diagram for DigitizeStateAxis:
DigitizeStateAbstractBase

Public Member Functions

 DigitizeStateAxis (DigitizeStateContext &context)
 Single constructor.
 
virtual QString activeCurve () const
 Name of the active Curve. This can include AXIS_CURVE_NAME.
 
virtual void begin (CmdMediator *cmdMediator, DigitizeState previousState)
 Method that is called at the exact moment a state is entered.
 
virtual QCursor cursor (CmdMediator *cmdMediator) const
 Returns the state-specific cursor shape.
 
virtual void end ()
 Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
 
virtual void handleCurveChange (CmdMediator *cmdMediator)
 Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Segments.
 
virtual void handleKeyPress (CmdMediator *cmdMediator, Qt::Key key, bool atLeastOneSelectedItem)
 Handle a key press that was intercepted earlier.
 
virtual void handleMouseMove (CmdMediator *cmdMediator, QPointF posScreen)
 Handle a mouse move. This is part of an experiment to see if augmenting the cursor in Point Match mode is worthwhile.
 
virtual void handleMousePress (CmdMediator *cmdMediator, QPointF posScreen)
 Handle a mouse press that was intercepted earlier.
 
virtual void handleMouseRelease (CmdMediator *cmdMediator, QPointF posScreen)
 Handle a mouse release that was intercepted earlier.
 
virtual QString state () const
 State name for debugging.
 
virtual void updateModelDigitizeCurve (CmdMediator *cmdMediator, const DocumentModelDigitizeCurve &modelDigitizeCurve)
 Update the digitize curve settings.
 
virtual void updateModelSegments (const DocumentModelSegments &modelSegments)
 Update the segments given the new settings.
 
- Public Member Functions inherited from DigitizeStateAbstractBase
 DigitizeStateAbstractBase (DigitizeStateContext &context)
 Single constructor.
 
DigitizeStateContextcontext ()
 Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase subclasses, without const.
 
const DigitizeStateContextcontext () const
 Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase subclasses, without const.
 
void handleContextMenuEvent (CmdMediator *cmdMediator, const QString &pointIdentifier)
 Handle a right click that was intercepted earlier. This is done in the superclass since it works the same in all states.
 
virtual void handleLeave (CmdMediator *cmdMediator)
 Handle leave in case an override cursor is in effect from last QDialog, by resetting the override cursor.
 
void handleSetOverrideCursor (CmdMediator *cmdMediator, const QCursor &cursor)
 Handle the command to set the override cursor.
 
void removeOverrideCursor ()
 Remove the override cursor if it is in use. This is called after a leave event, and prior to displaying a QDialog.
 
void setCursor (CmdMediator *cmdMediator)
 Update the cursor according to the current state.
 

Additional Inherited Members

Detailed Description

Digitizing state for digitizing one axis point at a time.

Once three axis points are defined, those points define an affine transformation from pixel screen coordinates to graph coordinates.

Definition at line 16 of file DigitizeStateAxis.h.

Constructor & Destructor Documentation

◆ DigitizeStateAxis()

DigitizeStateAxis::DigitizeStateAxis ( DigitizeStateContext context)

Single constructor.

Definition at line 24 of file DigitizeStateAxis.cpp.

◆ ~DigitizeStateAxis()

DigitizeStateAxis::~DigitizeStateAxis ( )
virtual

Definition at line 29 of file DigitizeStateAxis.cpp.

Member Function Documentation

◆ activeCurve()

QString DigitizeStateAxis::activeCurve ( ) const
virtual

Name of the active Curve. This can include AXIS_CURVE_NAME.

Implements DigitizeStateAbstractBase.

Definition at line 33 of file DigitizeStateAxis.cpp.

◆ begin()

void DigitizeStateAxis::begin ( CmdMediator cmdMediator,
DigitizeState  previousState 
)
virtual

Method that is called at the exact moment a state is entered.

Typically called just after end for the previous state. The previousState value is used by DigitizeStateColorPicker to return to the previous state

Implements DigitizeStateAbstractBase.

Definition at line 38 of file DigitizeStateAxis.cpp.

◆ cursor()

QCursor DigitizeStateAxis::cursor ( CmdMediator cmdMediator) const
virtual

Returns the state-specific cursor shape.

Implements DigitizeStateAbstractBase.

Definition at line 64 of file DigitizeStateAxis.cpp.

◆ end()

void DigitizeStateAxis::end ( )
virtual

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

Implements DigitizeStateAbstractBase.

Definition at line 74 of file DigitizeStateAxis.cpp.

◆ handleCurveChange()

void DigitizeStateAxis::handleCurveChange ( CmdMediator cmdMediator)
virtual

Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Segments.

Implements DigitizeStateAbstractBase.

Definition at line 79 of file DigitizeStateAxis.cpp.

◆ handleKeyPress()

void DigitizeStateAxis::handleKeyPress ( CmdMediator cmdMediator,
Qt::Key  key,
bool  atLeastOneSelectedItem 
)
virtual

Handle a key press that was intercepted earlier.

Implements DigitizeStateAbstractBase.

Definition at line 84 of file DigitizeStateAxis.cpp.

◆ handleMouseMove()

void DigitizeStateAxis::handleMouseMove ( CmdMediator cmdMediator,
QPointF  posScreen 
)
virtual

Handle a mouse move. This is part of an experiment to see if augmenting the cursor in Point Match mode is worthwhile.

Implements DigitizeStateAbstractBase.

Definition at line 92 of file DigitizeStateAxis.cpp.

◆ handleMousePress()

void DigitizeStateAxis::handleMousePress ( CmdMediator cmdMediator,
QPointF  pos 
)
virtual

Handle a mouse press that was intercepted earlier.

Implements DigitizeStateAbstractBase.

Definition at line 98 of file DigitizeStateAxis.cpp.

◆ handleMouseRelease()

void DigitizeStateAxis::handleMouseRelease ( CmdMediator cmdMediator,
QPointF  pos 
)
virtual

Handle a mouse release that was intercepted earlier.

Implements DigitizeStateAbstractBase.

Definition at line 104 of file DigitizeStateAxis.cpp.

◆ state()

QString DigitizeStateAxis::state ( ) const
virtual

State name for debugging.

Implements DigitizeStateAbstractBase.

Definition at line 174 of file DigitizeStateAxis.cpp.

◆ updateModelDigitizeCurve()

void DigitizeStateAxis::updateModelDigitizeCurve ( CmdMediator cmdMediator,
const DocumentModelDigitizeCurve modelDigitizeCurve 
)
virtual

Update the digitize curve settings.

Implements DigitizeStateAbstractBase.

Definition at line 179 of file DigitizeStateAxis.cpp.

◆ updateModelSegments()

void DigitizeStateAxis::updateModelSegments ( const DocumentModelSegments modelSegments)
virtual

Update the segments given the new settings.

Implements DigitizeStateAbstractBase.

Definition at line 187 of file DigitizeStateAxis.cpp.


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