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

chart设置的基类封装了基本操作 更多...

#include <DAAbstractChartItemSettingWidget.h>

类 DA::DAAbstractChartItemSettingWidget 继承关系图:
DA::DAChartBarItemSettingWidget DA::DAChartCommonItemsSettingWidget DA::DAChartCurveItemSettingWidget DA::DAChartErrorBarItemSettingWidget DA::DAChartGridSettingWidget DA::DAChartLegendItemSettingWidget DA::DAChartPlotItemSettingWidget DA::DAChartSpectrogramItemSettingWidget DA::DAChartTradingCurveItemSettingWidget

Public 槽

virtual void plotItemAttached (QwtPlotItem *plotItem, bool on)
 

Public 成员函数

 DAAbstractChartItemSettingWidget (QWidget *parent=nullptr)
 
void setPlotItem (QwtPlotItem *item)
 设置plotitem
 
QwtPlotItem * getPlotItem () const
 setPlotItem之后调用的虚函数
 
bool isHaveItem () const
 判断是否有item
 
bool checkItemRTTI (QwtPlotItem::RttiValues rtti) const
 判断当前item是否是对应的rtti,如果没有item也返回false
 
QwtPlot * getPlot () const
 获取绘图
 
template<typename T >
d_cast ()
 快捷转换为别的item
 
template<typename T >
s_cast ()
 快捷转换为别的item
 
virtual void updateUI (QwtPlotItem *item)
 
void replot ()
 

Protected 成员函数

void setPlot (QwtPlot *plot)
 设置plot是为了能感知item是否消除
 

Protected 属性

QwtPlotItem * mPlotItem { nullptr }
 
QPointer< QwtPlot > mPlot { nullptr }
 

详细描述

chart设置的基类封装了基本操作

成员函数说明

◆ checkItemRTTI()

bool DA::DAAbstractChartItemSettingWidget::checkItemRTTI ( QwtPlotItem::RttiValues  rtti) const

判断当前item是否是对应的rtti,如果没有item也返回false

参数
rtti
返回

◆ d_cast()

template<typename T >
T DA::DAAbstractChartItemSettingWidget::d_cast ( )
inline

快捷转换为别的item

返回

◆ getPlot()

QwtPlot * DA::DAAbstractChartItemSettingWidget::getPlot ( ) const

获取绘图

返回

◆ getPlotItem()

QwtPlotItem * DA::DAAbstractChartItemSettingWidget::getPlotItem ( ) const

setPlotItem之后调用的虚函数

参数
item
返回

◆ isHaveItem()

bool DA::DAAbstractChartItemSettingWidget::isHaveItem ( ) const

判断是否有item

返回

◆ s_cast()

template<typename T >
T DA::DAAbstractChartItemSettingWidget::s_cast ( )
inline

快捷转换为别的item

返回

◆ setPlot()

void DA::DAAbstractChartItemSettingWidget::setPlot ( QwtPlot *  plot)
protected

设置plot是为了能感知item是否消除

参数
plot

◆ setPlotItem()

void DA::DAAbstractChartItemSettingWidget::setPlotItem ( QwtPlotItem *  item)

设置plotitem

注意,如果重载,必须保证调用了DAAbstractChartItemSettingWidget::setPlotItem(item), 否则getPlotItem会失效,同时无法自动处理item的detach

参数
item

◆ updateUI()

void DA::DAAbstractChartItemSettingWidget::updateUI ( QwtPlotItem *  item)
virtual

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