X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvStructureSetActor.cxx;h=b7860d350ced70c255df6c1cafe6de881ed1473c;hb=a0bcf3084e5092bb1beccdbed6b2710f839346d9;hp=86fcdb1a6db0819c45f24a53f0ef911958473bc4;hpb=8ba069c89cddf44e9bd529b781bb5ddfd8d21adf;p=clitk.git diff --git a/vv/vvStructureSetActor.cxx b/vv/vvStructureSetActor.cxx index 86fcdb1..b7860d3 100644 --- a/vv/vvStructureSetActor.cxx +++ b/vv/vvStructureSetActor.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #include "vvStructureSetActor.h" #include "vvROIActor.h" @@ -83,7 +83,7 @@ vvROIActor * vvStructureSetActor::GetROIActor(int n) void vvStructureSetActor::CreateNewROIActor(int n, bool modeBG) { // Check - clitk::DicomRT_ROI * roi = mStructureSet->GetROI(n); + clitk::DicomRT_ROI * roi = mStructureSet->GetROIFromROINumber(n); if (roi == NULL) { std::cerr << "Error. No ROI number " << n << std::endl; exit(0); @@ -103,7 +103,7 @@ void vvStructureSetActor::CreateNewROIActor(int n, bool modeBG) actor->SetBGMode(modeBG); actor->SetROI(roi); actor->SetSlicerManager(mSlicerManager); - actor->Initialize(); + actor->Initialize(n+1); // depth is n+1 to start at 1 mMapROIIndex[n] = mROIActors.size()-1; } //------------------------------------------------------------------------------