]> Creatis software - creaImageIO.git/blobdiff - appli/TestWxGimmickReaderDialog/main.cxx
*** empty log message ***
[creaImageIO.git] / appli / TestWxGimmickReaderDialog / main.cxx
index 8c227595cfce15d30553ce5a6ca2ba3ad7171e23..5d4a3356fb5074e1764c8b9667a745a7a1c67d38 100644 (file)
@@ -24,10 +24,14 @@ bool myApp::OnInit( )
 #endif
    wxInitAllImageHandlers();
 
+   /*
    creaImageIO::SetGimmickMessageLevel(9);
    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 output_dim = NATIVE;
    int threads = 1;
 
    creaImageIO::WxGimmickReaderDialog w(0,
@@ -35,7 +39,9 @@ bool myApp::OnInit( )
                                        _T("Select image(s)        - Gimmick! (c) CREATIS-LRMN 2008"),
                                        wxDefaultPosition,
                                        wxSize(1200,800),
-                                       image_type,
+                                       min_dim,
+                                       max_dim,
+                                       output_dim,
                                        threads);
    w.ShowModal();
    
@@ -43,6 +49,7 @@ bool myApp::OnInit( )
      {
        std::cout << "$$$$ main : user clicked 'OK' $$$$"<<std::endl;
        std::cout << "$$$$ selected files : "<<std::endl;
+          //Puts filenames
        std::vector<std::string> s;
        w.GetSelectedFiles(s);
        std::vector<std::string>::iterator i;
@@ -52,8 +59,10 @@ bool myApp::OnInit( )
         }
        std::cout << "$$$$ "<<std::endl;
 
+          //Puts images
        std::vector<vtkImageData*> images;
-       w.GetSelectedImages(images);
+       w.GetSelectedImages(images,output_dim);
+          
        crea::VtkBasicSlicer(images.front());
        images.front()->Delete();