Package clips.dicom.dicomdataimpl

Examples of clips.dicom.dicomdataimpl.DicomFileInput


  }
 
  private AgregatorItem loadAgregator() throws ClipsException, IOException, DICOMException{
    SelectorEditable<CheckupDICOMLocalData>    dataList = getData();
    TreeMap<Integer, ArrayList<DICOMChekup>>  target = new TreeMap<Integer, ArrayList<DICOMChekup>>();
    DicomFileInput                fi = new DicomFileInput();
    for (int i = 0; i < dataList.size(); i++) {
      CheckupDICOMLocalData    object = dataList.get(i);
      ArrayList<DICOMChekup>    cur = fi.decodeZipFile(object.getValue(), false);
      DICOMDataDump        dump = new DICOMDataDump(object.getValue(), true);
      for (DICOMChekup chekup : cur) {
        chekup.setOriginalData(dump);
      }
      try {
View Full Code Here


            cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
            File[]        files = dlg.getSelectedFiles();
            if (files == null) {
                return;
            }
            DicomFileInput      input = new DicomFileInput();
            for (File file : files) {
                try {
                    ArrayList<DICOMChekup>        obj = input.decode(file, true);
                    Agregator.onAccept(obj);
                } catch (Exception ex) {
                    MessageBox.showExceptionOnly(new ClipsException("При открытии файла \"" + file + "\" произошла ошибка, возможно файл поврежден или имеет низвестный формат", ex));
                    input = new DicomFileInput();
                }
            }
        }
}//GEN-LAST:event_addFileActionPerformed
View Full Code Here

      cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
      File[]        files = dlg.getSelectedFiles();
      if (files == null) {
        return;
      }
      DicomFileInput      input = new DicomFileInput();
      for (File file : files) {
        try {
          ArrayList<DICOMChekup>        obj = input.decode(file, true);
          Agregator.onAccept(obj);
        } catch (Exception ex) {
          MessageBox.showExceptionOnly(new ClipsException("При открытии файла \"" + file + "\" произошла ошибка, возможно файл поврежден или имеет низвестный формат", ex));
          input = new DicomFileInput();
        }
      }
    }
}//GEN-LAST:event_addFileActionPerformed
View Full Code Here

      int          id = ClipsDicomConfigStore.parseDumpFileName(name);
      if (id >= 0){
        tree.put(id, new File(dubpDir, name));
      }
    }
    DicomFileInput      input = new DicomFileInput();
    for (File file: tree.values()){
      try {
        ArrayList<DICOMChekup>      objects = input.decodeZipFile(file, false);
        DICOMDataDump          dump = new DICOMDataDump(file, true);
        for (DICOMChekup chekup : objects) {
          chekup.setOriginalData(dump);
        }
        Agregator.agregator.onAcceptImp(objects);
      } catch (IOException ex) {
        ex.printStackTrace();
      } catch (DICOMException ex) {
        ex.printStackTrace();
      } catch (Exception ex) {
        ex.printStackTrace();
        input = new DicomFileInput();
      }
    }
  }
View Full Code Here

TOP

Related Classes of clips.dicom.dicomdataimpl.DicomFileInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.