chart设置的基类封装了基本操作
更多...
#include <DAAbstractChartItemSettingWidget.h>
|
|
virtual void | plotItemAttached (QwtPlotItem *plotItem, bool on) |
| |
|
|
| 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 > |
| T | d_cast () |
| | 快捷转换为别的item
|
| |
| template<typename T > |
| T | s_cast () |
| | 快捷转换为别的item
|
| |
| virtual void | updateUI (QwtPlotItem *item) |
| |
|
void | replot () |
| |
|
| void | setPlot (QwtPlot *plot) |
| | 设置plot是为了能感知item是否消除
|
| |
|
|
QwtPlotItem * | mPlotItem { nullptr } |
| |
|
QPointer< QwtPlot > | mPlot { nullptr } |
| |
◆ checkItemRTTI()
| bool DA::DAAbstractChartItemSettingWidget::checkItemRTTI |
( |
QwtPlotItem::RttiValues |
rtti | ) |
const |
判断当前item是否是对应的rtti,如果没有item也返回false
- 参数
-
- 返回
◆ d_cast()
template<typename T >
| T DA::DAAbstractChartItemSettingWidget::d_cast |
( |
| ) |
|
|
inline |
◆ getPlot()
| QwtPlot * DA::DAAbstractChartItemSettingWidget::getPlot |
( |
| ) |
const |
◆ getPlotItem()
| QwtPlotItem * DA::DAAbstractChartItemSettingWidget::getPlotItem |
( |
| ) |
const |
setPlotItem之后调用的虚函数
- 参数
-
- 返回
◆ isHaveItem()
| bool DA::DAAbstractChartItemSettingWidget::isHaveItem |
( |
| ) |
const |
◆ s_cast()
template<typename T >
| T DA::DAAbstractChartItemSettingWidget::s_cast |
( |
| ) |
|
|
inline |
◆ setPlot()
| void DA::DAAbstractChartItemSettingWidget::setPlot |
( |
QwtPlot * |
plot | ) |
|
|
protected |
◆ setPlotItem()
| void DA::DAAbstractChartItemSettingWidget::setPlotItem |
( |
QwtPlotItem * |
item | ) |
|
设置plotitem
注意,如果重载,必须保证调用了DAAbstractChartItemSettingWidget::setPlotItem(item), 否则getPlotItem会失效,同时无法自动处理item的detach
- 参数
-
◆ updateUI()
| void DA::DAAbstractChartItemSettingWidget::updateUI |
( |
QwtPlotItem * |
item | ) |
|
|
virtual |
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DAGui/ChartSetting/DAAbstractChartItemSettingWidget.h
- /home/runner/work/data-workbench/data-workbench/src/DAGui/ChartSetting/DAAbstractChartItemSettingWidget.cpp