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 )
#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
#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;
}