QWTPICKERCLICKRECTMACHINE(3)

okay bestie, welcome to QwtPickerC...RectMachine(3) from the Library Functions Manual β€” this page is all about the rectangle-selection state machine and it is lowkey iconic πŸŽ€βœ¨

πŸ’– NAME πŸ’–

QwtPickerClickRectMachine β€” literally a state machine for rectangle selections. periodt.

✨ SYNOPSIS ✨

#include <qwt_picker_machine.h>

Inherits QwtPickerMachine.

🫢 Public Member Functions 🫢

  • QwtPickerClickRectMachine () β€” Constructor. yep, that’s the constructor πŸ’…
  • virtual QList< Command > transition (const QwtEventPattern &, const QEvent *) override β€” Transition. it does the transition thing ✨

🌸 Public Member Functions inherited from QwtPickerMachine 🌸

  • QwtPickerMachine (SelectionType) β€” Constructor.
  • virtual ~QwtPickerMachine () β€” Destructor.
  • void reset () β€” Set the current state to 0.
  • int state () const β€” Return the current state.
  • void setState (int) β€” Change the current state.
  • SelectionType selectionType () const β€” Return 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 } β€” Commands - the output of a state machine.

🌈 Detailed Description 🌈

A state machine for rectangle selections.

Pressing QwtEventPattern::MouseSelect1 starts the selection, releasing it selects the first point. Pressing it again selects the second point and terminates the selection. Pressing QwtEventPattern::KeySelect1 also starts the selection, a second press selects the first point. A third one selects the second point and terminates the selection.

See also QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode.

Definition at line 140 of file qwt_picker_machine.h.

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

QwtPickerClickRectMachine::QwtPickerClickRectMachine ()

Constructor.

Definition at line 213 of file qwt_picker_machine.cpp.

πŸ’… Member Function Documentation πŸ’…

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

Transition.

Implements QwtPickerMachine.

Definition at line 219 of file qwt_picker_machine.cpp.

🌟 Author 🌟

Generated automatically by Doxygen for Qwt User's Guide from the source code.


Cute sign-off time, bestie: the footer vibes are Qwt User's Guide plus QwtPickerC...RectMachine(3), and there’s no separate date printed on the page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from