]> Creatis software - clitk.git/commitdiff
updated the render window for the labeled landmarks
authorBenoît Presles <benoit.presles@netcourrier.com>
Wed, 24 Oct 2012 11:18:32 +0000 (13:18 +0200)
committerBenoît Presles <benoit.presles@netcourrier.com>
Wed, 24 Oct 2012 11:18:32 +0000 (13:18 +0200)
vv/vvMainWindow.cxx

index ddc38fba97e5be92d50da869c7386002f346bec3..11b4b3d6cf782a214c7350f14f3c784998adbd44 100644 (file)
@@ -3070,6 +3070,12 @@ void vvMainWindow::ShowLastImage()
 //------------------------------------------------------------------------------
 void vvMainWindow::UpdateRenderWindows()
 {
+  for (unsigned int i = 0; i < mSlicerManagers.size(); i++) {
+    mSlicerManagers[i]->GetSlicer(0)->UpdateLandmarks();
+    mSlicerManagers[i]->GetSlicer(1)->UpdateLandmarks();
+    mSlicerManagers[i]->GetSlicer(2)->UpdateLandmarks();
+    mSlicerManagers[i]->GetSlicer(3)->UpdateLandmarks();
+  }
   if (NOViewWidget->GetRenderWindow()) NOViewWidget->GetRenderWindow()->Render();
   if (NEViewWidget->GetRenderWindow()) NEViewWidget->GetRenderWindow()->Render();
   if (SOViewWidget->GetRenderWindow()) SOViewWidget->GetRenderWindow()->Render();