public Bitmap GetPathBitmap(int indexPath, bool withInputImage)
        {
            FrogEntityPoly frog        = new FrogEntityPoly(this._entra, this._entra.EngineState.FrogRB);
            PolyLog        frogPolyLog = new PolyLog(frog, frog.GetDefPoly(), null);
            var            pathPoints  = BuildPath(frogPolyLog, AllPaths[indexPath]);
            var            form        = new PathForm(pathPoints, withInputImage);

            return(form.GetPathBitmap());
        }
        public void DrawShortestPath(int counter)
        {
            String         dirName     = "PolysTesting";
            FrogEntityPoly frog        = new FrogEntityPoly(this._entra, this._entra.EngineState.FrogRB);
            PolyLog        frogPolyLog = new PolyLog(frog, frog.GetDefPoly(), null);
            var            shortestP   = EntraPlusUsageManager.GetShortestPath(this.AllPaths)[0];

            var pathPoints = BuildPath(frogPolyLog, shortestP);
            var form       = new PathForm(pathPoints, true);

            form.DrawPathIntoOutput(dirName + @"\path " + counter + ".jpg");
        }
        public void DrawPaths()
        {
            String         dirName     = "PolysTesting";
            FrogEntityPoly frog        = new FrogEntityPoly(this._entra, this._entra.EngineState.FrogRB);
            PolyLog        frogPolyLog = new PolyLog(frog, frog.GetDefPoly(), null);

            for (int i = 0; i < AllPaths.Count; i++)
            {
                var pathPoints = BuildPath(frogPolyLog, AllPaths[i]);
                var form       = new PathForm(pathPoints, true);
                form.DrawPathIntoOutput(dirName + @"\path " + i + ".jpg");
            }
        }