Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        public void SetRows(PointPairListPlus dataPoints)
        {
            long sum = 0;

            foreach (var pp in dataPoints)
            {
                sum += (long)pp.Y;
            }
            SetRows(dataPoints, sum);
        }
Esempio n. 3
0
        // 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;
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 public void Add(PointPairListPlus ppl)
 {
     Add(new ScalableDataList(this, ppl));
 }
Esempio n. 6
0
 public ScalableDataList(Collector col, PointPairListPlus dataPoints)
 {
     collector = col;
     myPED = dataPoints.PEDreference;
     SetRows(dataPoints);
 }
Esempio n. 7
0
        // 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;
        }
Esempio n. 8
0
 public void SetRows(PointPairListPlus dataPoints)
 {
     long sum = 0;
     foreach (var pp in dataPoints)
         sum += (long)pp.Y;
     SetRows(dataPoints, sum);
 }
Esempio n. 9
0
 public PointPairListPlusWithMaxCapacity(PointPairListPlus other)
     : base(other, other.PEDreference, other.PLSreference)
 {
 }
Esempio n. 10
0
 public ScalableDataList(Collector col, PointPairListPlus dataPoints)
 {
     collector = col;
     myPED     = dataPoints.PEDreference;
     SetRows(dataPoints);
 }