X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_ROI.h;h=77b5204e042a0fd6f66b6d2a6da41b300080199f;hb=c2969de5a9d788ad06178e4d79947603ac40cbac;hp=e7aaa28af297e3ffe464ca60c452d3ce6da6e2c0;hpb=85fa943b3ae5ae15297f3469817f98a930977bfb;p=clitk.git diff --git a/common/clitkDicomRT_ROI.h b/common/clitkDicomRT_ROI.h index e7aaa28..77b5204 100644 --- a/common/clitkDicomRT_ROI.h +++ b/common/clitkDicomRT_ROI.h @@ -36,25 +36,39 @@ 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); protected: void ComputeMesh(); std::string mName; + std::string mFilename; int mNumber; std::vector mColor; std::vector mListOfContours; vtkPolyData * mMesh; bool mMeshIsUpToDate; vvImage::Pointer mImage; + double mBackgroundValue; + double mForegroundValue; }; //--------------------------------------------------------------------