예제 #1
0
        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());
        }
예제 #2
0
        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");
        }
예제 #3
0
        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");
            }
        }