Exemplo n.º 1
0
 public long ParseDcmFile(FileFormat format)
 {
     return ParseDcmFile(format, 0xffffffff);
 }
Exemplo n.º 2
0
 public long ParseDcmFile(FileFormat format, uint stopTag)
 {
     if (format == null) {
         format = DetectFileFormat();
     }
     if (handler != null) {
         handler.StartDcmFile();
     }
     DcmDecodeParam param = format.decodeParam;
     rPos = 0L;
     if (format.hasFileMetaInfo) {
         tsUID = null;
         ParseFileMetaInfo(format.hasPreamble, format.decodeParam);
         if (tsUID == null) {
             log.Warn("Missing Transfer Syntax UID in FMI");
         }
         else {
             param = DcmDecodeParam.ValueOf(tsUID);
         }
     }
     ParseDataset(param, stopTag);
     if (handler != null) {
         handler.EndDcmFile();
     }
     return rPos;
 }
Exemplo n.º 3
0
 public virtual void ReadFile(Stream ins, FileFormat format, uint stopTag)
 {
     var Parser = new DcmParser(ins);
     Parser.DcmHandler = DcmHandler;
     Parser.ParseDcmFile(format, stopTag);
 }