]> Creatis software - clitk.git/commitdiff
The binarization result is automatically displayed after apply
authortbaudier <thomas.baudier@etu.unistra.fr>
Wed, 2 Dec 2015 09:08:10 +0000 (10:08 +0100)
committertbaudier <thomas.baudier@etu.unistra.fr>
Wed, 2 Dec 2015 09:08:10 +0000 (10:08 +0100)
Change the order of Initialization of Slicers

vv/vvMainWindow.cxx

index 203d7f2cce42b7f4f8582bd2618d139b0ad068c5..001162797244beaf6cf5ce964bd2133424c070b5 100644 (file)
@@ -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();