creaImageIOWxGimmickReaderDialog.h

Go to the documentation of this file.
00001 #ifndef __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
00002 #define __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
00003 
00004 #ifdef USE_WXWIDGETS
00005 
00006 #include <creaImageIOWxGimmickView.h>
00007 #include <creaWx.h>
00008 #include "wx/wx.h"
00009 namespace creaImageIO
00010 {
00015   //=====================================================================
00016  //=====================================================================
00017   class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog
00018   {
00019   public:
00020     WxGimmickReaderDialog();    
00021     WxGimmickReaderDialog(wxWindow *parent, 
00022                           const wxWindowID id,
00023                           wxString title,
00024                           const wxPoint& pos, 
00025                           const wxSize& size,
00026                           int image_min_dim = GIMMICK_2D_IMAGE_SELECTION,
00027                           int image_max_dim = GIMMICK_3D_IMAGE_SELECTION,
00028                           int output_dim = NATIVE,
00029                           int threads = 0);
00030     
00031     Gimmick* GetGimmick() { return mGimmick; }
00032     //    typedef WxGimmick ViewType;
00033     typedef WxGimmickView::EventType EventType;
00034 
00035     ~WxGimmickReaderDialog();
00036 
00037 
00038         //===============================================================================================
00039         //Image Selection
00040         //===============================================================================================
00041    
00042     void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
00043     { mView->GetSelectedImages(s, dim); }
00044 
00045 
00046     void GetSelectedFiles(std::vector<std::string>& s) 
00047     { mView->GetSelectedFiles(s); }
00048     
00049     void OnSelChanged(EventType& event);
00050     void OnContextualMenu(EventType& event);
00051     void OnMenuTest(wxCommandEvent& event);
00052         void OnValid(bool valid);
00053         void OnExit(){mView->StopPlayer();}
00054     //    void OnButtonOk(wxCommandEvent& event);
00055     //    void OnButtonCancel(wxCommandEvent& event);   
00056         
00057   private :
00058     
00059     Gimmick*       mGimmick;
00060     WxGimmickView* mView;
00061 
00062     wxButton* mOkButton;
00063     wxButton* mCancelButton;
00064 
00065     enum 
00066       {
00067         TVID = 1
00068         //      OKID = 2,
00069         //      CANCELID = 3
00070       };
00071 
00072   }; // class WxGimmickReaderDialog
00073   //=====================================================================
00074         
00075 } // EO namespace creaImageIO
00076 
00077 
00078 
00079 #endif // USE_WIDGETS
00080 // EOF
00081 #endif  

Generated on Mon Jun 22 10:49:30 2009 for CreaImageIO by  doxygen 1.5.3