]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_ROI.cxx
- add CeCILL B licence
[clitk.git] / common / clitkDicomRT_ROI.cxx
index f65dc6298a90cdfc084ed7e2b960eb0d3e34f47e..72f8273f507e167f6fe9850db1ad2235af3c9883 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;
@@ -59,7 +69,6 @@ const std::vector<double> & clitk::DicomRT_ROI::GetDisplayColor() const {
 }
 //--------------------------------------------------------------------
 
-
  
 //--------------------------------------------------------------------
 void clitk::DicomRT_ROI::Print(std::ostream & os) const {
@@ -70,6 +79,20 @@ void clitk::DicomRT_ROI::Print(std::ostream & os) const {
 //--------------------------------------------------------------------
 
 
+//--------------------------------------------------------------------
+void clitk::DicomRT_ROI::SetBackgroundValueLabelImage(double bg){
+  mBackgroundValue = bg;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+double clitk::DicomRT_ROI::GetBackgroundValueLabelImage() const {
+  return mBackgroundValue;
+}
+//--------------------------------------------------------------------
+
+
 //--------------------------------------------------------------------
 void clitk::DicomRT_ROI::Read(std::map<int, std::string> & rois, gdcm::SQItem * item) {