30 #include "vtkMetaImageWriter.h"
31 #include "vtkMetaImageReader.h"
32 #include <creaVtkBasicSlicer.h>
48 class myApp :
public wxApp
57 CREA_WXMAIN_WITH_CONSOLE
66 setlocale(LC_NUMERIC,
"C");
68 wxInitAllImageHandlers();
85 "localdatabase_Descriptor.dscp",
87 _T(
"Select image(s) - creaImageIOApp (c) CREATIS ( cnrs)"),
100 if (w.GetReturnCode() == wxID_OK)
102 std::cout <<
"$$$$ main : user clicked 'OK' $$$$"<<std::endl;
103 std::cout <<
"$$$$ selected files : "<<std::endl;
105 std::vector<std::string> s;
106 w.GetSelectedFiles(s);
107 std::vector<std::string>::iterator i;
108 for (i=s.begin();i!=s.end();++i)
110 std::cout << *i << std::endl;
112 std::cout <<
"$$$$ "<<std::endl;
142 std::vector<creaImageIO::OutStrGimmick> out;
143 std::vector<std::string> attr;
144 attr.push_back(
"D0028_0010");
145 attr.push_back(
"D0008_0023");
146 attr.push_back(
"D0008_1070");
147 w.getSelected(out, attr,
true,
"");
148 std::cout<<out.size()<<std::endl;
149 crea::VtkBasicSlicer(out.front().img);
150 out.front().img->Delete();
183 else if (w.GetReturnCode() == wxID_CANCEL)
187 std::cout <<
"$$$$ main : user clicked 'CANCEL' $$$$"<<std::endl;
192 std::cout <<
"$$$$ main : dialog ended without return code ! $$$$"
199 std::cout <<
"$$$$$$$$$$$$$$$$$$$$ main ended "<<std::endl;