]> Creatis software - clitk.git/commitdiff
Updare the Window & Level spin boxes in the main window
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 23 Feb 2016 11:00:03 +0000 (12:00 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 23 Feb 2016 11:00:03 +0000 (12:00 +0100)
when the Window/Level are set up with --window and --level tags

vv/vvMainWindow.cxx

index effd0fee0bf76fbd3af36fc468d635366471f1d1..474ddde737f80d28e939fdf91bcbd0713d3bbff9 100644 (file)
@@ -1895,6 +1895,7 @@ void vvMainWindow::ApplyWindowToSetOfImages(double window, unsigned int indexMin
   for (unsigned int i = indexMin; i <= indexMax && i < mSlicerManagers.size(); i++) {
     if (mSlicerManagers[i] == NULL)
       continue;
+    SetWindowLevel(window, mSlicerManagers[i]->GetColorLevel());
     mSlicerManagers[i]->SetColorWindow(window);
     mSlicerManagers[i]->SetPreset(WL_USER);
     mSlicerManagers[i]->Render();
@@ -1908,6 +1909,7 @@ void vvMainWindow::ApplyLevelToSetOfImages(double level, unsigned int indexMin,
   for (unsigned int i = indexMin; i <= indexMax && i < mSlicerManagers.size(); i++) {
     if (mSlicerManagers[i] == NULL)
       continue;
+    SetWindowLevel(mSlicerManagers[i]->GetColorWindow(), level);
     mSlicerManagers[i]->SetColorLevel(level);
     mSlicerManagers[i]->SetPreset(WL_USER);
     mSlicerManagers[i]->Render();