示例#1
0
        public void SetPluginHost(IPluginHost Host)
        {
            //assign host
            this.FHost = Host;

            this.FData = ColorDataHolder.Instance;

            this.FHost.CreateColorInput("Input", TSliceMode.Dynamic, TPinVisibility.True, out this.FPinInput);
            this.FPinInput.SetSubType(VColor.Black, true);

            this.FHost.CreateStringInput("Send String", TSliceMode.Single, TPinVisibility.True, out this.FPinInSendString);
            this.FPinInSendString.SetSubType("send", false);
        }
示例#2
0
        public void SetPluginHost(IPluginHost Host)
        {
            //assign host
            this.FHost = Host;

            this.FData = ColorDataHolder.Instance;

            this.FHost.CreateValueConfig("Display Channel", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out this.FPinDisplayChannel);
            this.FPinDisplayChannel.SetSubType(0, 1, 1, 1, false, true, false);

            this.FHost.CreateColorInput("Input", TSliceMode.Dynamic, TPinVisibility.True, out this.FPinInput);
            this.FPinInput.SetSubType(VColor.Black, true);

            this.FHost.CreateStringInput("Send String", TSliceMode.Single, TPinVisibility.True, out this.FPinInSendString);
            this.FPinInSendString.SetSubType("send", false);
        }
示例#3
0
        public void SetPluginHost(IPluginHost Host)
        {
            //assign host
            this.FHost           = Host;
            this.FData           = ColorDataHolder.Instance;
            this.FData.OnAdd    += FData_OnAdd;
            this.FData.OnRemove += this.FData_OnAdd;
            this.FData.OnUpdate += this.FData_OnAdd;

            this.FHost.CreateStringInput("Receive String", TSliceMode.Single, TPinVisibility.True, out this.FPinInReceiveString);
            this.FPinInReceiveString.SetSubType("send", false);

            this.FHost.CreateColorInput("Default", TSliceMode.Dynamic, TPinVisibility.True, out this.FPinInDefault);
            this.FPinInDefault.SetSubType(VColor.Black, true);

            this.FHost.CreateColorOutput("Output", TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutValue);
            this.FPinOutValue.SetSubType(VColor.Black, true);

            this.FHost.CreateValueOutput("Found", 1, null, TSliceMode.Single, TPinVisibility.True, out this.FPinOutMatchCount);
            this.FPinOutMatchCount.SetSubType(0, 1, 1, 0, false, true, false);
        }