From: Eduardo DAVILA Date: Tue, 7 Aug 2018 08:15:47 +0000 (+0200) Subject: #3208 creaImageIO Feature New Normal - branch mingw64 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Fheads%2Fvtk7itk4wx3-mingw64;p=creaImageIO.git #3208 creaImageIO Feature New Normal - branch mingw64 --- diff --git a/src/creaImageIOGimmick.cpp b/src/creaImageIOGimmick.cpp index b04f3ac..1ec42e1 100644 --- a/src/creaImageIOGimmick.cpp +++ b/src/creaImageIOGimmick.cpp @@ -213,18 +213,14 @@ namespace creaImageIO //================================================================ const std::string& Gimmick::GetUserSettingsDirectory() { - printf("EED Gimmick::GetUserSettingsDirectory() Start\n"); if (mUserSettingsDirectory.size()==0) { - printf("EED Gimmick::GetUserSettingsDirectory() 1\n"); mUserSettingsDirectory = GetHomeDirectory(); - printf("EED Gimmick::GetUserSettingsDirectory() 2 %s\n",mUserSettingsDirectory.c_str()); mUserSettingsDirectory += "/.creaImageIO/"; boost::algorithm::replace_all( mUserSettingsDirectory, INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR); } - printf("EED Gimmick::GetUserSettingsDirectory() End\n"); return mUserSettingsDirectory; } //================================================================ diff --git a/src/creaImageIOGimmickView.cpp b/src/creaImageIOGimmickView.cpp index c996563..0a0dd0c 100644 --- a/src/creaImageIOGimmickView.cpp +++ b/src/creaImageIOGimmickView.cpp @@ -36,8 +36,11 @@ #include #include #include + #endif +#include + /*#if defined(USE_GDCM2) #include #include "gdcmSystem.h" @@ -496,29 +499,16 @@ void GimmickView::ReadImagesNotThreaded(std::vector& s, std::vect void GimmickView::readImages1(std::vector& o_output, std::vector im, OutputAttr i_attr) { - i_attr.outside.push_back("D0019_100a"); // simens Number Of Images In Mosaic - -//EED Borrame - int i,isize=i_attr.outside.size(); - for (i=0;i::iterator it; for (it=im.begin(); it!=im.end(); ++it) { OutStrGimmick out; out.img = vtkImageData::New(); out.img->ShallowCopy(mReader.GetImage(*it)); -printf("EED GimmickView::readImages1 A\n "); if(i_attr.mult) { getAttributes((*it),out.infos,i_attr); -printf("EED GimmickView::readImages1 B %s \n ", out.infos.find("D0019_100a")->second.c_str() ); } o_output.push_back(out); } @@ -526,7 +516,6 @@ printf("EED GimmickView::readImages1 B %s \n ", out.infos.find("D0019_100a")-> if(!i_attr.mult) { getAttributes(im.front(), o_output.front().infos, i_attr); -printf("EED GimmickView::readImages1 C %s \n ", o_output.front().infos.find("D0019_100a")->second.c_str() ); } } @@ -589,6 +578,7 @@ printf("EED GimmickView::readImages1 C %s \n ", o_output.front().infos.find("D memcpy(out.img->GetScalarPointer(0,0,slice), cur->GetScalarPointer(0,0,0), imsize); slice++; } + getAttributes(im.front(),out.infos, i_attr); o_output.push_back(out); } diff --git a/src/creaImageIOMultiThreadImageReader.cpp b/src/creaImageIOMultiThreadImageReader.cpp index 96ba90b..1679136 100644 --- a/src/creaImageIOMultiThreadImageReader.cpp +++ b/src/creaImageIOMultiThreadImageReader.cpp @@ -119,7 +119,6 @@ namespace creaImageIO //===================================================================== bool MultiThreadImageReader::Start() { - // std::cout << "#### MultiThreadImageReader::Start()" // < 0) return true; diff --git a/src/creaImageIOWxGimmickView.cpp b/src/creaImageIOWxGimmickView.cpp index c538c6a..46e2507 100644 --- a/src/creaImageIOWxGimmickView.cpp +++ b/src/creaImageIOWxGimmickView.cpp @@ -708,7 +708,11 @@ namespace creaImageIO { ClearSelection(); }*/ - ReadImageThreaded(sel); + + printf("EED Warnning WxGimmickView::OnSelectionChange ....... To avoid threads conflicts//ReadImageThreaded(sel)\n "); +//EED1 ReadImageThreaded(sel); + + } //================================================== diff --git a/src/creaImageIOWxSimpleDlg.cpp b/src/creaImageIOWxSimpleDlg.cpp index 297ac11..eb9882e 100644 --- a/src/creaImageIOWxSimpleDlg.cpp +++ b/src/creaImageIOWxSimpleDlg.cpp @@ -150,7 +150,7 @@ namespace creaImageIO dlg.ShowModal(); if (dlg.GetReturnCode() == wxID_OK) { - dlg.stopReading(); +//EED1 dlg.stopReading(); std::vector outStrGimmick; dlg.getSelected(outStrGimmick, m_attrDicomTags,true,""); @@ -162,6 +162,7 @@ namespace creaImageIO // { for (ii=0;ii