|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
A state machine for rectangle selections 更多...
#include <qwt_picker_machine.h>
Public 成员函数 | |
| QwtPickerDragRectMachine () | |
| Constructor | |
| virtual QList< Command > | transition (const QwtEventPattern &, const QEvent *) override |
| Transition function that processes events and returns commands | |
Public 成员函数 继承自 QwtPickerMachine | |
| QwtPickerMachine (SelectionType) | |
| Constructor | |
| virtual | ~QwtPickerMachine () |
| Destructor | |
| void | reset () |
| Set the current state to 0 (initial state) | |
| int | state () const |
| Return the current state | |
| void | setState (int) |
| Change the current state | |
| SelectionType | selectionType () const |
| Return the selection type | |
额外继承的成员函数 | |
Public 类型 继承自 QwtPickerMachine | |
| enum | SelectionType { NoSelection = -1 , PointSelection , RectSelection , PolygonSelection } |
| Type of a selection. 更多... | |
| enum | Command { Begin , Append , Move , Remove , End } |
| Commands - the output of a state machine | |
A state machine for rectangle selections
Pressing QwtEventPattern::MouseSelect1 selects the first point, releasing it the second point. Pressing QwtEventPattern::KeySelect1 also selects the first point, a second press selects the second point and terminates the selection.
|
overridevirtual |
Transition function that processes events and returns commands
| [in] | eventPattern | Event pattern for matching |
| [in] | event | Event to process |
实现了 QwtPickerMachine.