I load RTPLAN, RTDOSE, RTSTRUCT, and RT image into Slicer and would like to export them as dicom files.
I can have RTDOSE, RTSTRUCT, and RT image exported, not RTPLAN. I look at the code RTPLAN node does not get checked in SlicerRT/DicomRtImportExport/Logic/vtkSlicerDicomRtImportExportModuleLogic.cxx. It only check:
// Get nodes for the different roles from the exportable list vtkMRMLScalarVolumeNode* doseNode = nullptr; vtkMRMLSegmentationNode* segmentationNode = nullptr; vtkMRMLScalarVolumeNode* imageNode = nullptr;
Correspondingly, only anatomical image, dose distribution image and structure can be set in SlicerRT/DicomRtImportExport/Logic/vtkSlicerDicomRtWriter.h:
/// Set anatomical image to Plastimatch RT study for export void SetImage(const Plm_image::Pointer&); /// Set dose distribution image to Plastimatch RT study for export void SetDose(const Plm_image::Pointer&); /// Add structure as image data to Plastimatch RT study for export void AddStructure(UCharImageType::Pointer, const char* name, double* color);
If anyone has exported RTPLAN, could you share your code with me?
Thanks in advance.