X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FTestWxSimpleView%2Fmain.cxx;h=9efb1bd55e320be3d683d82a901f3be5e9efbc44;hb=7453657b912f5057cd1060ed195f30e8224c385e;hp=58ffcdbd877d2542551d321b2e5c0633340e3c34;hpb=1d55c1cf210e95a6dc12fb8af67b2d21e48fb408;p=creaImageIO.git diff --git a/appli/TestWxSimpleView/main.cxx b/appli/TestWxSimpleView/main.cxx index 58ffcdb..9efb1bd 100644 --- a/appli/TestWxSimpleView/main.cxx +++ b/appli/TestWxSimpleView/main.cxx @@ -1,7 +1,8 @@ #include #include -#include -#include +#include +#include +#include // Just to test the selection of file(s), directory or from creaImageIO database. class myApp : public wxApp @@ -24,16 +25,11 @@ bool myApp::OnInit( ) #endif wxInitAllImageHandlers(); - creaImageIO::SetGimmickMessageLevel(5); - creaImageIO::SetGimmickDebugMessageLevel(0); - - creaImageIO::WxSimpleDlg x(0); + typedef itk::Image ImageType; + creaImageIO::WxISimpleDlg x(0); x.ShowModal(); - std::vector test = x.getImagesSelected(); - if(test.size() >0) - { - crea::VtkBasicSlicer(test.front()); - } + + std::vector test = x.getImagesSelected(); return false; }