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"
6
class
QKeyEvent;
7
namespace
DA
8
{
9
13
class
DAFIGURE_API
DAChartRectRegionSelectEditor
:
public
DAAbstractRegionSelectEditor
14
{
15
Q_OBJECT
16
DA_DECLARE_PRIVATE(
DAChartRectRegionSelectEditor
)
17
public
:
18
DAChartRectRegionSelectEditor
(QwtPlot* parent);
19
virtual
~DAChartRectRegionSelectEditor
();
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
31
private
slots:
32
void
onItemAttached(QwtPlotItem* item,
bool
on);
33
34
protected
:
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
DA::DAAbstractRegionSelectEditor
Definition
DAAbstractRegionSelectEditor.h:10
DA::DAAbstractRegionSelectEditor::SelectionMode
SelectionMode
选择模式
Definition
DAAbstractRegionSelectEditor.h:18
DA::DAChartRectRegionSelectEditor
用于给图标添加矩形选框的事件过滤器
Definition
DAChartRectRegionSelectEditor.h:14
DA
序列化类都是带异常的,使用中需要处理异常
Definition
AppMainWindow.cpp:44
src
DAFigure
DAChartRectRegionSelectEditor.h
制作者
1.9.8