]> Creatis software - clitk.git/commitdiff
- new ROI manager class
authordsarrut <dsarrut>
Mon, 19 Apr 2010 07:13:40 +0000 (07:13 +0000)
committerdsarrut <dsarrut>
Mon, 19 Apr 2010 07:13:40 +0000 (07:13 +0000)
common/clitkDicomRT_ROI.cxx
common/clitkDicomRT_ROI.h

index f65dc6298a90cdfc084ed7e2b960eb0d3e34f47e..7aca4be0ae911cb65d3d92c68b52dada4b0dc4ea 100644 (file)
@@ -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;
index fe95208b2665644a820532524b5dae01fc1168e4..e7aaa28af297e3ffe464ca60c452d3ce6da6e2c0 100644 (file)
@@ -43,6 +43,8 @@ namespace clitk {
     const std::vector<double> & GetDisplayColor() const;
     vtkPolyData * GetMesh();
     const vvImage::Pointer GetImage() const;
+
+    void SetDisplayColor(double r, double v, double b);
     
   protected:
     void ComputeMesh();