X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=common%2FclitkDicomRT_ROI.cxx;h=72f8273f507e167f6fe9850db1ad2235af3c9883;hb=e7f88877b4e3d136e9cfa08613490df94e2728d7;hp=f65dc6298a90cdfc084ed7e2b960eb0d3e34f47e;hpb=163fa80ef3873595f3e3cf75fb03e53536d1a6ee;p=clitk.git diff --git a/common/clitkDicomRT_ROI.cxx b/common/clitkDicomRT_ROI.cxx index f65dc62..72f8273 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; @@ -59,7 +69,6 @@ const std::vector & 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 & rois, gdcm::SQItem * item) {