}
+
+std::vector<creaImageIO::OutStrGimmick> getImagesInfoDialog()
+{
+ wxString infoImage;
+ std::vector<creaImageIO::OutStrGimmick> s;
+ creaImageIO::WxSimpleDlg w(0,_T("Select your image"),"creaContours_Descriptor.dscp","creatisContours DB");
+ w.setInfo(true);
+ w.ShowModal();
+ if(w.GetReturnCode() == wxID_OK)
+ {
+ s = w.getMapInfos();
+ }
+
+ return s;
+}
+
+
/*EED Borrame
vtkImageData* getImageDataDialog() {
// wxApp::OnInit();
#include "creaImageIOWxSimpleDlg.h"
-#include "creaImageIOWxGimmickReaderDialog.h"
-//#include <itkAnalyzeImageIO.h>
-//#include <itkImageFileReader.h>
-//#include <itkImage.h>
+
namespace creaImageIO
{
Connect( gimmickBut->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxSimpleDlg::OnReadGimmick );
/// \TODO Button to select Bruker directory
-
+ bInfo = false;
Layout();
}
fileDlg->GetPaths(wxArray);
if(wxArray.size() >0)
{
- /* typedef itk::Image< float, 4 > ImageType;
- ReadImage<ImageType>(crea::wx2std(wxArray[0]).c_str());*/
infoimage=_T("FILE(s):")+wxArray[0];
std::vector<std::string> files;
dlg.ShowModal();
if (dlg.GetReturnCode() == wxID_OK)
{
- // infoimage=_T("DICOM: ???_EED_???");
-//EED 07JUIN2010 dlg.GetSelectedImages(m_results,3);
std::vector<creaImageIO::OutStrGimmick> out;
std::vector<std::string> attr;
-// attr.push_back("D0028_0010");
-// attr.push_back("D0008_0023");
-// attr.push_back("D0008_1070");
dlg.stopReading();
dlg.getSelected(out, attr,true,"");
-// crea::VtkBasicSlicer(out.front().img);
m_results.clear();
int size=out.size();
int ii;
- for (ii=0;ii<size;ii++)
+ if(!bInfo)
{
- m_results.push_back(out[ii].img);
+ for (ii=0;ii<size;ii++)
+ {
+ m_results.push_back(out[ii].img);
+ }
+ }
+ else
+ {
+ for (ii=0;ii<size;ii++)
+ {
+ m_resultsInfo.push_back(out[ii]);
+ }
}
-
dlg.OnExit();
}
SetReturnCode( dlg.GetReturnCode() );
-// Close();
EndModal( dlg.GetReturnCode() );
}
#include "creaImageIOSimpleView.h"
#include <creaWx.h>
-
+#include "creaImageIOWxGimmickReaderDialog.h"
namespace creaImageIO
{
/**
wxString getInfoImage();
- private:
+ void setInfo(bool i_val){bInfo = i_val;}
+
+ // OutStrGimmick:
+ // - vtkImageData *
+ // - std::map<std::string, std::string> mapDicomInfos (std::map<tag Dicom, Value>
+ std::vector<creaImageIO::OutStrGimmick> getMapInfos(){return m_resultsInfo;}
+ private:
+ bool bInfo;
std::string namedescp;
std::string namedb;
wxString infoimage;
/// vtkImageData vector
std::vector<vtkImageData*> m_results;
+
+ std::vector<creaImageIO::OutStrGimmick> m_resultsInfo;
+
+
};
}