public BoxPlotPerFieldPlotModel(IList <FieldViewModel> fields, string yAxisTitle) { Axes.Add(CreateXAxis(fields)); Axes.Add(CreateYAxis(yAxisTitle)); ColorsToUse = new OxyPlotColorsToUse(); int i = 0; foreach (FieldViewModel field in fields) { BoxPlotSeries series = CreateSeries(field, i++); Series.Add(series); } }
public PenaltyPerControlPointPlotModel(IList <FieldViewModel> fields, string yAxisTitle) { XAxis = CreateXAxis(); YAxis = CreateYAxis(yAxisTitle); ColorsToUse = new OxyPlotColorsToUse(); Axes.Add(CreateXAxis()); Axes.Add(CreateYAxis(yAxisTitle)); foreach (FieldViewModel field in fields) { LineSeries PenaltySeries = CreatePenaltySeries(field); Series.Add(PenaltySeries); } IsLegendVisible = false; }
public PlanViewModel(Patient patient, PlanSetup plan) { Patient = patient; Plan = plan; OxyPlotColorsToUse Colors = new OxyPlotColorsToUse(); Fields = (from Beam beam in plan.Beams where !beam.IsSetupField select new FieldViewModel(this, beam) { PlotColor = Colors.NextColor() }).ToArray(); // Add the first field to the list of selected fields SelectedFields = new ObservableCollection <FieldViewModel>(); SelectedFields.Add(Fields.FirstOrDefault()); }