public ChartController() { FirstChart = new ChartRepresentation { SelectedIndex = -1, SignalRepresentation = new SignalRepresentation(), SignalProperties = new SignalTextProperties(), PlotColor = OxyColors.Blue, RealSeries = new ScatterSeries(), ImaginarySeries = new ScatterSeries() }; SecondChart = new ChartRepresentation { SelectedIndex = -1, SignalRepresentation = new SignalRepresentation(), SignalProperties = new SignalTextProperties(), PlotColor = OxyColors.Red, RealSeries = new ScatterSeries(), ImaginarySeries = new ScatterSeries() }; NumberOfIntervals = 5; combinedSignal = new SignalRepresentation { Signal = new SignalImplementation() }; combinedSignal.Signal.Points = new List <Tuple <double, Complex> >(); CombinedTextProperties = new SignalTextProperties(); realCombinedSeries = new ScatterSeries(); imaginaryCombinedSeries = new ScatterSeries(); realHistogramSeries = new ColumnSeries(); realPlotModel = new PlotModel(); imaginaryPlotModel = new PlotModel(); realHistogramPlotModel = new PlotModel(); RealPlotModel.Series.Add(FirstChart.RealSeries); RealPlotModel.Series.Add(SecondChart.RealSeries); ImaginaryPlotModel.Series.Add(FirstChart.ImaginarySeries); ImaginaryPlotModel.Series.Add(SecondChart.ImaginarySeries); realHistogramPlotModel.Series.Add(realHistogramSeries); }
public bool CanDraw() { return(SignalRepresentation.CanDraw(SelectedIndex, SignalProperties)); }