Beispiel #1
0
 public override void Run(Altaxo.Graph.GUI.GraphController ctrl)
 {
     ctrl.EnsureValidityOfCurrentLayerNumber();
     if (null != ctrl.ActiveLayer)
     {
         LayerController.ShowDialog(ctrl.ActiveLayer);
     }
 }
Beispiel #2
0
        public override void Run(Altaxo.Graph.GUI.GraphController ctrl)
        {
            FunctionEvaluationScript script = null; //

            if (script == null)
            {
                script = new FunctionEvaluationScript();
            }

            object[] args = new object[] { script, new ScriptExecutionHandler(this.EhScriptExecution) };
            if (Current.Gui.ShowDialog(args, "Function script"))
            {
                ctrl.EnsureValidityOfCurrentLayerNumber();

                script = (FunctionEvaluationScript)args[0];
                XYFunctionPlotItem functItem = new XYFunctionPlotItem(new XYFunctionPlotData(script), new G2DPlotStyleCollection(LineScatterPlotStyleKind.Line));
                ctrl.Doc.Layers[ctrl.CurrentLayerNumber].PlotItems.Add(functItem);
            }
        }
Beispiel #3
0
 public override void Run(Altaxo.Graph.GUI.GraphController ctrl)
 {
     ctrl.EnsureValidityOfCurrentLayerNumber();
     ctrl.Doc.Layers[ctrl.CurrentLayerNumber].PlotItems.Add(new XYFunctionPlotItem(new XYFunctionPlotData(new PolynomialFunction(new double[] { 0, 0, 1 })), new G2DPlotStyleCollection(LineScatterPlotStyleKind.Line)));
 }