QWTPICKERDRAGLINEMACHINE(3)

πŸ’… QwtPickerDragLineMachine

okay bestie, welcome to the QwtPickerDragLineMachine(3) page from the Library Functions Manual πŸ’– no cap, this is the state-machine moment for line selections, and I’m gonna walk you through every detail like we’re texting at 2 a.m.


✨ NAME ✨

QwtPickerDragLineMachine β€” a state machine for line selections. That’s the vibe, that’s the whole name, periodt.

🌸 SYNOPSIS 🌸

#include <qwt_picker_machine.h>

Inherits QwtPickerMachine.

πŸ’– Public Member Functions πŸ’–

  • QwtPickerDragLineMachine () β€” Constructor. She constructs, obviously πŸ’…
  • virtual QList< Command > transition (const QwtEventPattern &, const QEvent *) override β€” Transition. The main-character step, iykyk.

🫢 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 }
  • Command β€” Commands - the output of a state machine. That’s the tea, fr fr.

🌈 Detailed Description 🌈

A state machine for line selections β€” literally what it says on the tin, bestie. It’s giving β€œdrag a line, get a selection,” and honestly? Iconic.

Pressing QwtEventPattern::MouseSelect1 selects the first point; 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. Slay, that’s the whole interaction πŸŽ€

A common use case of QwtPickerDragLineMachine are pickers for distance measurements.

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

Definition at line 185 of file qwt_picker_machine.h.

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

πŸ’« QwtPickerDragLineMachine::QwtPickerDragLineMachine ()

Constructor. Yes queen, she makes the thing πŸ’–

Definition at line 473 of file qwt_picker_machine.cpp.

πŸ’… Member Function Documentation πŸ’…

πŸ”₯ QList< QwtPickerMachine::Command > QwtPickerDragLineMachine::transition (const QwtEventPattern & eventPattern, const QEvent * event) [override], [virtual]

Transition.

Implements QwtPickerMachine.

Definition at line 479 of file qwt_picker_machine.cpp.

πŸ‘‘ Author πŸ‘‘

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


okay that’s the whole manual page, bestie! 🫢 source/version tea: Qwt User's Guide; page: QwtPickerDragLineMachine(3). The footer didn’t give a date, so no fake date energy β€” just accurate facts and cute vibes. πŸ’–βœ¨

πŸ“¦ where this page comes from