DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAChartRectRegionSelectEditor.h
1#ifndef DACHARTRECTREGIONSELECTEDITOR_H
2#define DACHARTRECTREGIONSELECTEDITOR_H
3#include "DAFigureAPI.h"
4#include "DAAbstractRegionSelectEditor.h"
5#include "DAChartSelectRegionShapeItem.h"
6class QKeyEvent;
7namespace DA
8{
9
14{
15 Q_OBJECT
16 DA_DECLARE_PRIVATE(DAChartRectRegionSelectEditor)
17public:
18 DAChartRectRegionSelectEditor(QwtPlot* parent);
20 //获取选择的数据区域
21 virtual QPainterPath getSelectRegion() const;
22 //设置选区
23 virtual void setSelectRegion(const QPainterPath& shape);
24 //设置选择模式
25 virtual void setSelectionMode(const SelectionMode& selectionMode);
26 // rtti
27 virtual int rtti() const;
28 //清理数据
29 void clear();
30
31private slots:
32 void onItemAttached(QwtPlotItem* item, bool on);
33
34protected:
35 bool mousePressEvent(const QMouseEvent* e);
36 bool mouseMovedEvent(const QMouseEvent* e);
37 bool mouseReleasedEvent(const QMouseEvent* e);
38 bool keyPressEvent(const QKeyEvent* e);
39 bool keyReleaseEvent(const QKeyEvent* e);
40};
41} // End Of Namespace DA
42#endif // SARECTSELECTEDITOR_H
Definition DAAbstractRegionSelectEditor.h:10
SelectionMode
选择模式
Definition DAAbstractRegionSelectEditor.h:18
用于给图标添加矩形选框的事件过滤器
Definition DAChartRectRegionSelectEditor.h:14
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44