From fc938fabfdfdac335a5fe8f3429a443aad185216 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 2 Dec 2015 10:08:10 +0100 Subject: [PATCH] The binarization result is automatically displayed after apply Change the order of Initialization of Slicers --- vv/vvMainWindow.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 203d7f2..0011627 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -3514,6 +3514,7 @@ void vvMainWindow::ShowLastImage() QTreeWidgetItem * item=DataTree->topLevelItem(DataTree->topLevelItemCount()-1); CurrentImageChanged(mSlicerManagers.back()->GetId()); //select new image item->setData(1,Qt::CheckStateRole,2); //show the new image in the first panel + //mSlicerManagers[GetSlicerIndexFromItem(item)]->GetSlicer(0)->SetActorVisibility("image", 0, 1); //Set the Last Image visibles DisplayChanged(item,1); } } @@ -3653,11 +3654,12 @@ vvSlicerManager* vvMainWindow::AddImage(vvImage::Pointer image,std::string filen connect(mSlicerManagers.back(), SIGNAL(LandmarkAdded()),landmarksPanel,SLOT(AddPoint())); + + InitSlicers(); UpdateTree(); qApp->processEvents(); - InitSlicers(); - ShowLastImage(); InitDisplay(); + ShowLastImage(); qApp->processEvents(); // End ImageInfoChanged(); -- 2.47.1