示例#1
0
        protected BaseNode()
        {
            inputPorts  = new NodeInputPortContainer(this);
            outputPorts = new NodeOutputPortContainer(this);

            InitializeInOutDatas();
        }
示例#2
0
        protected BaseNode()
        {
            InitializeInOutDatas();

            inputPorts  = new NodeInputPortContainer(this);
            outputPorts = new NodeOutputPortContainer(this);

            foreach (var nodeFieldKP in nodeFields)
            {
                AddPort(nodeFieldKP.Value.input, nodeFieldKP.Value.fieldName);
            }
        }
示例#3
0
        // called by the BaseGraph when the node is added to the graph
        public void Initialize(BaseGraph graph)
        {
            this.graph = graph;

            ExceptionToLog.Call(() => Enable());
            inputPorts  = new NodeInputPortContainer(this);
            outputPorts = new NodeOutputPortContainer(this);
            nodeFields  = new Dictionary <string, NodeFieldInformation>();
            customPortTypeBehaviorMap = new Dictionary <Type, CustomPortTypeBehaviorDelegate>();

            InitializeInOutDatas();
            InitializePorts();
        }