/// <summary> /// The magic numbers are from the UIMFDataReader to convert from the slope itself to the k or t0 /// </summary> /// <param name="data"></param> public void UpdateExistingCalib(UimfData data, string file) { this.data = data; if (data != null && data.Calibrator != null) { CalibSlope = data.Calibrator.K; CalibInt = data.Calibrator.T0; } }
/// <summary> /// Updates the reference to UIMF data. /// </summary> /// <param name="uimfDataNew"> /// The uimf data that has been changed. /// </param> public void UpdateReference(UimfData uimfDataNew) { if (uimfDataNew == null) { return; } this.uimfData = uimfDataNew; this.CreatePlotModel(); }
/// <summary> /// The update reference. /// </summary> /// <param name="uimfDataNew"> /// The new <see cref="UimfData"/> that is coming in. /// </param> public void UpdateReference(UimfData uimfDataNew) { this.uimfData = uimfDataNew; if (this.TicPlotModel != null) { return; } this.TicPlotModel = new PlotModel() { PlotType = PlotType.XY }; var linearAxis = new LinearAxis { Position = AxisPosition.Bottom, AbsoluteMinimum = 0, Title = "Mobility Scan", Unit = "Scan Number", MinorTickSize = 0 }; this.TicPlotModel.Axes.Add(linearAxis); var linearYAxis = new LinearAxis { IsZoomEnabled = false, AbsoluteMinimum = 0, MinimumPadding = 0.1, MaximumPadding = 0.1, IsPanEnabled = false, IsAxisVisible = false //Title = "Intensity" }; var series = new LineSeries() { Title = "TIC", Color = OxyColors.Black, CanTrackerInterpolatePoints = false }; this.TicPlotModel.Series.Add(series); this.TicPlotModel.Axes.Add(linearYAxis); this.MaxScan = uimfDataNew.Ranges.EndScan; }
/// <summary> /// The update reference. /// </summary> /// <param name="uimfDataNew"> /// The new <see cref="UimfData"/> that is coming in. /// </param> public void UpdateReference(UimfData uimfDataNew) { this.uimfData = uimfDataNew; this.UimfLoaded = uimfDataNew != null; if (this.BpiPlotModel != null) { return; } this.BpiPlotModel = new PlotModel(); var linearAxis = new LinearAxis { Position = AxisPosition.Bottom, AbsoluteMinimum = 0, IsPanEnabled = false, IsZoomEnabled = false, Title = "Mobility Scan", Unit = "Scan Number", MinorTickSize = 0 }; this.BpiPlotModel.Axes.Add(linearAxis); var linearYAxis = new LinearAxis { IsZoomEnabled = false, AbsoluteMinimum = 0, MinimumPadding = 0.1, MaximumPadding = 0.1, IsPanEnabled = false, IsAxisVisible = false }; this.BpiPlotModel.Axes.Add(linearYAxis); var series = new LineSeries { Color = OxyColors.Black, }; this.BpiPlotModel.Series.Add(series); }
/// <summary> /// Initializes a new instance of the <see cref="TotalIonChromatogramViewModel"/> class. /// </summary> public TotalIonChromatogramViewModel(UimfData uimfData) : this() { this.uimfData = uimfData; this.UpdateReference(this.uimfData); }
/// <summary> /// The update low gate. /// </summary> /// <param name="gate"> /// The gate. /// </param> public void UpdateLowGate(double gate) { UimfData?.UpdateLowGate(gate); }