Ejemplo n.º 1
0
        public Image GetImage(int width, int height)
        {
            PathDrawer drawer = new PathDrawer(width, height)
            {
                PathFinder      = PathFinder,
                SpeedPoints     = Points.ToArray(),
                SpeedValues     = Speeds.ToArray(),
                ShowSpeedPoints = true
            };

            return(drawer.Image);
        }
Ejemplo n.º 2
0
        IStrategyBuilder IStrategyBuilder.ShallowCopy()
        {
            StrategyBuilder copy = new StrategyBuilder
            {
                Limits          = Limits.ToArray(),
                Speeds          = Speeds.ToArray(),
                Threading       = Threading,
                FinishTimeout   = FinishTimeout,
                ScenarioFactory = ScenarioFactory,
                InitialUserData = InitialUserData,
                Aggregators     = Aggregators.ToArray()
            };

            return(copy);
        }