]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickReaderDialog.h
No newline at end of file
[creaImageIO.git] / src2 / creaImageIOWxGimmickReaderDialog.h
index 1bf53de07799e83e87dc989cd5539ec173184a95..0ed3d4ae521295ca9d4d8c8d0523477e1b570bd9 100644 (file)
@@ -5,15 +5,16 @@
 
 #include <creaImageIOWxGimmickView.h>
 #include <creaWx.h>
-
+#include "wx/wx.h"
 namespace creaImageIO
 {
   /**
    * \ingroup GUI
    */
+       
   //=====================================================================
  //=====================================================================
-  class /*CREAIMAGEIO_EXPORT*/ WxGimmickReaderDialog : public wxDialog
+  class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog
   {
   public:
     WxGimmickReaderDialog();    
@@ -22,7 +23,9 @@ namespace creaImageIO
                          wxString title,
                          const wxPoint& pos, 
                          const wxSize& size,
-                         int image_type = GIMMICK_3D_IMAGE_SELECTION,
+                         int image_min_dim = GIMMICK_2D_IMAGE_SELECTION,
+                         int image_max_dim = GIMMICK_3D_IMAGE_SELECTION,
+                         int output_dim = NATIVE,
                          int threads = 0);
     
     Gimmick* GetGimmick() { return mGimmick; }
@@ -31,18 +34,26 @@ namespace creaImageIO
 
     ~WxGimmickReaderDialog();
 
-    void GetSelectedImages(std::vector<vtkImageData*>& s)
-    { mView->GetSelectedImages(s); }
+
+       //===============================================================================================
+       //Image Selection
+       //===============================================================================================
+   
+    void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
+    { mView->GetSelectedImages(s, dim); }
+
+
     void GetSelectedFiles(std::vector<std::string>& s) 
     { mView->GetSelectedFiles(s); }
     
     void OnSelChanged(EventType& event);
     void OnContextualMenu(EventType& event);
     void OnMenuTest(wxCommandEvent& event);
+       void OnValid(bool valid);
+       void OnExit(){mView->StopPlayer();}
     //    void OnButtonOk(wxCommandEvent& event);
-    //    void OnButtonCancel(wxCommandEvent& event);
-
-    DECLARE_EVENT_TABLE();
+    //    void OnButtonCancel(wxCommandEvent& event);  
+       
   private :
     
     Gimmick*       mGimmick;
@@ -60,11 +71,11 @@ namespace creaImageIO
 
   }; // class WxGimmickReaderDialog
   //=====================================================================
-
-  
+       
 } // EO namespace creaImageIO
 
 
+
 #endif // USE_WIDGETS
 // EOF
 #endif