Exemplo n.º 1
0
 public void SetHenonSkipIterations(string num)
 {
     if (CurrentFunction is HenonFunction)
     {
         HenonFunction f = (HenonFunction)CurrentFunction;
         Int32.TryParse(num, out f.SkipIterations);
     }
 }
Exemplo n.º 2
0
        public override BaseFunction Clone()
        {
            HenonFunction h = new HenonFunction();

            CopyFields(h);
            h.mainForm       = mainForm;
            h.checkBoarders  = checkBoarders;
            h.MaxIterations  = MaxIterations;
            h.HenonDotsize   = HenonDotsize;
            h.SkipIterations = SkipIterations;
            h.DrawFurcations = false;
            h.HenonDotsize   = 20;
            return(h);
        }
Exemplo n.º 3
0
        public Control4FunctionsView(IView f, Control4AllViews cav) : base(f, cav)
        {
            Constants constants = new Constants();

            Constants.SettingsFromXML();
            PlotForm = (IFunctionsView)f;
            // BSize = 2000; done in base!!!!!!
            CurrentFunction    = new BaseFunction();
            functionDrawer     = new FunctionDrawer(PlotForm, this, createGIF);
            henonFunction      = new HenonFunction(PlotForm);
            mandelbrotFunction = new MandelbrotFunction(PlotForm);

            CurrFunctionType = Constants.currentFunctionType;

            Constants.Initalising          = false;
            PlotForm.Control4FunctionsView = this;
            PlotForm.Params2Form();
        }
Exemplo n.º 4
0
        public void InitTrajectory(PointD trajectStart)
        {
            if (Function is HenonFunction)
            {
                HenonFunction f = (HenonFunction)Function;
                f.InitTrajectory(trajectStart);
                DrawPicture();
                using (Graphics g = Graphics.FromImage(PointsImage.Bitmap))
                    f.DrawTrajectoryLines(g);

                Rectangle destRect = DestRect;
                using (Graphics g = Graphics.FromImage(MainImage))
                    g.DrawImage(PointsImage.Bitmap, destRect, SourceRect, GraphicsUnit.Pixel);
                if (form != null)
                {
                    form.FormImage = MainImage;
                }
            }
        }