void Transform()
 {
     async_transform = new TransformationAsync(AsyncTransform);
     res_list        = new List <IAsyncResult>();
     foreach (List <DataPoint> sllb in StreamLinesBase)
     {
         StreamLines.Add(new List <DataPoint>());
         res_list.Add(async_transform.BeginInvoke(sllb, StreamLines[StreamLines.Count - 1], null, null));
     }
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     g.DrawCurve(new List <DataPoint>()
     {
         new DataPoint(-5, 0), new DataPoint(-w.a, 0)
     }, 3, OxyColors.Black);
     g.DrawCurve(new List <DataPoint>()
     {
         new DataPoint(w.a, 0), new DataPoint(-w.a + w.R, 0)
     }, 3, OxyColors.Black);
     g.DrawCurve(new List <DataPoint>()
     {
         new DataPoint(w.a + w.R, 0), new DataPoint(10, 0)
     }, 3, OxyColors.Black);
     if (w.Sh1 == 0 && w.Sh2 == 0)
     {
         g.DrawCurve(new List <DataPoint>()
         {
             new DataPoint(0.5 * (w.a + (-w.a + w.R)), 0), new DataPoint(0.5 * (w.a + (-w.a + w.R)), 10)
         }, 3, OxyColors.Black);
     }
     res_list = null;
 }
Ejemplo n.º 2
0
 void Transform()
 {
     async_transform = new TransformationAsync(AsyncTransform);
     res_list        = new List <IAsyncResult>();
     foreach (List <DataPoint> sllb in StreamLinesBase)
     {
         StreamLines.Add(new List <DataPoint>());
         res_list.Add(async_transform.BeginInvoke(sllb, StreamLines[StreamLines.Count - 1], null, null));
     }
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     res_list = null;
 }
 void FindAllStreamLines()
 {
     async_full = new FullBuildAsync(AsyncFullBuild);
     res_list   = new List <IAsyncResult>();
     for (double y = y_min + h; y <= y_max - h; y += h)
     {
         StreamLines.Add(new List <DataPoint>());
         StreamLinesBase.Add(new List <DataPoint>());
         res_list.Add(async_full.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], StreamLines[StreamLines.Count - 1], y, null, null));
     }
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     res_list = null;
 }