示例#1
0
        protected void addInputConnectionPoint(ParamType pt, string name, bool requiredInput)
        {
            InputConnectionPoint op = new InputConnectionPoint(pt, requiredInput, name, this, mOwningCanvas);

            mInputConnections.Add(op);

            mOwningCanvas.addCanvasNode(op);
        }
示例#2
0
      public void generatePreview(CanvasNode cn)
      {
          OutputGenerationParams ogp = new OutputGenerationParams();
          ogp.Width = 128;
          ogp.Height = 128;

          MaskDAGGraphNode gn = (MaskDAGGraphNode)cn;
          MaskParam mp = new MaskParam();
          InputConnectionPoint icp = new InputConnectionPoint(mp,true,"Preview",gn,this);
          gn.computeOutput(icp,ogp);

          if (onUpdateCallback != null)
          {
              DAGMask m = mp.Value;
              onUpdateCallback(ref m);
          }
       }