From: tbaudier Date: Wed, 2 Dec 2015 09:08:10 +0000 (+0100) Subject: The binarization result is automatically displayed after apply X-Git-Tag: v1.4.0~90^2~3 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fc938fabfdfdac335a5fe8f3429a443aad185216;p=clitk.git The binarization result is automatically displayed after apply Change the order of Initialization of Slicers --- 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();