X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_ROI.h;h=c1cf9778f2ca13838137b43b4b0f441ce32e6bfe;hb=25e6b21607eea7d39428c109e4bc0ebe00f54ed9;hp=8ec0404b119aef459f9a663e480663ed9968d880;hpb=fe61abeb6e452e5f54bef60a287aa104e4e02d70;p=clitk.git diff --git a/common/clitkDicomRT_ROI.h b/common/clitkDicomRT_ROI.h index 8ec0404..c1cf977 100644 --- a/common/clitkDicomRT_ROI.h +++ b/common/clitkDicomRT_ROI.h @@ -36,22 +36,34 @@ namespace clitk { void Read(std::map & rois, gdcm::SQItem * item); void SetFromBinaryImage(vvImage::Pointer image, int n, std::string name, - std::vector color); + std::vector color, + std::string filename); int GetROINumber() const; const std::string & GetName() const; + const std::string & GetFilename() const; const std::vector & GetDisplayColor() const; vtkPolyData * GetMesh(); const vvImage::Pointer GetImage() const; void SetDisplayColor(double r, double v, double b); + std::vector & GetDisplayColor() { return mColor; } 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(); std::string mName; + std::string mFilename; int mNumber; std::vector mColor; std::vector mListOfContours; @@ -59,6 +71,9 @@ namespace clitk { bool mMeshIsUpToDate; vvImage::Pointer mImage; double mBackgroundValue; + double mForegroundValue; + ///Spacing between two contours + double mZDelta; }; //--------------------------------------------------------------------