Exemplo n.º 1
0
        public static Measure.Point[] ToGraphX(this Point[] points)
        {
            if (points == null)
            {
                return(null);
            }
            var list = new Measure.Point[points.Length];

            for (int i = 0; i < points.Length; i++)
            {
                list[i] = points[i].ToGraphX();
            }
            return(list);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Animates the control of a vertex to a given position.
 /// </summary>
 /// <param name="control">Vertex control which should be animated to its new position</param>
 /// <param name="coord">New vertex position coordinates</param>
 public void AddVertexData(IGraphControl control, Measure.Point coord)
 {
     if (double.IsNaN(coord.X) || double.IsNaN(coord.Y))
     {
         throw new GX_InvalidDataException("AddVertexData() -> NaN coordinated has been supplied! Correct coordinates was expected.");
     }
     if (!VertexStorage.ContainsKey(control))
     {
         VertexStorage.Add(control, coord);
     }
     else
     {
         throw new GX_GeneralException("AddVertexData() -> Same control can't be loaded in animation list twice!");
     }
 }
Exemplo n.º 3
0
 public static Point ToWindows(this Measure.Point point)
 {
     return(new Point(point.X, point.Y));
 }