From: tbaudier Date: Tue, 23 Feb 2016 11:00:03 +0000 (+0100) Subject: Updare the Window & Level spin boxes in the main window X-Git-Tag: v1.4.0~47 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1b43934a26a3af90d36fb7953c6f07bf324737d3;p=clitk.git Updare the Window & Level spin boxes in the main window when the Window/Level are set up with --window and --level tags --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index effd0fe..474ddde 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -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();