Пример #1
0
 public ComputeCurve(UserPointController userPoints, Canvas canvas, int curveId)
 {
     this.userPoints = userPoints;
     n            = userPoints.GetCount();
     this.canvas  = canvas;
     this.curveId = curveId;
 }
Пример #2
0
 public CurveController(UserPointController userPoints, Canvas canvas, int id)
 {
     this.canvas     = canvas;
     this.userPoints = userPoints;
     this.id         = id;
     computeCurve    = new ComputeCurve(userPoints, canvas, id);
     if (userPoints.GetCount() >= 2)
     {
         curves = computeCurve.UpdateSplines();
         addCurves();
     }
 }
Пример #3
0
 public void DrawCurves()
 {
     if (userPoints.GetCount() >= 2)
     {
         var paths = getCurvePaths();
         curves = computeCurve.UpdateSplines();
         int i = 0;
         foreach (Path path in paths)
         {
             path.Data = Geometry.Parse(curves[i]);
             i++;
         }
     }
 }