]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_ROI.h
Replace vvImage::Pointer with raw pointer for function
[clitk.git] / common / clitkDicomRT_ROI.h
index 288d4d950e8a5c82dbb30c1f0c9ff2eb1ceee40b..7fde1bf23de734dc660ca254c0507d2bf0b99224 100644 (file)
@@ -34,7 +34,7 @@ namespace clitk {
 
     void Print(std::ostream & os = std::cout) const;
     void Read(std::map<int, std::string> & rois, gdcm::SQItem * item);
-    void SetFromBinaryImage(vvImage::Pointer image, int n, 
+    void SetFromBinaryImage(vvImage * image, int n, 
                            std::string name, 
                            std::vector<double> color, 
                            std::string filename);
@@ -44,7 +44,7 @@ namespace clitk {
     const std::string & GetFilename() const;
     const std::vector<double> & GetDisplayColor() const;
     vtkPolyData * GetMesh();
-    const vvImage::Pointer GetImage() const;
+    vvImage * GetImage() const;
 
     void SetDisplayColor(double r, double v, double b);
     std::vector<double> & GetDisplayColor() { return mColor; }
@@ -57,6 +57,8 @@ namespace clitk {
     
     void SetImage(vvImage * im);
     DicomRT_Contour* GetContour(int n);
+
+    double GetContourSpacing() const {return mZDelta;}
     
   protected:
     void ComputeMesh();
@@ -67,9 +69,11 @@ namespace clitk {
     std::vector<DicomRT_Contour*> mListOfContours;
     vtkPolyData * mMesh;
     bool mMeshIsUpToDate;
-    vvImage::Pointer mImage;
+    vvImage * mImage;
     double mBackgroundValue;
     double mForegroundValue;
+    ///Spacing between two contours
+    double mZDelta;
   };
   //--------------------------------------------------------------------