X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_ROI.h;h=7fde1bf23de734dc660ca254c0507d2bf0b99224;hb=24fb0576a860ea843722b1d84561186542b62fd5;hp=288d4d950e8a5c82dbb30c1f0c9ff2eb1ceee40b;hpb=303324c27d660280e3ed0a3f40b10bb1bbd5d0c8;p=clitk.git diff --git a/common/clitkDicomRT_ROI.h b/common/clitkDicomRT_ROI.h index 288d4d9..7fde1bf 100644 --- a/common/clitkDicomRT_ROI.h +++ b/common/clitkDicomRT_ROI.h @@ -34,7 +34,7 @@ namespace clitk { void Print(std::ostream & os = std::cout) const; void Read(std::map & rois, gdcm::SQItem * item); - void SetFromBinaryImage(vvImage::Pointer image, int n, + void SetFromBinaryImage(vvImage * image, int n, std::string name, std::vector color, std::string filename); @@ -44,7 +44,7 @@ namespace clitk { const std::string & GetFilename() const; const std::vector & GetDisplayColor() const; vtkPolyData * GetMesh(); - const vvImage::Pointer GetImage() const; + vvImage * GetImage() const; void SetDisplayColor(double r, double v, double b); std::vector & 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 mListOfContours; vtkPolyData * mMesh; bool mMeshIsUpToDate; - vvImage::Pointer mImage; + vvImage * mImage; double mBackgroundValue; double mForegroundValue; + ///Spacing between two contours + double mZDelta; }; //--------------------------------------------------------------------