qwt_picker_machine.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_PICKER_MACHINE
11 #define QWT_PICKER_MACHINE
12 
13 #include "qwt_global.h"
14 
15 class QwtEventPattern;
16 class QEvent;
17 template< typename T > class QList;
18 
29 {
30  public:
36  {
38  NoSelection = -1,
39 
42 
45 
47  PolygonSelection
48  };
49 
51  enum Command
52  {
57  End
58  };
59 
60  explicit QwtPickerMachine( SelectionType );
61  virtual ~QwtPickerMachine();
62 
64  virtual QList< Command > transition(
65  const QwtEventPattern&, const QEvent* ) = 0;
66  void reset();
67 
68  int state() const;
69  void setState( int );
70 
71  SelectionType selectionType() const;
72 
73  private:
75  int m_state;
76 };
77 
86 {
87  public:
89 
91  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
92 };
93 
103 {
104  public:
106 
108  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
109 };
110 
119 {
120  public:
122 
124  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
125 };
126 
141 {
142  public:
144 
146  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
147 };
148 
162 {
163  public:
165 
167  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
168 };
169 
186 {
187  public:
189 
191  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
192 };
193 
206 {
207  public:
209 
211  const QwtEventPattern&, const QEvent* ) QWT_OVERRIDE;
212 };
213 
214 #endif
QwtPickerMachine::Append
@ Append
Definition: qwt_picker_machine.h:54
QwtPickerMachine::RectSelection
@ RectSelection
The state machine is for selecting a rectangle (2 points).
Definition: qwt_picker_machine.h:44
detail::state
state
Definition: core.h:2305
QwtPickerDragRectMachine
A state machine for rectangle selections.
Definition: qwt_picker_machine.h:161
QwtPickerMachine::Remove
@ Remove
Definition: qwt_picker_machine.h:56
qwt_global.h
QwtPickerDragPointMachine
A state machine for point selections.
Definition: qwt_picker_machine.h:118
QList
Definition: qwt_abstract_legend.h:17
QwtPickerPolygonMachine
A state machine for polygon selections.
Definition: qwt_picker_machine.h:205
QwtPickerDragLineMachine
A state machine for line selections.
Definition: qwt_picker_machine.h:185
QwtPickerMachine::PointSelection
@ PointSelection
The state machine is for selecting a single point.
Definition: qwt_picker_machine.h:41
QwtPickerMachine::Begin
@ Begin
Definition: qwt_picker_machine.h:53
QwtPickerMachine::m_selectionType
const SelectionType m_selectionType
Definition: qwt_picker_machine.h:74
QwtPickerMachine::m_state
int m_state
Definition: qwt_picker_machine.h:75
QwtPickerMachine::SelectionType
SelectionType
Definition: qwt_picker_machine.h:35
QwtPickerMachine
A state machine for QwtPicker selections.
Definition: qwt_picker_machine.h:28
backward::Color::reset
@ reset
Definition: backward.hpp:3678
QwtPickerClickRectMachine
A state machine for rectangle selections.
Definition: qwt_picker_machine.h:140
QwtEventPattern
A collection of event patterns.
Definition: qwt_event_pattern.h:30
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtPickerMachine::Move
@ Move
Definition: qwt_picker_machine.h:55
QwtPickerTrackerMachine
A state machine for indicating mouse movements.
Definition: qwt_picker_machine.h:85
QwtPickerClickPointMachine
A state machine for point selections.
Definition: qwt_picker_machine.h:102
QwtPickerMachine::transition
virtual QList< Command > transition(const QwtEventPattern &, const QEvent *)=0
Transition.
QwtPickerMachine::Command
Command
Commands - the output of a state machine.
Definition: qwt_picker_machine.h:51


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45