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

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