]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_Contour.h
Use QSharedPointers for vvROIActors
[clitk.git] / common / clitkDicomRT_Contour.h
index 8596702eeb84edb2f3e086601b968c3e23cc1449..88100f4f9ee213d40ce2c7d869c4251fdac77e14 100644 (file)
 #define CLITKDICOMRT_CONTOUR_H
 
 #include "clitkCommon.h" 
-#include "clitkDicomRT_Contour.h"
 #include <gdcm.h>
 #include <gdcmSQItem.h>
 #include <vtkPoints.h>
 #include <vtkPolyData.h>
+#include <vtkSmartPointer.h>
 
 namespace clitk {
 
@@ -47,8 +47,9 @@ protected:
   void ComputeMesh();
   unsigned int mNbOfPoints;
   std::string mType;
-  vtkPoints * mData;
-  vtkPolyData * mMesh;
+  vtkSmartPointer<vtkPoints> mData;
+  vtkSmartPointer<vtkPolyData> mMesh;
+  vtkSmartPointer<vtkPoints> mPoints;
   bool mMeshIsUpToDate;
   ///Z location of the contour
   double mZ;