Esempio n. 1
0
        private void InitFractal()
        {
            if (fractalPlotter != null)
            {
                Xmin = (decimal)fractalPlotter.XMini;
                Xmax = (decimal)fractalPlotter.XMaxi;
                Ymin = (decimal)fractalPlotter.YMini;
                Ymax = (decimal)fractalPlotter.YMaxi;

                fractalPlotter.MAX_MAG_SQUARED = max_MAG_SQUARED.ToString();
                fractalPlotter.SmoozeType      = SmoozeType;
                fractalPlotter.Reset();
                PlotForm.Params2Form();
                if (fractalPlotter.ThisType == FractalType.LinePlot)
                {
                    fractalPlotter.DoCalculation();
                    if (PlotForm != null)
                    {
                        PlotForm.FormImage = PointsImage.Bitmap;
                    }
                }
                else
                {
                    SimulateTask();
                }
            }
        }
Esempio n. 2
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();
        }
Esempio n. 3
0
 public override void SimulateTask()
 {
     SetPoints();
     PlotForm.Params2Form();
 }
Esempio n. 4
0
 public override void SimulateTask()
 {
     PlotForm.Params2Form();
     CreateDiagram(false);
 }