X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_StructureSet.cxx;h=4945693f8694beaf84dd6ac39ef047dfaf9b12db;hb=eb172bfcfb1d87f89e9a3588f561dab59b672650;hp=51c715e9df875d11ada0f9f518466db15d7a3c46;hpb=9ad40998f59e733989f28f05bed0299979848638;p=clitk.git diff --git a/common/clitkDicomRT_StructureSet.cxx b/common/clitkDicomRT_StructureSet.cxx index 51c715e..4945693 100644 --- a/common/clitkDicomRT_StructureSet.cxx +++ b/common/clitkDicomRT_StructureSet.cxx @@ -110,8 +110,6 @@ const std::string & clitk::DicomRT_StructureSet::GetTime() const //-------------------------------------------------------------------- clitk::DicomRT_ROI* clitk::DicomRT_StructureSet::GetROIFromROINumber(int n) { - DD("GetROIFromROINumber"); - DD(n); if (mROIs.find(n) == mROIs.end()) { std::cerr << "No ROI number " << n << std::endl; return NULL; @@ -250,7 +248,6 @@ int clitk::DicomRT_StructureSet::ReadROINumber(const gdcm::Item & item) void clitk::DicomRT_StructureSet::Write(const std::string & filename) { #if GDCM_MAJOR_VERSION == 2 - DD("DCM RT Writer"); // Assert that the gdcm file is still open (we can write only if it was readed) if (mFile == NULL) { @@ -314,18 +311,12 @@ void clitk::DicomRT_StructureSet::Write(const std::string & filename) //-------------------------------------------------------------------- void clitk::DicomRT_StructureSet::Read(const std::string & filename) { - DD(GDCM_MAJOR_VERSION); - DD(CLITK_USE_SYSTEM_GDCM); - #if CLITK_USE_SYSTEM_GDCM == 1 vtkSmartPointer reader = vtkGDCMPolyDataReader::New(); reader->SetFileName(filename.c_str()); reader->Update(); - // FIXME : check - // Get global information - // FIXME (could be remove with a single access to properties objet. vtkRTStructSetProperties * p = reader->GetRTStructSetProperties(); mStudyID = p->GetStudyInstanceUID(); mStudyDate = p->GetStructureSetDate(); @@ -343,11 +334,13 @@ void clitk::DicomRT_StructureSet::Read(const std::string & filename) // Insert in the map mROIs[roinumber] = roi; } + return; #endif // END version with system gdcm (vtkGDCMPolyDataReader) // Open DICOM #if GDCM_MAJOR_VERSION == 2 + FATAL("Error : compile vv with itk4 + external gdcm"); // Read gdcm file mReader = new gdcm::Reader;