|
DAWorkbench 0.0.1
DAWorkbench API
|
标准输入输出节点 更多...
#include <DAStandardNodeInputOutput.h>
Public 成员函数 | |
| void | setDisplayName (const QString &name) |
| QString | getDisplayName () const |
| virtual DA::DAAbstractNodeGraphicsItem * | createGraphicsItem () override |
Public 成员函数 继承自 DA::DAAbstractNode | |
| virtual | ~DAAbstractNode () |
| 节点的销毁,节点销毁过程会通知相关联的节点把自己信息解除 | |
| QString | getNodeName () const |
| 获取节点的名字 | |
| virtual void | setNodeName (const QString &name) |
| 设置节点名 | |
| QString | getNodePrototype () const |
| FCAbstractNode::getNodePrototype | |
| QString | getNodeGroup () const |
| 获取分组 | |
| QIcon | getIcon () const |
| 获取节点图标 | |
| void | setIcon (const QIcon &icon) |
| 设置图标 | |
| const DANodeMetaData & | metaData () const |
| 获取节点元数据 | |
| DANodeMetaData & | metaData () |
| 获取节点元数据 | |
| QString | getNodeTooltip () const |
| 获取节点的说明 | |
| void | setNodeTooltip (const QString &tp) |
| 设置节点的说明 | |
| void | setMetaData (const DANodeMetaData &metadata) |
| 设置元数据 | |
| SharedPointer | pointer () |
| 返回自身的引用 | |
| IdType | getID () const |
| 获取id | |
| void | setID (const IdType &d) |
| 设置id | |
| bool | hasProperty (const QString &k) const |
| 判断是否存在属性 | |
| void | setProperty (const QString &k, const QVariant &v) |
| 设置属性 | |
| QVariant | getProperty (const QString &k, const QVariant &defaultVal=QVariant()) const |
| 读取属性 | |
| bool | removeProperty (const QString &k) |
| 移除属性 | |
| QList< QString > | getPropertyKeys () const |
| 获取所以得属性关键字 | |
| const QHash< QString, QVariant > & | propertys () const |
| 属性引用 | |
| QHash< QString, QVariant > & | propertys () |
| 属性引用 | |
| virtual void | saveExternInfoToXml (QDomDocument *doc, QDomElement *nodeElement, const QVersionNumber &ver) const |
| 把信息保存到xml上 | |
| virtual void | loadExternInfoFromXml (const QDomElement *nodeElement, const QVersionNumber &ver) |
| 从xml加载扩展信息 | |
| virtual NodeType | nodeType () const |
| 节点类型默认都为NormalNode | |
| QList< QString > | getInputKeys () const |
| 获取说有的输入参数 | |
| int | getInputKeysConut () const |
| 获取输入节点的数量 | |
| QList< QString > | getLinkedInputKeys () const |
| 获取所有已经链接上的输入节点 | |
| QList< QString > | getOutputKeys () const |
| 获取所有的输出参数 | |
| int | getOutputKeysConut () const |
| 获取输出节点的数量 | |
| QList< QString > | getLinkedOutputKeys () const |
| 获取所有已经链接上的输出的参数名 | |
| void | addInputKey (const QString &k) |
| 添加一个输入参数 | |
| void | addOutputKey (const QString &k) |
| 添加一个输出参数 | |
| virtual bool | linkTo (const QString &outKey, SharedPointer inNode, const QString &inKey) |
| 建立连接,从out到另外一个item的in | |
| bool | detachLink (const QString &key) |
| detachToLink会对_toNode进行删除操作,因此不允许在_toNode迭代环境中调用此函数 | |
| bool | detachInputLinks (const QString &key) |
| bool | detachOutputLinks (const QString &key) |
| void | detachAll () |
| 移除所有依赖,一般是节点被删除时会调用此函数 | |
| QList< SharedPointer > | getInputNodes () const |
| 获取所有连接了输入keys的节点 input Output ┌───┐ ┌───┐ ┌───┐ │in │━━━━━━━━━━━━━━│ * │━━━━━━━━━━━━━━━━━│out│ └───┘ └───┘ └───┘ LinkData outputkey inputkey outputNode inputNode | |
| QList< SharedPointer > | getInputNodes (const QString inputkey) const |
| 获取所有连接了inputkey的节点 input Output ┌───┐ ┌───┐ ┌───┐ │in │━━━━━━━━━━━━━━│ * │━━━━━━━━━━━━━━━━━│out│ └───┘ └───┘ └───┘ LinkData outputkey inputkey outputNode inputNode | |
| QList< SharedPointer > | getOutputNodes () const |
| 获取此节点输出到其他的节点 input Output ┌───┐ ┌───┐ ┌───┐ │in │━━━━━━━━━━━━━━│ * │━━━━━━━━━━━━━━━━━│out│ └───┘ └───┘ └───┘ LinkData outputkey inputkey outputNode inputNode | |
| QList< SharedPointer > | getOutputNodes (const QString outputkey) const |
| 获取此节点输出到其他的节点 input Output ┌───┐ ┌───┐ ┌───┐ │in │━━━━━━━━━━━━━━│ * │━━━━━━━━━━━━━━━━━│out│ └───┘ └───┘ └───┘ LinkData outputkey inputkey outputNode inputNode | |
| int | getInputNodesCount () const |
| 获取输入节点的数量 | |
| int | getOutputNodesCount () const |
| 获取输出节点的数量 | |
| void | setInputData (const QString &key, const QVariant &dp) |
| 输入参数 | |
| void | setOutputData (const QString &key, const QVariant &dp) |
| 设置输出的参数 | |
| void | removeInputKey (const QString &key) |
| 移除输入,如果有数据,数据也会移除 | |
| void | removeAllInputKeys () |
| 移除所有输入节点 | |
| void | removeOutputKey (const QString &key) |
| 移除输出,如果有数据,数据也会移除 | |
| void | removeAllOutputKeys () |
| 移除所有输出节点 | |
| QVariant | getInputData (const QString &key) const |
| FCAbstractNode::inputData | |
| QVariant | getOutputData (const QString &key) const |
| QList< LinkInfo > | getAllInputLinkInfo () const |
| 获取所有输入(入度)的信息 | |
| QList< LinkInfo > | getAllOutputLinkInfo () const |
| 获取输出(出度)的链接信息 | |
| DAWorkFlow * | workflow () const |
| 获取工作流 | |
| std::shared_ptr< DAAbstractNodeFactory > | factory () const |
| 获取工厂 | |
| template<typename T > | |
| std::shared_ptr< T > | castTo () |
| 转换为其他具体类型节点 | |
| virtual bool | exec ()=0 |
| DAAbstractNodeGraphicsItem * | graphicsItem () const |
| 获取graphicsItem | |
额外继承的成员函数 | |
Public 类型 继承自 DA::DAAbstractNode | |
| enum | NodeType { NormalNode , GlobalNode } |
| 节点类型 更多... | |
| using | SharedPointer = std::shared_ptr< DAAbstractNode > |
| using | WeakPointer = std::weak_ptr< DAAbstractNode > |
| using | IdType = uint64_t |
静态 Public 成员函数 继承自 DA::DAAbstractNode | |
| static IdType | generateID () |
| 生成一个唯一id | |
Protected 成员函数 继承自 DA::DAAbstractNode | |
| void | registItem (DAAbstractNodeGraphicsItem *it) |
| 记录item,此函数在DAAbstractNodeGraphicsItem构造函数中调用 | |
| void | unregistItem () |
| 解除对item的记录 在某些环境下,删除item就会调用此函数解除item的记录 | |
| bool | linkTo_ (const QString &outKey, SharedPointer inNode, const QString &inKey) |
| DAAbstractNode::linkToNoCallback | |
| void | registFactory (const std::shared_ptr< DAAbstractNodeFactory > &fc) |
| 记录工厂 | |
标准输入输出节点
|
overridevirtual |
实现了 DA::DAAbstractNode.