QwtPickerMachine(3)
π QwtPickerMachine(3) β from the Library Functions Manual (Qwt User's Guide, bestie)
okay so picture this: you're deep in the Qwt docs, the vibe is immaculate, and you've just met QwtPickerMachine β a state machine for QwtPicker selections. she's giving main character energy fr fr π
β¨ NAME β¨
QwtPickerMachine β a state machine for QwtPicker selections. no cap, that's literally her whole job π
π¦ SYNOPSIS π¦
#include <qwt_picker_machine.h>
she's the blueprint, the moment, the base class β and these icons all inherited from her π:
QwtPickerClickPointMachineQwtPickerClickRectMachineQwtPickerDragLineMachineQwtPickerDragPointMachineQwtPickerDragRectMachineQwtPickerPolygonMachineQwtPickerTrackerMachine
πΈ Public Types πΈ
enum SelectionType { NoSelection = -1, PointSelection, RectSelection,
PolygonSelection }
enum Command { Begin, Append, Move, Remove, End }
the Command enum? that's Commands - the output of a state machine. she speaks in commands and we listen π
π Public Member Functions π
QwtPickerMachine(SelectionType)β Constructor. birth of an icon β¨virtual ~QwtPickerMachine()β Destructor. she's leaving but the legacy stays π«Άvirtual QList<Command> transition(const QwtEventPattern &, const QEvent *) = 0β Transition. pure virtual, so she cannot do it alone β your subclasses gotta step up πvoid reset()β Set the current state to 0. factory reset but make it cute π§int state() constβ Return the current state. where is she at emotionally? this tells you πvoid setState(int)β Change the current state. we're pivoting, we're rebranding π₯SelectionType selectionType() constβ Return the selection type. what kind of selection is this giving? π
π Detailed Description π
A state machine for QwtPicker selections.
QwtPickerMachine accepts key and mouse events and translates them into selection commands. literally a translator for vibes β input goes in, commands come out, periodt π«
See also: QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode
Definition at line 28 of file qwt_picker_machine.h.
π Member Enumeration Documentation π
enum QwtPickerMachine::Command
Commands - the output of a state machine.
Definition at line 51 of file qwt_picker_machine.h.
enum QwtPickerMachine::SelectionType
Type of a selection.
See also: selectionType()
Enumerator β each one has her own little personality π
NoSelectionβ The state machine not usable for any type of selection. she said "not me, not today" πPointSelectionβ The state machine is for selecting a single point. one point, one moment, one icon βRectSelectionβ The state machine is for selecting a rectangle (2 points). two points, a whole rectangle, slay π¦PolygonSelectionβ The state machine is for selecting a polygon (many points). many points, so many, obsessed π
Definition at line 35 of file qwt_picker_machine.h.
π« Constructor & Destructor Documentation π«
QwtPickerMachine::QwtPickerMachine(SelectionType type) [explicit]
Constructor. she's here, she's explicit, she's not being implicit about it π
Definition at line 16 of file qwt_picker_machine.cpp.
QwtPickerMachine::~QwtPickerMachine() [virtual]
Destructor. the goodbye era π
Definition at line 23 of file qwt_picker_machine.cpp.
π₯ Member Function Documentation π₯
void QwtPickerMachine::reset()
Set the current state to 0.
Definition at line 46 of file qwt_picker_machine.cpp.
QwtPickerMachine::SelectionType QwtPickerMachine::selectionType() const
Return the selection type.
Definition at line 28 of file qwt_picker_machine.cpp.
void QwtPickerMachine::setState(int state)
Change the current state.
Definition at line 40 of file qwt_picker_machine.cpp.
int QwtPickerMachine::state() const
Return the current state.
Definition at line 34 of file qwt_picker_machine.cpp.
virtual QList<Command> QwtPickerMachine::transition(const QwtEventPattern &, const QEvent *) [pure virtual]
Transition.
Implemented in: QwtPickerClickPointMachine, QwtPickerClickRectMachine, QwtPickerDragLineMachine, QwtPickerDragPointMachine, QwtPickerDragRectMachine, QwtPickerPolygonMachine, and QwtPickerTrackerMachine.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. yes bestie, the robots wrote the docs, but the vibe? the vibe is all hers β¨
and that's the whole page, no notes β¨ this little masterpiece comes to you from the Qwt User's Guide (source + version included, iykyk) and it's dated QwtPickerMachine(3) β go forth and select something iconic πππ¦
π¦ 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