//================================================================
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;
}
//================================================================
#include <gdcmFileHelper.h>
#include <gdcmUtil.h>
#include <vtkGdcmReader.h>
+
#endif
+#include <vtkMetaImageWriter.h>
+
/*#if defined(USE_GDCM2)
#include <vtkGDCMImageReader.h>
#include "gdcmSystem.h"
void GimmickView::readImages1(std::vector<OutStrGimmick>& o_output, std::vector<std::string> 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<isize;i++)
- {
- printf("EED GimmickView::readImages1 A i_attr out %s \n", i_attr.outside[i].c_str());
- }
-
-
-
std::vector<std::string>::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);
}
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() );
}
}
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);
}
dlg.ShowModal();
if (dlg.GetReturnCode() == wxID_OK)
{
- dlg.stopReading();
+//EED1 dlg.stopReading();
std::vector<creaImageIO::OutStrGimmick> outStrGimmick;
dlg.getSelected(outStrGimmick, m_attrDicomTags,true,"");
// {
for (ii=0;ii<size;ii++)
{
+printf("EED1 WxSimpleDlg::OnReadGimmick %d \n", ii);
m_results.push_back(outStrGimmick[ii].img);
m_resultsDicomAtr.push_back( outStrGimmick[ii].infos );
}