VdClusterLink PlayLinkCreate(ClientLinkable end1, ClientLinkable end2, int shapeId, int initOwnerId, bool takeCursor) { ShapeIdGenerator.Instance.CorrectLowBound(initOwnerId, shapeId); var res = new VdClusterLink(end1, end2, shapeId, initOwnerId); end1.AddEdge(res); end2.AddEdge(res); //no post handler for cluster link this.Add(res); DocTools.SortScene(_scene); //no initial lock, as link is created in free state (no pressed buttons) return(res); }
private VdClusterLink PlayLinkCreate(ClientLinkable end1, ClientLinkable end2, int shapeId, int initOwnerId, bool takeCursor, LinkHeadType linkHead) { ShapeIdGenerator.Instance.CorrectLowBound(initOwnerId, shapeId); var res = new VdClusterLink(end1, end2, shapeId, initOwnerId, this, linkHead); _shapePostHandler(res, VdShapeType.ClusterLink); end1.AddEdge(res); end2.AddEdge(res); if (!_shapeVisibility) { res.Hide(); } //no post handler for cluster link this.Add(res); DocTools.SortScene(_scene); //no initial lock, as link is created in free state (no pressed buttons) return(res); }
public bool HasEdge(VdClusterLink next) { return _edges.Contains(next); }
public void RemoveEdge(VdClusterLink next) { _edges.Remove(next); }
public void AddEdge(VdClusterLink next) { _edges.Add(next); }
VdClusterLink PlayLinkCreate(ClientLinkable end1, ClientLinkable end2, int shapeId, int initOwnerId, bool takeCursor) { ShapeIdGenerator.Instance.CorrectLowBound(initOwnerId, shapeId); var res = new VdClusterLink(end1, end2, shapeId, initOwnerId); end1.AddEdge(res); end2.AddEdge(res); //no post handler for cluster link this.Add(res); DocTools.SortScene(_scene); //no initial lock, as link is created in free state (no pressed buttons) return res; }
public bool HasEdge(VdClusterLink next) { return(_edges.Contains(next)); }
private VdClusterLink PlayLinkCreate(ClientLinkable end1, ClientLinkable end2, int shapeId, int initOwnerId, bool takeCursor, LinkHeadType linkHead) { ShapeIdGenerator.Instance.CorrectLowBound(initOwnerId, shapeId); var res = new VdClusterLink(end1, end2, shapeId, initOwnerId, this, linkHead); _shapePostHandler(res, VdShapeType.ClusterLink); end1.AddEdge(res); end2.AddEdge(res); if (!_shapeVisibility) res.Hide(); //no post handler for cluster link this.Add(res); DocTools.SortScene(_scene); //no initial lock, as link is created in free state (no pressed buttons) return res; }