Beispiel #1
0
 public DataInfo(int dataSize, XRayInfoIDStruct xrayInfo, byte numberOfBytesPerPixel)
 {
     LineData = new Pixel[dataSize];
     NumberOfBytesPerPixel = numberOfBytesPerPixel;
     XRayInfo           = xrayInfo;
     TotalBytesReceived = 0;
 }
Beispiel #2
0
 public DataInfo(int dataSize, XRayInfoIDStruct xrayInfo, byte numberOfBytesPerPixel)
 {
     LineData = new Pixel[dataSize];
     NumberOfBytesPerPixel = numberOfBytesPerPixel;
     XRayInfo = xrayInfo;
     TotalBytesReceived = 0;
 }
Beispiel #3
0
        public static string Dump(XRayInfoIDStruct xryInf, bool /*labelled?*/ isLbl = false)
        {
            string /*text (returned)*/ txt = "{" +
                                             (isLbl ? "Energy " : string.Empty) + xryInf.Energy.ToString() + "," +
                                             (isLbl ? "PulseWidth " : string.Empty) + xryInf.PulseWidth.ToString() + "}";

            return(txt);
        }
Beispiel #4
0
        public static string Dump(DataPacketHeader hdrDPK, bool /*labelled?*/ isLbl = false)
        {
            string /*text (returned)*/ txt = (isLbl ? "DataPacketHeader" : string.Empty) + "{";

            txt += (isLbl ? "LineID " : string.Empty) + hdrDPK.LineID.ToString();
            txt += ", " + (isLbl? "Start/EndNumOfDetectors" : string.Empty) + "[" +
                   hdrDPK.StartNumOfDetectors.ToString() + "," +
                   hdrDPK.EndNumOfDetectors.ToString() + "]";
            txt += "," + XRayInfoIDStruct.Dump(hdrDPK.EnergyAndPulsewidth, isLbl);
            txt += "," + (isLbl ? "NumBytesPerPixel " : string.Empty) +
                   hdrDPK.NumBytesPerPixel.ToString();
            txt += "}";
            return(txt);
        }
Beispiel #5
0
 public abstract float[] GetReferenceCorrections(XRayInfoIDStruct lineInfo);
Beispiel #6
0
 public abstract float[] GetScaleFactor(XRayInfoIDStruct lineInfo);
Beispiel #7
0
 public abstract Pixel[] GetDarkDataCollection(XRayInfoIDStruct lineInfo);
Beispiel #8
0
 public abstract Pixel[] GetDarkData(XRayInfoIDStruct lineInfo);
Beispiel #9
0
 public abstract void ResetReferenceCorrection(XRayInfoIDStruct lineInfo);
Beispiel #10
0
 public abstract void AddReferenceCorrection(XRayInfoIDStruct lineInfo, double referenceData);
Beispiel #11
0
 public override float[] GetScaleFactor(XRayInfoIDStruct lineInfo)
 {
     return GetCurrentCollection().GetScaleFactor(lineInfo.Energy);
 }
Beispiel #12
0
 public override float[] GetReferenceCorrections(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetReferenceData(lineInfo.Energy);
 }
Beispiel #13
0
 public override float[] GetScaleFactor(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetScaleFactor(lineInfo.Energy);
 }
Beispiel #14
0
 public override Pixel[] GetDarkDataCollection(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetDarkDataCollection(lineInfo.Energy);
 }
Beispiel #15
0
 public override void ResetReferenceCorrection(XRayInfoIDStruct lineInfo)
 {
     _DataCollection.ClearReferenceData(lineInfo.Energy);
 }
Beispiel #16
0
 public override void AddReferenceCorrection(XRayInfoIDStruct lineInfo, double referenceData)
 {
     _DataCollection.AddReferenceData(lineInfo.Energy, referenceData);
 }
Beispiel #17
0
 public static string Dump(XRayInfoIDStruct xryInf, bool /*labelled?*/ isLbl = false)
 {
     string /*text (returned)*/ txt = "{" +
         (isLbl ? "Energy " : string.Empty) + xryInf.Energy.ToString() + "," +
         (isLbl ? "PulseWidth " : string.Empty) + xryInf.PulseWidth.ToString() + "}";
     return txt;
 }
Beispiel #18
0
 public override Pixel[] GetAirDataCollection(XRayInfoIDStruct lineInfo)
 {
     return GetCurrentCollection().GetAirDataCollection(lineInfo.Energy);
 }