]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_Contour.h
From Benoit P, use clitkDicomRTStruct2Image with image with direction cosine
[clitk.git] / common / clitkDicomRT_Contour.h
index 077599f29da2bc84024bdf04625b5b25d4c74cb0..389bbdd8dcb800812d6a0b391d9f6ce713b1a317 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "clitkCommon.h" 
 #include <gdcmFile.h>
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
 #else
 #include <gdcm.h>
 #include <gdcmSQItem.h>
@@ -44,7 +44,7 @@ public:
 
   void Print(std::ostream & os = std::cout) const;
 
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
   bool Read(gdcm::Item * item);
   void UpdateDicomItem();
 #else
@@ -56,6 +56,8 @@ public:
   vtkPoints * GetPoints() {return mData;}
   double GetZ() const {return mZ;}
   void SetTransformMatrix(vtkMatrix4x4* matrix);
+  double GetTolerance();
+  void SetTolerance(double tol);
   
   
 protected:
@@ -70,8 +72,9 @@ protected:
   bool mMeshIsUpToDate;
   ///Z location of the contour
   double mZ;
+  double mTolerance;
   
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
   gdcm::Item * mItem;
 #else
   gdcm::SQItem * mItem;