X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_ROI.h;h=7fde1bf23de734dc660ca254c0507d2bf0b99224;hb=4913590ba7e15aa2899fe6f9e403940d4e4ba7a1;hp=5a30df865490a5c9273f0fe569fdb074413886ef;hpb=0f41173383ece2736e285fb44e8b06569bd8d201;p=clitk.git diff --git a/common/clitkDicomRT_ROI.h b/common/clitkDicomRT_ROI.h index 5a30df8..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; } @@ -52,7 +52,13 @@ namespace clitk { double GetBackgroundValueLabelImage() const; void SetBackgroundValueLabelImage(double bg); + double GetForegroundValueLabelImage() const; + void SetForegroundValueLabelImage(double bg); + void SetImage(vvImage * im); + DicomRT_Contour* GetContour(int n); + + double GetContourSpacing() const {return mZDelta;} protected: void ComputeMesh(); @@ -63,8 +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; }; //--------------------------------------------------------------------