|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
A state machine for indicating mouse movements 更多...
#include <qwt_picker_machine.h>
Public 成员函数 | |
| QwtPickerTrackerMachine () | |
| 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 indicating mouse movements
QwtPickerTrackerMachine supports displaying information corresponding to mouse movements, but is not intended for selecting anything. Begin/End are related to Enter/Leave events.
|
overridevirtual |
Transition function that processes events and returns commands
| [in] | eventPattern | Event pattern for matching |
| [in] | e | Event to process |
实现了 QwtPickerMachine.