QWTPICKERDRAGRECTMACHINE(3)

πŸ’… QwtPickerDragRectMachine(3) β€” Library Functions Manual bestie

NAME

QwtPickerDragRectMachine β€” a state machine for rectangle selections, periodt. πŸŽ€

SYNOPSIS

#include <qwt_picker_machine.h>

Inherits QwtPickerMachine.

Public Member Functions

  • QwtPickerDragRectMachine () β€” constructor, the origin story. ✨
  • virtual QList< Command > transition (const QwtEventPattern &, const QEvent *) override β€” transition, aka the main-character move. πŸ’…

Public Member Functions inherited from QwtPickerMachine

  • QwtPickerMachine (SelectionType) β€” constructor, obvi.
  • virtual ~QwtPickerMachine () β€” destructor.
  • void reset () β€” sets the current state to 0.
  • int state () const β€” returns the current state.
  • void setState (int) β€” changes the current state.
  • SelectionType selectionType () const β€” returns the selection type.

Additional Inherited Members

Public Types inherited from QwtPickerMachine

enum SelectionType { NoSelection = -1, PointSelection, RectSelection, PolygonSelection }
enum Command { Begin, Append, Move, Remove, End }
  • enum SelectionType { NoSelection = -1, PointSelection, RectSelection, PolygonSelection } β€” the selection-type enum, with all the exact values right there. πŸ‘‘
  • enum Command { Begin, Append, Move, Remove, End } β€” commands β€” the output of a state machine. πŸ’¬

Detailed Description

Okay so QwtPickerDragRectMachine is literally a state machine for rectangle selections. πŸ¦‹

Pressing QwtEventPattern::MouseSelect1 selects the first point, and releasing it selects the second point. Pressing QwtEventPattern::KeySelect1 also selects the first point, and a second press selects the second point and terminates the selection. No cap. πŸ–±οΈβœ¨

See also: QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode β€” the pattern-code besties, iykyk. πŸ‘€

Definition at line 161 of file qwt_picker_machine.h.


🎬 Constructor & Destructor Documentation

QwtPickerDragRectMachine::QwtPickerDragRectMachine ()

Constructor, obvi. 🎬

Definition at line 312 of file qwt_picker_machine.cpp.

πŸ” Member Function Documentation

QwtPickerDragRectMachine::transition

QList< QwtPickerMachine::Command > QwtPickerDragRectMachine::transition
    (const QwtEventPattern & eventPattern, const QEvent * event) [override],
    [virtual]

Transition. πŸ’…

Implements QwtPickerMachine.

Definition at line 318 of file qwt_picker_machine.cpp.

πŸ€– Author

Generated automatically by Doxygen for Qwt User's Guide from the source code. πŸ€–πŸ’–


That’s the whole page, bestie β€” from the Qwt User's Guide, this was QwtPickerDragRectMachine(3). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from