From 85fa943b3ae5ae15297f3469817f98a930977bfb Mon Sep 17 00:00:00 2001 From: dsarrut Date: Mon, 19 Apr 2010 07:13:40 +0000 Subject: [PATCH] - new ROI manager class --- common/clitkDicomRT_ROI.cxx | 10 ++++++++++ common/clitkDicomRT_ROI.h | 2 ++ 2 files changed, 12 insertions(+) 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(); -- 2.47.1