Example #1
0
		/// <summary>
		/// Initialises a new instance of the Node class.
		/// </summary>
		public Node()
		{
			mLocation = Point.Empty;
			mDiagram = null;
			mConnections = new List<Node>();
		}
Example #2
0
 //создание маркера для изменения размера
 public override IEnumerable<Marker> GetMarkers(Diagram diagram)
 {
     Marker m = new SizeMarker();
     m.targetFigure = this;
     yield return m;
 }
Example #3
0
        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;
        }
Example #4
0
 //получение маркеров
 public abstract IEnumerable<Marker> GetMarkers(Diagram diagram);
Example #5
0
 public EndLineMarker(Diagram diagram, int pointIndex)
 {
     this.diagram = diagram;
     this.pointIndex = pointIndex;
 }
Example #6
0
 /// <summary>
 /// Initialises a new instance of the Node class.
 /// </summary>
 public Node()
 {
     mLocation    = Point.Empty;
     mDiagram     = null;
     mConnections = new List <Node>();
 }