QwtPickerMachine.3 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .TH "QwtPickerMachine" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPickerMachine \- A state machine for \fBQwtPicker\fP selections\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_picker_machine\&.h>\fP
  11. .PP
  12. Inherited by \fBQwtPickerClickPointMachine\fP, \fBQwtPickerClickRectMachine\fP, \fBQwtPickerDragLineMachine\fP, \fBQwtPickerDragPointMachine\fP, \fBQwtPickerDragRectMachine\fP, \fBQwtPickerPolygonMachine\fP, and \fBQwtPickerTrackerMachine\fP\&.
  13. .SS "Public Types"
  14. .in +1c
  15. .ti -1c
  16. .RI "enum \fBSelectionType\fP { \fBNoSelection\fP = -1, \fBPointSelection\fP, \fBRectSelection\fP, \fBPolygonSelection\fP }"
  17. .br
  18. .ti -1c
  19. .RI "enum \fBCommand\fP { \fBBegin\fP, \fBAppend\fP, \fBMove\fP, \fBRemove\fP, \fBEnd\fP }"
  20. .br
  21. .RI "Commands - the output of a state machine\&. "
  22. .in -1c
  23. .SS "Public Member Functions"
  24. .in +1c
  25. .ti -1c
  26. .RI "\fBQwtPickerMachine\fP (\fBSelectionType\fP)"
  27. .br
  28. .RI "Constructor\&. "
  29. .ti -1c
  30. .RI "virtual \fB~QwtPickerMachine\fP ()"
  31. .br
  32. .RI "Destructor\&. "
  33. .ti -1c
  34. .RI "virtual QList< \fBCommand\fP > \fBtransition\fP (const \fBQwtEventPattern\fP &, const QEvent *)=0"
  35. .br
  36. .RI "Transition\&. "
  37. .ti -1c
  38. .RI "void \fBreset\fP ()"
  39. .br
  40. .RI "Set the current state to 0\&. "
  41. .ti -1c
  42. .RI "int \fBstate\fP () const"
  43. .br
  44. .RI "Return the current state\&. "
  45. .ti -1c
  46. .RI "void \fBsetState\fP (int)"
  47. .br
  48. .RI "Change the current state\&. "
  49. .ti -1c
  50. .RI "\fBSelectionType\fP \fBselectionType\fP () const"
  51. .br
  52. .RI "Return the selection type\&. "
  53. .in -1c
  54. .SH "Detailed Description"
  55. .PP
  56. A state machine for \fBQwtPicker\fP selections\&.
  57. \fBQwtPickerMachine\fP accepts key and mouse events and translates them into selection commands\&.
  58. .PP
  59. \fBSee also\fP
  60. .RS 4
  61. \fBQwtEventPattern::MousePatternCode\fP, \fBQwtEventPattern::KeyPatternCode\fP
  62. .RE
  63. .PP
  64. .SH "Member Enumeration Documentation"
  65. .PP
  66. .SS "enum \fBQwtPickerMachine::SelectionType\fP"
  67. Type of a selection\&.
  68. .PP
  69. \fBSee also\fP
  70. .RS 4
  71. \fBselectionType()\fP
  72. .RE
  73. .PP
  74. .PP
  75. \fBEnumerator\fP
  76. .in +1c
  77. .TP
  78. \fB\fINoSelection \fP\fP
  79. The state machine not usable for any type of selection\&.
  80. .TP
  81. \fB\fIPointSelection \fP\fP
  82. The state machine is for selecting a single point\&.
  83. .TP
  84. \fB\fIRectSelection \fP\fP
  85. The state machine is for selecting a rectangle (2 points)\&.
  86. .TP
  87. \fB\fIPolygonSelection \fP\fP
  88. The state machine is for selecting a polygon (many points)\&.
  89. .SH "Author"
  90. .PP
  91. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.