Exemple #1
0
 public DataInfo(int dataSize, XRayInfoIDStruct xrayInfo, byte numberOfBytesPerPixel)
 {
     LineData = new Pixel[dataSize];
     NumberOfBytesPerPixel = numberOfBytesPerPixel;
     XRayInfo           = xrayInfo;
     TotalBytesReceived = 0;
 }
Exemple #2
0
 public DataInfo(int dataSize, XRayInfoIDStruct xrayInfo, byte numberOfBytesPerPixel)
 {
     LineData = new Pixel[dataSize];
     NumberOfBytesPerPixel = numberOfBytesPerPixel;
     XRayInfo = xrayInfo;
     TotalBytesReceived = 0;
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #5
0
 public abstract float[] GetReferenceCorrections(XRayInfoIDStruct lineInfo);
Exemple #6
0
 public abstract float[] GetScaleFactor(XRayInfoIDStruct lineInfo);
Exemple #7
0
 public abstract Pixel[] GetDarkDataCollection(XRayInfoIDStruct lineInfo);
Exemple #8
0
 public abstract Pixel[] GetDarkData(XRayInfoIDStruct lineInfo);
Exemple #9
0
 public abstract void ResetReferenceCorrection(XRayInfoIDStruct lineInfo);
Exemple #10
0
 public abstract void AddReferenceCorrection(XRayInfoIDStruct lineInfo, double referenceData);
 public override float[] GetScaleFactor(XRayInfoIDStruct lineInfo)
 {
     return GetCurrentCollection().GetScaleFactor(lineInfo.Energy);
 }
Exemple #12
0
 public override float[] GetReferenceCorrections(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetReferenceData(lineInfo.Energy);
 }
Exemple #13
0
 public override float[] GetScaleFactor(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetScaleFactor(lineInfo.Energy);
 }
Exemple #14
0
 public override Pixel[] GetDarkDataCollection(XRayInfoIDStruct lineInfo)
 {
     return _DataCollection.GetDarkDataCollection(lineInfo.Energy);
 }
Exemple #15
0
 public override void ResetReferenceCorrection(XRayInfoIDStruct lineInfo)
 {
     _DataCollection.ClearReferenceData(lineInfo.Energy);
 }
Exemple #16
0
 public override void AddReferenceCorrection(XRayInfoIDStruct lineInfo, double referenceData)
 {
     _DataCollection.AddReferenceData(lineInfo.Energy, referenceData);
 }
Exemple #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;
 }
 public override Pixel[] GetAirDataCollection(XRayInfoIDStruct lineInfo)
 {
     return GetCurrentCollection().GetAirDataCollection(lineInfo.Energy);
 }