def export(self, exportables): 

    exportablesCollection = vtk.vtkCollection()
    for exportable in exportables:
      vtkExportable = slicer.vtkSlicerDICOMExportable()
      exportable.copyToVtkExportable(vtkExportable)
      exportablesCollection.AddItem(vtkExportable)

    self.exportAsDICOMSEG(exportablesCollection)
Example #2
0
    def export(self, exportables):

        exportablesCollection = vtk.vtkCollection()
        for exportable in exportables:
            vtkExportable = slicer.vtkSlicerDICOMExportable()
            exportable.copyToVtkExportable(vtkExportable)
            exportablesCollection.AddItem(vtkExportable)

        self.exportAsDICOMSEG(exportablesCollection)
  def export(self,exportables):
    # Convert Qt loadables to VTK ones for the RT export logic
    exportablesCollection = vtk.vtkCollection()
    for exportable in exportables:
      vtkExportable = slicer.vtkSlicerDICOMExportable()
      exportable.copyToVtkExportable(vtkExportable)
      exportablesCollection.AddItem(vtkExportable)

    # Export RT study
    message = slicer.modules.dicomrtimportexport.logic().ExportDicomRTStudy(exportablesCollection)    
    return message
    def export(self, exportables):
        # Convert Qt loadables to VTK ones for the RT export logic
        exportablesCollection = vtk.vtkCollection()
        for exportable in exportables:
            vtkExportable = slicer.vtkSlicerDICOMExportable()
            exportable.copyToVtkExportable(vtkExportable)
            exportablesCollection.AddItem(vtkExportable)

        # Export RT study
        message = slicer.modules.dicomrtimportexport.logic(
        ).ExportDicomRTStudy(exportablesCollection)
        return message