public static FunctionViewModel CreateRealFunctionVM(string functionString, Plot2DRange plotRange) { var f = new FunctionViewModel(plotRange); f.Function.FunctionString = functionString; return(f); }
public static FunctionViewModel CreateInverseRealFunctionVM(Plot2DRange plotRange, uint samplesCount) { return(new FunctionViewModel( new InverselRealFunction(), plotRange, samplesCount)); }
public static FunctionViewModel CreateInverseRealFunctionVM(Plot2DRange plotRange) { return(new FunctionViewModel( new InverselRealFunction(), plotRange, 1000)); }
private FunctionViewModel(FunctionBase function, Plot2DRange plotRange, uint samplesCount) { this.PlotData = new Telerik.Windows.Data.RadObservableCollection <PlotInfo>(); this.isBeingEdited = false; this.samplesCount = samplesCount; this.Function = function; this.Function.PropertyChanged += (s, e) => this.UpdatePlotData(); this.PlotRange = plotRange; this.PlotRange.PropertyChanged += (s, e) => this.UpdatePlotData(); }
public static FunctionViewModel CreateRealFunctionVM(Plot2DRange plotRange) { return(new FunctionViewModel(plotRange)); }
private FunctionViewModel(Plot2DRange plotRange) : this(new RealFunction(), plotRange, 1000) { }