Esempio n. 1
0
        public static Bitmap GetPolyOnlyBitmap(EntraResult result)
        {
            EntraDrawer drawer = new EntraDrawer(result.ReachableSpace, result.Frog,
                                                 result.FrogCompsInter);

            return(drawer.GetPolyOnlySolutionBitmap());
        }
Esempio n. 2
0
 public static void DrawIntoFileTesting(List <List <IntPoint> > polys)
 {
     //if (false)
     {
         EntraDrawer d = new EntraDrawer(polys);
         {
             d.DrawSolutionIntoFile(StaticData.EntraImageInput);
         }
     }
 }
Esempio n. 3
0
        public static void DrawIntoFileGeva(List <List <IntPoint> > polys, bool withInputImage, int counter)
        {
            EntraDrawer d = new EntraDrawer(polys);

            if (withInputImage)
            {
                d.DrawSolutionIntoFile(StaticData.EntraImageInput, true, counter);
            }
            else
            {
                d.DrawSolutionIntoFile(null, true, counter);
            }
        }
Esempio n. 4
0
 public static void DrawIntoFile(List <List <IntPoint> > polys, bool withInputImage = true)
 {
     if (Tester.IsTestingEntra)
     {
         EntraDrawer d = new EntraDrawer(polys);
         if (withInputImage)
         {
             d.DrawSolutionIntoFile(StaticData.EntraImageInput);
         }
         else
         {
             d.DrawSolutionIntoFile();
         }
     }
 }
Esempio n. 5
0
 public static void DrawIntoFileGeva(List <List <List <IntPoint> > > polys, bool withInputImage)
 {
     //var polys1 = polys[0];
     foreach (List <List <IntPoint> > poly in polys)
     {
         EntraDrawer d = new EntraDrawer(poly);
         if (withInputImage)
         {
             d.DrawSolutionIntoFile(StaticData.EntraImageInput);
         }
         else
         {
             d.DrawSolutionIntoFile();
         }
     }
 }