protected BaseNode()
        {
            inputPorts  = new NodeInputPortContainer(this);
            outputPorts = new NodeOutputPortContainer(this);

            InitializeInOutDatas();
        }
        protected BaseNode()
        {
            InitializeInOutDatas();

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

            foreach (var nodeFieldKP in nodeFields)
            {
                AddPort(nodeFieldKP.Value.input, nodeFieldKP.Value.fieldName);
            }
        }
Beispiel #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();
        }