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