/// <summary> /// Initialises a new instance of the Node class. /// </summary> public Node() { mLocation = Point.Empty; mDiagram = null; mConnections = new List<Node>(); }
//создание маркера для изменения размера public override IEnumerable<Marker> GetMarkers(Diagram diagram) { Marker m = new SizeMarker(); m.targetFigure = this; yield return m; }
public override IEnumerable<Marker> GetMarkers(Diagram diagram) { RecalcPath(); EndLineMarker m1 = new EndLineMarker(diagram, 0);//маркер в начале линии m1.targetFigure = this; yield return m1; EndLineMarker m2 = new EndLineMarker(diagram, 1);//маркер в конце линии m2.targetFigure = this; yield return m2; LedgeMarker m3 = new LedgeMarker();//маркер в точке перегиба m3.targetFigure = this; m3.UpdateLocation(); yield return m3; }
//получение маркеров public abstract IEnumerable<Marker> GetMarkers(Diagram diagram);
public EndLineMarker(Diagram diagram, int pointIndex) { this.diagram = diagram; this.pointIndex = pointIndex; }
/// <summary> /// Initialises a new instance of the Node class. /// </summary> public Node() { mLocation = Point.Empty; mDiagram = null; mConnections = new List <Node>(); }