|
DAWorkbench 0.0.1
DAWorkbench API
|
Public 类型 | |
| enum | SelectionMode { SingleSelection , AdditionalSelection , SubtractionSelection , IntersectionSelection } |
| 选择模式 更多... | |
Public 类型 继承自 DA::DAAbstractPlotEditor | |
| enum | RTTI { RTTIRectRegionSelectEditor , RTTIEllipseRegionSelectEditor , RTTIPolygonRegionSelectEditor , RTTIUserDefine } |
信号 | |
| void | finishSelection (const QPainterPath &shape) |
| 完成选择发出的信号 | |
Public 成员函数 | |
| DAAbstractRegionSelectEditor (QwtPlot *parent) | |
| virtual SelectionMode | getSelectionMode () const |
| virtual void | setSelectionMode (const SelectionMode &selectionMode) |
| virtual QPainterPath | getSelectRegion () const =0 |
| virtual void | setSelectRegion (const QPainterPath &shape)=0 |
| virtual bool | isContains (const QPointF &p) const |
| 判断点是否在区域里 | |
| int | getXAxis () const |
| 获取绑定的x轴 | |
| int | getYAxis () const |
| 获取绑定的y轴 | |
| void | setAxis (int xAxis, int yAxis) |
| 设置关联的坐标轴 | |
| QPointF | invTransform (const QPointF &pos) const |
| 屏幕坐标转换为数据坐标 | |
| QPointF | transform (const QPointF &pos) const |
| 数据坐标转换为屏幕坐标 | |
| QPainterPath | transformToOtherAxis (int axisX, int axisY) const |
| 把当前区域转换为其它轴系 | |
Public 成员函数 继承自 DA::DAAbstractPlotEditor | |
| DAAbstractPlotEditor (QwtPlot *parent) | |
| const QwtPlot * | plot () const |
| QwtPlot * | plot () |
| virtual void | setEnabled (bool on) |
| virtual bool | isEnabled () const |
| virtual int | rtti () const =0 |
| void | setUseSpaceKey (bool b) |
| 设置是否使用空格,如果这个editor使用了空格,需要设置为true,否则会被屏蔽空格的输入,默认为false | |
| bool | isUseSpaceKey () const |
| 设置是否可以使用空格 | |
额外继承的成员函数 | |
Protected 成员函数 继承自 DA::DAAbstractPlotEditor | |
| virtual bool | eventFilter (QObject *object, QEvent *event) |
| virtual bool | mousePressEvent (const QMouseEvent *e) |
| virtual bool | mouseMovedEvent (const QMouseEvent *e) |
| virtual bool | mouseReleasedEvent (const QMouseEvent *e) |
| virtual bool | keyPressEvent (const QKeyEvent *e) |
| virtual bool | keyReleaseEvent (const QKeyEvent *e) |
|
signal |
完成选择发出的信号
| shape | 选区的区域 |
|
pure virtual |
| int DA::DAAbstractRegionSelectEditor::getXAxis | ( | ) | const |
获取绑定的x轴
| int DA::DAAbstractRegionSelectEditor::getYAxis | ( | ) | const |
获取绑定的y轴
| QPointF DA::DAAbstractRegionSelectEditor::invTransform | ( | const QPointF & | pos | ) | const |
屏幕坐标转换为数据坐标
| pos |
|
virtual |
判断点是否在区域里
| p |
| void DA::DAAbstractRegionSelectEditor::setAxis | ( | int | xAxis, |
| int | yAxis | ||
| ) |
设置关联的坐标轴
| xAxis | |
| yAxis |
|
virtual |
|
pure virtual |
| QPointF DA::DAAbstractRegionSelectEditor::transform | ( | const QPointF & | pos | ) | const |
数据坐标转换为屏幕坐标
| pos |
| QPainterPath DA::DAAbstractRegionSelectEditor::transformToOtherAxis | ( | int | axisX, |
| int | axisY | ||
| ) | const |
把当前区域转换为其它轴系
| axisX | |
| axisY |