diff Framework/Toolbox/DicomStructureSet.cpp @ 804:61ba4b504e9a

PolylineSceneLayer now has one color per chain
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 28 May 2019 15:58:21 +0200
parents 04f518ebd132
children 266e2b0b9abc
line wrap: on
line diff
--- a/Framework/Toolbox/DicomStructureSet.cpp	Tue May 28 14:18:46 2019 +0200
+++ b/Framework/Toolbox/DicomStructureSet.cpp	Tue May 28 15:58:21 2019 +0200
@@ -540,6 +540,13 @@
   }
 
 
+  Color DicomStructureSet::GetStructureColor(size_t index) const
+  {
+    const Structure& s = GetStructure(index);
+    return Color(s.red_, s.green_, s.blue_);
+  }
+  
+    
   void DicomStructureSet::GetStructureColor(uint8_t& red,
                                             uint8_t& green,
                                             uint8_t& blue,