DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::DAFigureElementSelection类 参考

用于存放绘图元素 更多...

#include <DAFigureElementSelection.h>

Public 类型

enum  SelectionTypes { SelectNone , SelectPlot , SelectScaleWidget , SelectPlotItem }
 选中类型 更多...
 
enum  SelectionColumns { ColumnName , ColumnVisible , ColumnProperty }
 记录选中的列 更多...
 

Public 成员函数

 DAFigureElementSelection (DAFigureWidget *fig, QwtPlot *p, SelectionColumns col)
 
 DAFigureElementSelection (DAFigureWidget *fig, QwtPlot *p, QwtPlotItem *item, SelectionColumns col)
 
 DAFigureElementSelection (DAFigureWidget *fig, QwtPlot *p, QwtScaleWidget *sw, int axis, SelectionColumns col)
 
bool isSelectedPlot () const
 
bool isSelectedScaleWidget () const
 
bool isSelectedPlotItem () const
 

Public 属性

DAFigureWidgetfigureWidget { nullptr }
 
QwtPlot * plot { nullptr }
 
QwtPlotItem * plotItem { nullptr }
 
QwtScaleWidget * scaleWidget { nullptr }
 
int axisId
 
SelectionTypes selectionType { SelectNone }
 
SelectionColumns selectionColumn { ColumnName }
 

详细描述

用于存放绘图元素

主要用于在绘图窗口选中绘图元素后,能携带各个层级的绘图元素传递给其它窗口

例如选中绘图的一个曲线,可以携带figure窗口,曲线对应的宿主plot窗口,寄生绘图窗口,以及曲线自身的plotitem指针

成员枚举类型说明

◆ SelectionColumns

记录选中的列

枚举值
ColumnName 

第一列,名称

ColumnVisible 

第二列,可见性

ColumnProperty 

第三列,属性

◆ SelectionTypes

选中类型

枚举值
SelectNone 

SelectPlot 

plot,此时figureWidget、plot指针有效

SelectScaleWidget 

刻度,此时figureWidget、plot、scaleWidget、axisId有效

SelectPlotItem 

plotitem,此时figureWidget、plot、plotItem有效


该类的文档由以下文件生成: