]> Creatis software - creaImageIO.git/blobdiff - appli/TestWxGimmickReaderDialog/main.cxx
Implemented calls from/to the interface to several methods.
[creaImageIO.git] / appli / TestWxGimmickReaderDialog / main.cxx
index 541cfa26e4f3f2783ce0bfb2f43c507d1620594c..8149724adc7b2ea418f298b1252b6d21be57f62f 100644 (file)
@@ -29,7 +29,8 @@ bool myApp::OnInit( )
    creaImageIO::SetGimmickDebugMessageLevel(9);
    */
 
-   int image_type = GIMMICK_3D_IMAGE_SELECTION;
+   int min_dim = GIMMICK_2D_IMAGE_SELECTION;
+   int max_dim = GIMMICK_3D_IMAGE_SELECTION;
    int threads = 1;
 
    creaImageIO::WxGimmickReaderDialog w(0,
@@ -37,7 +38,8 @@ bool myApp::OnInit( )
                                        _T("Select image(s)        - Gimmick! (c) CREATIS-LRMN 2008"),
                                        wxDefaultPosition,
                                        wxSize(1200,800),
-                                       image_type,
+                                       min_dim,
+                                       max_dim,
                                        threads);
    w.ShowModal();
    
@@ -55,7 +57,7 @@ bool myApp::OnInit( )
        std::cout << "$$$$ "<<std::endl;
 
        std::vector<vtkImageData*> images;
-       w.GetSelectedImages(images);
+       w.GetSelectedImages(images,3);
        crea::VtkBasicSlicer(images.front());
        images.front()->Delete();