def load(self,loadable):
   """Load the selection as an RT object
   using the DicomRtImportExport module
   """
   if len(loadable.files) > 1:
     logging.error('RT objects must be contained by a single file!')
   vtkLoadable = slicer.vtkSlicerDICOMLoadable()
   loadable.copyToVtkLoadable(vtkLoadable)
   success = slicer.modules.dicomrtimportexport.logic().LoadDicomRT(vtkLoadable)
   return success
 def load(self,loadable):
   """Load the selection as an RT object
   using the DicomRtImportExport module
   """
   if len(loadable.files) > 1:
     print('ERROR: RT objects must be contained by a single file!')
   vtkLoadable = slicer.vtkSlicerDICOMLoadable()
   loadable.copyToVtkLoadable(vtkLoadable)
   success = slicer.modules.dicomrtimportexport.logic().LoadDicomRT(vtkLoadable)
   return success
Exemplo n.º 3
0
  def load(self,loadable):
    """Load the selection as an RT object
    using the DicomSroImportExport module
    """
    success = False

    if len(loadable.files) > 1:
      logging.error('REG objects must be contained by a single file')
    vtkLoadable = slicer.vtkSlicerDICOMLoadable()
    loadable.copyToVtkLoadable(vtkLoadable)
    success = slicer.modules.dicomsroimportexport.logic().LoadDicomSro(vtkLoadable)
    return success

    return success