示例#1
0
 public MouseToMouseStateInStream(IIOFactory factory, INodeIn nodeIn)
 {
     FFactory           = factory;
     FNodeIn            = nodeIn;
     FAutoValidate      = nodeIn.AutoValidate;
     FFactory.Flushing += FFactory_Flushing;
 }
示例#2
0
 public NodeInStream(INodeIn nodeIn, IConnectionHandler handler)
 {
     FNodeIn = nodeIn;
     FNodeIn.SetConnectionHandler(handler, this);
     FAutoValidate   = nodeIn.AutoValidate;
     FUpstreamStream = FNullStream;
 }
示例#3
0
 public KeyboardToKeyboardStateInStream(IIOFactory factory, INodeIn nodeIn)
 {
     FFactory           = factory;
     FNodeIn            = nodeIn;
     FAutoValidate      = nodeIn.AutoValidate;
     FFactory.Flushing += FFactory_Flushing;
 }
示例#4
0
 public DX11ResourceInputStream(INodeIn nodeIn)
 {
     FNodeIn = nodeIn;
     FNodeIn.SetConnectionHandler(new DX11ResourceConnectionHandler(), this);
     FAutoValidate = nodeIn.AutoValidate;
     IsChanged     = true;
 }
示例#5
0
        public static INodeIn CreateNodeInput(this IPluginHost host, InputAttribute attribute, Type type)
        {
            INodeIn result = null;

            host.CreateNodeInput(attribute.Name, (TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result);
            result.SetSubType2(type, new Guid[] { type.GUID }, type.GetCSharpName());
            SetInputProperties(result, attribute);
            return(result);
        }
示例#6
0
 public NodeInStream(INodeIn nodeIn, IConnectionHandler handler, T defaultValue = default(T))
 {
     FNodeIn = nodeIn;
     if (typeof(T).Assembly.IsDynamic)
     {
         FNodeIn.SetConnectionHandler(handler, new DynamicTypeWrapper(this));
     }
     else
     {
         FNodeIn.SetConnectionHandler(handler, this);
     }
     FAutoValidate   = nodeIn.AutoValidate;
     FDefaultValue   = defaultValue;
     FUpstreamStream = FNullStream;
 }
示例#7
0
        public NodeInStream(INodeIn nodeIn, IConnectionHandler handler, T defaultValue = default(T))
        {
            handler = handler ?? new DefaultConnectionHandler(null, typeof(T));
            FNodeIn = nodeIn;
            object inputInterface;

            if (typeof(T).UsesDynamicAssembly())
            {
                inputInterface = new DynamicTypeWrapper(this);
            }
            else
            {
                inputInterface = this;
            }
            FNodeIn.SetConnectionHandler(handler, inputInterface);
            FAutoValidate   = nodeIn.AutoValidate;
            FDefaultValue   = defaultValue;
            FUpstreamStream = FNullStream;
        }
 public DynamiclyTypedSpread(INodeIn nodeIn)
 {
     NodeIn = nodeIn;
 }
示例#9
0
 public NodeInStream(INodeIn nodeIn)
     : this(nodeIn, new DefaultConnectionHandler())
 {
 }
示例#10
0
 public NodeInStream(INodeIn nodeIn)
     : this(nodeIn, null)
 {
 }
示例#11
0
        public void CreateNodeInput(string Name, TSliceMode SliceMode, TPinVisibility Visibility, out INodeIn Pin)
        {
            Pin = new TNodePin(this, Name, TPinDirection.Input, SliceMode, Visibility);

            AddPin(Pin as TBasePin);
        }
示例#12
0
 public MouseToMouseStateInStream(INodeIn nodeIn)
 {
     FNodeIn       = nodeIn;
     FAutoValidate = nodeIn.AutoValidate;
 }
示例#13
0
 public KeyboardToKeyboardStateInStream(INodeIn nodeIn)
 {
     FNodeIn       = nodeIn;
     FAutoValidate = nodeIn.AutoValidate;
 }