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