X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=common%2FclitkDicomRT_ROI.cxx;h=67e534108187a743313a373db6a9ef88c99753ba;hb=c69e6ac8e16ac42d32f3a13d60396ddf65616188;hp=6096ddc761f05643fbe3e5e9c5b007da4af88ef4;hpb=b9db5886a4d8e50a6940d7ceea622de32cfb230a;p=clitk.git diff --git a/common/clitkDicomRT_ROI.cxx b/common/clitkDicomRT_ROI.cxx index 6096ddc..67e5341 100644 --- a/common/clitkDicomRT_ROI.cxx +++ b/common/clitkDicomRT_ROI.cxx @@ -129,6 +129,8 @@ double clitk::DicomRT_ROI::GetForegroundValueLabelImage() const //-------------------------------------------------------------------- +#if GDCM_MAJOR_VERSION == 2 +#else void clitk::DicomRT_ROI::Read(std::map & rois, gdcm::SQItem * item) { @@ -167,6 +169,7 @@ void clitk::DicomRT_ROI::Read(std::map & rois, gdcm::SQItem * } } } +#endif //-------------------------------------------------------------------- @@ -195,12 +198,14 @@ clitk::DicomRT_Contour * clitk::DicomRT_ROI::GetContour(int n) //-------------------------------------------------------------------- void clitk::DicomRT_ROI::ComputeMesh() { - vtkAppendPolyData * append = vtkAppendPolyData::New(); + vtkSmartPointer append = vtkSmartPointer::New(); for(unsigned int i=0; iAddInput(mListOfContours[i]->GetMesh()); } append->Update(); - mMesh = append->GetOutput(); + + mMesh = vtkSmartPointer::New(); + mMesh->DeepCopy(append->GetOutput()); mMeshIsUpToDate = true; } //--------------------------------------------------------------------