#include #include #include #include // Just to test the selection of file(s), directory or from creaImageIO database. class myApp : public wxApp { public: bool OnInit( ); int OnExit() { return true; } }; IMPLEMENT_APP(myApp); CREA_WXMAIN_WITH_CONSOLE bool myApp::OnInit( ) { wxApp::OnInit(); #ifdef __WXGTK__ //See http://www.wxwindows.org/faqgtk.htm#locale setlocale(LC_NUMERIC, "C"); #endif wxInitAllImageHandlers(); creaImageIO::SetGimmickMessageLevel(5); creaImageIO::SetGimmickDebugMessageLevel(0); creaImageIO::WxSimpleDlg x(0); x.ShowModal(); std::vector test = x.getImagesSelected(); if(test.size() >0) { crea::VtkBasicSlicer(test.front()); } return false; }