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>
7
namespace
DA
8
{
9
class
DAFIGURE_API
DAChartPolygonRegionSelectEditor
:
public
DAAbstractRegionSelectEditor
10
{
11
Q_OBJECT
12
DA_DECLARE_PRIVATE(
DAChartPolygonRegionSelectEditor
)
13
public
:
14
DAChartPolygonRegionSelectEditor
(QwtPlot* parent);
15
virtual
~DAChartPolygonRegionSelectEditor
();
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
;
24
private
slots:
25
void
onItemAttached(QwtPlotItem* item,
bool
on);
26
27
protected
:
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
DA::DAAbstractRegionSelectEditor
Definition
DAAbstractRegionSelectEditor.h:10
DA::DAAbstractRegionSelectEditor::SelectionMode
SelectionMode
选择模式
Definition
DAAbstractRegionSelectEditor.h:18
DA::DAChartPolygonRegionSelectEditor
Definition
DAChartPolygonRegionSelectEditor.h:10
DA
序列化类都是带异常的,使用中需要处理异常
Definition
AppMainWindow.cpp:44
src
DAFigure
DAChartPolygonRegionSelectEditor.h
制作者
1.9.8