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

针对QwtPlotItem的工厂类 更多...

#include <DAChartPlotItemFactory.h>

Public 类型

using FpItemCreate = std::function< QwtPlotItem *() >
 函数指针:QwtPlotItem* itemCreate(int rtti);
 

静态 Public 成员函数

static QwtPlotItem * createItem (int rtti)
 创建item
 
static void registCreateItemFucntion (int rtti, FpItemCreate fp)
 注册工厂函数
 
static bool isHaveCreateItemFucntion (int rtti)
 判断是否存在此工厂函数
 

详细描述

针对QwtPlotItem的工厂类

成员函数说明

◆ createItem()

QwtPlotItem * DA::DAChartPlotItemFactory::createItem ( int  rtti)
static

创建item

参数
rtti
返回
如果未知的rtti,返回nullptr

◆ isHaveCreateItemFucntion()

bool DA::DAChartPlotItemFactory::isHaveCreateItemFucntion ( int  rtti)
static

判断是否存在此工厂函数

参数
rtti
返回

◆ registCreateItemFucntion()

void DA::DAChartPlotItemFactory::registCreateItemFucntion ( int  rtti,
DAChartPlotItemFactory::FpItemCreate  fp 
)
static

注册工厂函数

参数
rtti
fp

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