]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 18 Apr 2011 14:16:55 +0000 (14:16 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 18 Apr 2011 14:16:55 +0000 (14:16 +0000)
appli/TestWxSimpleView/CMakeLists.txt
appli/TestWxSimpleView/main.cxx

index 01b7662af74dce28b1996dfe87ff6c288b4b0479..b4d6e7047578f58d183386d21126825fbf1696bf 100644 (file)
@@ -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 )
index 58ffcdbd877d2542551d321b2e5c0633340e3c34..9efb1bd55e320be3d683d82a901f3be5e9efbc44 100644 (file)
@@ -1,7 +1,8 @@
 #include <creaImageIOSystem.h>
 #include <creaWx.h>
-#include <creaImageIOWxSimpleDlg.h>
-#include <creaVtkBasicSlicer.h>
+#include <creaImageIOWxISimpleDlg.h>
+#include <creaImageIOWxISimpleDlg.txx>
+#include <itkImageBase.h>
 
 // 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<short, 4 >  ImageType;
+   creaImageIO::WxISimpleDlg<ImageType> x(0);
    x.ShowModal();
-   std::vector <vtkImageData*> test = x.getImagesSelected();
-   if(test.size() >0)
-   {
-       crea::VtkBasicSlicer(test.front());
-   }
+
+ std::vector <ImageType::Pointer> test = x.getImagesSelected();
    
    return false;
 }