Esempio n. 1
0
 public static GraphConnection Connect(OutPoint outPoint, InPoint inPoint, int length = 1)
 {
     if (outPoint == null || inPoint == null)
         return null;
     var connection = new GraphConnection(length, outPoint, inPoint);
     connection.Name = outPoint.Name + " connection";
     outPoint.AddConection(connection);
     inPoint.AddConection(connection);
     if (string.IsNullOrEmpty(inPoint.Name))
         inPoint.Name = outPoint.Name + " connection inPoint";
     return connection;
 }
Esempio n. 2
0
 public InPoint(ColorableClass parent, GraphConnection connection)
     : base(parent, connection)
 {
 }
Esempio n. 3
0
 public ConnectionPoint(ColorableClass parent, GraphConnection connection)
     : this(parent)
 {
     AddConection(connection);
 }
Esempio n. 4
0
 //  public ConnectionPoint{}
 public GraphConnection AddConection(GraphConnection connection)
 {
     if (connection!=null)
         Connections.Add(connection);
     return connection;
 }
Esempio n. 5
0
 public virtual ColorableClass ConnectTo(GraphConnection to, int length = 1)
 {
     return this;
 }