From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Remove debug. X-Git-Tag: v1.4.0~229^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fff86d41f8c202d2a457fb6c135adfbb19d3342f;p=clitk.git Remove debug. --- 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;