]> Creatis software - clitk.git/commitdiff
Add Depth options
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 18 Nov 2011 15:53:06 +0000 (16:53 +0100)
committerDavid Sarrut <david.sarrut@gmail.com>
Fri, 18 Nov 2011 15:53:06 +0000 (16:53 +0100)
vv/vvStructureSetActor.cxx

index 7fcfb01149d04d012e8f0b3a925c7379001fb6eb..b7860d350ced70c255df6c1cafe6de881ed1473c 100644 (file)
@@ -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;
 }
 //------------------------------------------------------------------------------