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 to0.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
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms