public void SetHenonSkipIterations(string num) { if (CurrentFunction is HenonFunction) { HenonFunction f = (HenonFunction)CurrentFunction; Int32.TryParse(num, out f.SkipIterations); } }
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); }
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(); }
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; } } }