From: dsarrut Date: Mon, 19 Apr 2010 07:13:40 +0000 (+0000) Subject: - new ROI manager class X-Git-Tag: v1.2.0~717 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=85fa943b3ae5ae15297f3469817f98a930977bfb;p=clitk.git - new ROI manager class --- diff --git a/common/clitkDicomRT_ROI.cxx b/common/clitkDicomRT_ROI.cxx index f65dc62..7aca4be 100644 --- a/common/clitkDicomRT_ROI.cxx +++ b/common/clitkDicomRT_ROI.cxx @@ -39,6 +39,16 @@ clitk::DicomRT_ROI::~DicomRT_ROI() { //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +void clitk::DicomRT_ROI::SetDisplayColor(double r, double v, double b) { + mColor.resize(3); + mColor[0] = r; + mColor[1] = v; + mColor[2] = b; +} +//-------------------------------------------------------------------- + + //-------------------------------------------------------------------- int clitk::DicomRT_ROI::GetROINumber() const { return mNumber; diff --git a/common/clitkDicomRT_ROI.h b/common/clitkDicomRT_ROI.h index fe95208..e7aaa28 100644 --- a/common/clitkDicomRT_ROI.h +++ b/common/clitkDicomRT_ROI.h @@ -43,6 +43,8 @@ namespace clitk { const std::vector & GetDisplayColor() const; vtkPolyData * GetMesh(); const vvImage::Pointer GetImage() const; + + void SetDisplayColor(double r, double v, double b); protected: void ComputeMesh();