DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAStandardNodeConstValue.h
1#ifndef DASTANDARDNODECONSTVALUE_H
2#define DASTANDARDNODECONSTVALUE_H
3#include "DAAbstractNode.h"
4namespace DA
5{
6class DAAbstractNodeFactory;
10class DAWORKFLOW_API DAStandardNodeConstValue : public DA::DAAbstractNode
11{
12public:
15 // 运行
16 virtual bool exec() override;
17 // 设置显示名字
18 void setDisplayName(const QString& name);
19 QString getDisplayName() const;
20 // 参数
21 void setValue(const QVariant& v);
22 QVariant getValue() const;
23 //
24 virtual DAAbstractNodeGraphicsItem* createGraphicsItem() override;
25
26private:
27 QVariant mValue;
28};
29}
30#endif // DASTANDARDNODECONSTVALUE_H
这是节点的基类,workflow所有节点都继承此类 作为一个节点的QGraphicsItem,此item应该由DAAbstractNode创建
Definition DAAbstractNodeGraphicsItem.h:47
节点对应的基类
Definition DAAbstractNode.h:50
常数节点
Definition DAStandardNodeConstValue.h:11
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44