Example #1
0
 public static OutPoint Connect(SerialOutPoint a, GraphNode b, int length = 1)
 {
     var outPoint = a.AddOutConnection();
     var inPoint = b.AddInConnection();
     GraphConnection.Connect(outPoint, inPoint, length);
     return outPoint;
 }
Example #2
0
 public override ColorableClass ConnectTo(GraphNode to, int length = 1)
 {
     if (Parent != null)
     {
         GraphNode graphNode = Parent as GraphNode;
         if (graphNode!=null)
             graphNode.Input.Remove(this);
     }
     to.AddInConnection(this);
     Parent = to;
     return null;
 }
Example #3
0
 public override ColorableClass ConnectTo(GraphNode outNode, int length = 1)
 {
     return(Connect(this, outNode, length));
 }
Example #4
0
 public override ColorableClass ConnectTo(GraphNode outNode, int length = 1)
 {
     var inPoint = outNode.AddInConnection();
     return ConnectTo(inPoint,length);
 }
Example #5
0
 public virtual ColorableClass ConnectTo(GraphNode to, int length = 1)
 {
     return this;
 }
Example #6
0
 public override ColorableClass ConnectTo(GraphNode outNode, int length = 1)
 {
     return Output.ConnectTo(outNode,length);
 }
Example #7
0
 public override ColorableClass ConnectTo(GraphNode outNode, int length = 1)
 {
     return Connect(this, outNode, length);
 }