From: Eduardo DAVILA Date: Wed, 20 Dec 2017 10:18:11 +0000 (+0100) Subject: #3164 creaImageIO Bug New Normal - Update ouput vtkImageData in WxSimpleDlg::getVol... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=11e2ea359bee86f7601ea92cbcf8652a2d956c9a;p=creaImageIO.git #3164 creaImageIO Bug New Normal - Update ouput vtkImageData in WxSimpleDlg::getVolumeSelected --- diff --git a/src/creaImageIOWxSimpleDlg.cpp b/src/creaImageIOWxSimpleDlg.cpp index ca98430..49a65a4 100644 --- a/src/creaImageIOWxSimpleDlg.cpp +++ b/src/creaImageIOWxSimpleDlg.cpp @@ -157,6 +157,8 @@ namespace creaImageIO // { for (ii=0;iiModified(); + outStrGimmick[ii].img->Update(); m_results.push_back(outStrGimmick[ii].img); m_resultsDicomAtr.push_back( outStrGimmick[ii].infos ); } @@ -268,7 +270,8 @@ namespace creaImageIO memcpy(out->GetScalarPointer(0,0,slice), img->GetScalarPointer(0,0,0), imsize); //img->Delete(); } // for slice - + out->Modified(); + out->Update(); //EED This is NOT working. The iteration over the pointer vtkImageData // int slice=0; // std::vector::iterator it; @@ -292,7 +295,8 @@ namespace creaImageIO result = NULL; } // getImagesSelected().size()!=0 - + result->Modified(); + result->Update(); return result; }