public void updateGraphAfterPreciseMeasure(long[][] senseModeCounts, List <PreciseEditorData> peds, short?shift) { for (int i = 0; i < peds.Count; ++i) { var ped = peds[i]; if (ped.Use) { var temp = new PointPairListPlus(); { long[] countRow = senseModeCounts[i]; // really need? ped.Step += shift; for (int j = 0; j < countRow.Length; ++j) { temp.Add(ped.Step - ped.Width + j, countRow[j]); } } // order is important here!: ped.AssociatedPoints = temp; Collectors[ped.Collector - 1].Add(ped.AssociatedPoints); } } setDateTimeAndShift(DateTime.Now, shift); // TODO: only affected collectors! OnGraphDataModified(_all); }
public void SetRows(PointPairListPlus dataPoints) { long sum = 0; foreach (var pp in dataPoints) { sum += (long)pp.Y; } SetRows(dataPoints, sum); }
// Be careful with sumCounts! public void SetRows(PointPairListPlus dataPoints, long sumCounts) { if (dataPoints.PLSreference == null) { points[(int)DisplayValue.Step] = dataPoints; dataPoints.PLSreference = this; } else { points[(int)DisplayValue.Step] = new PointPairListPlus(dataPoints, null, this); } points[(int)DisplayValue.Voltage] = new PointPairListPlus(dataPoints, null, this); points[(int)DisplayValue.Voltage].ForEach(pp => ToVoltage(pp)); points[(int)DisplayValue.Mass] = new PointPairListPlus(dataPoints, null, this); points[(int)DisplayValue.Mass].ForEach(pp => { setZ(pp); ToMass(pp); }); peakSum = sumCounts; }
public void updateGraphAfterPreciseMeasure(long[][] senseModeCounts, List<PreciseEditorData> peds, short? shift) { for (int i = 0; i < peds.Count; ++i) { var ped = peds[i]; if (ped.Use) { var temp = new PointPairListPlus(); { long[] countRow = senseModeCounts[i]; // really need? ped.Step += shift; for (int j = 0; j < countRow.Length; ++j) temp.Add(ped.Step - ped.Width + j, countRow[j]); } // order is important here!: ped.AssociatedPoints = temp; Collectors[ped.Collector - 1].Add(ped.AssociatedPoints); } } setDateTimeAndShift(DateTime.Now, shift); // TODO: only affected collectors! OnGraphDataModified(_all); }
public void Add(PointPairListPlus ppl) { Add(new ScalableDataList(this, ppl)); }
public ScalableDataList(Collector col, PointPairListPlus dataPoints) { collector = col; myPED = dataPoints.PEDreference; SetRows(dataPoints); }
// Be careful with sumCounts! public void SetRows(PointPairListPlus dataPoints, long sumCounts) { if (dataPoints.PLSreference == null) { points[(int)DisplayValue.Step] = dataPoints; dataPoints.PLSreference = this; } else { points[(int)DisplayValue.Step] = new PointPairListPlus(dataPoints, null, this); } points[(int)DisplayValue.Voltage] = new PointPairListPlus(dataPoints, null, this); points[(int)DisplayValue.Voltage].ForEach(pp => ToVoltage(pp)); points[(int)DisplayValue.Mass] = new PointPairListPlus(dataPoints, null, this); points[(int)DisplayValue.Mass].ForEach(pp => { setZ(pp); ToMass(pp); }); peakSum = sumCounts; }
public void SetRows(PointPairListPlus dataPoints) { long sum = 0; foreach (var pp in dataPoints) sum += (long)pp.Y; SetRows(dataPoints, sum); }
public PointPairListPlusWithMaxCapacity(PointPairListPlus other) : base(other, other.PEDreference, other.PLSreference) { }
public ScalableDataList(Collector col, PointPairListPlus dataPoints) { collector = col; myPED = dataPoints.PEDreference; SetRows(dataPoints); }