QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
QwtPickerClickPointMachine类 参考

A state machine for point selections 更多...

#include <qwt_picker_machine.h>

类 QwtPickerClickPointMachine 继承关系图:
QwtPickerMachine

Public 成员函数

 QwtPickerClickPointMachine ()
 Constructor
 
virtual QList< Commandtransition (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 point selections

Pressing QwtEventPattern::MouseSelect1 or QwtEventPattern::KeySelect1 selects a point.

参见
QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode

成员函数说明

◆ transition()

QList< QwtPickerMachine::Command > QwtPickerClickPointMachine::transition ( const QwtEventPattern eventPattern,
const QEvent *  event 
)
overridevirtual

Transition function that processes events and returns commands

参数
[in]eventPatternEvent pattern for matching
[in]eventEvent to process
返回
List of commands generated by the transition

实现了 QwtPickerMachine.


该类的文档由以下文件生成: