QwtPlotPicker
来源:互联网 发布:淘宝直播印记怎么弄 编辑:程序博客网 时间:2024/06/06 04:14
- QwtPlotPicker ------------- >QwtPicker
- QwtPicker的核心有三个:
- 1、Tracker
- 2、StateMachine
- 3、RubberBand
- 简单来说tracker就是在鼠标光标处显示当前坐标。
- rubberBand则与stateMachine有关了。
- rubberBand有很多种:
- Enumerator:
- NoRubberBand
No rubberband.
HLineRubberBandA horizontal line ( only for QwtPicker::PointSelection )
VLineRubberBandA vertical line ( only for QwtPicker::PointSelection )
CrossRubberBandA crosshair ( only for QwtPicker::PointSelection )
RectRubberBandA rectangle ( only for QwtPicker::RectSelection )
EllipseRubberBandAn ellipse ( only for QwtPicker::RectSelection )
PolygonRubberBandA polygon ( only for QwtPicker::&PolygonSelection )
UserRubberBandValues >= UserRubberBand can be used to define additional rubber bands.
- 但是必须与下面的machine对应,
QwtPicker filters all enter, leave, mouse and keyboard events of a widget and translates them into an array of selected points.
The way how the points are collected depends on type of state machine that is connected to the picker. Qwt offers a couple of predefined state machines for selecting:
- Nothing
QwtPickerTrackerMachine - Single points
QwtPickerClickPointMachine,QwtPickerDragPointMachine - Rectangles
QwtPickerClickRectMachine,QwtPickerDragRectMachine - Polygons
QwtPickerPolygonMachine
While these state machines cover the most common ways to collect points it is also possible to implement individual machines as well.
- QwtPlotPicker
- QwtPlotPicker
- Qwt之QwtPlotPicker及其扩展
- Qwt之QwtPlotPicker及其扩展
- QWT中QwtPlotPicker的介绍及使用
- JavaScript onBlur,onChange,onClick
- OpenCores学习(5) -- A/V同步机制
- VMware增加硬盘空间详解
- map 与object之间互相转化
- Excel
- QwtPlotPicker
- javascript学习笔记
- aop+自定义注解实现操作日志记录
- 类与类关系的UML图与代码表现
- opencore和stagefright对比
- HashMap与Hashtable的区别
- Storm :twitter的实时数据处理工具
- Hibernate中get和load的区别
- MTK平台修改wap默认语言(转)