From 7453657b912f5057cd1060ed195f30e8224c385e Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Mon, 18 Apr 2011 14:16:55 +0000 Subject: [PATCH] *** empty log message *** --- appli/TestWxSimpleView/CMakeLists.txt | 10 +++++----- appli/TestWxSimpleView/main.cxx | 18 +++++++----------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/appli/TestWxSimpleView/CMakeLists.txt b/appli/TestWxSimpleView/CMakeLists.txt index 01b7662..b4d6e70 100644 --- a/appli/TestWxSimpleView/CMakeLists.txt +++ b/appli/TestWxSimpleView/CMakeLists.txt @@ -1,11 +1,11 @@ IF(WIN32) - ADD_EXECUTABLE(creaGimmickApp WIN32 main) - SET_TARGET_PROPERTIES(creaGimmickApp PROPERTIES LINK_FLAGS /subsystem:console ) + ADD_EXECUTABLE(creaGimmickItkApp WIN32 main) + SET_TARGET_PROPERTIES(creaGimmickItkApp PROPERTIES LINK_FLAGS /subsystem:console ) ELSE(WIN32) - ADD_EXECUTABLE(creaGimmickApp MACOSX_BUNDLE main) + ADD_EXECUTABLE(creaGimmickItkApp MACOSX_BUNDLE main) ENDIF(WIN32) -TARGET_LINK_LIBRARIES( creaGimmickApp creaImageIO ) +TARGET_LINK_LIBRARIES( creaGimmickItkApp creaImageIO ) -INSTALL_TARGETS(/bin/ creaGimmickApp ) +INSTALL_TARGETS(/bin/ creaGimmickItkApp ) 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; } -- 2.47.1