1 #ifndef __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
2 #define __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
6 #include <creaImageIOWxGimmickView.h>
14 //=====================================================================
15 //=====================================================================
16 class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog
19 WxGimmickReaderDialog();
20 WxGimmickReaderDialog(wxWindow *parent,
22 const std::string i_namedescp ,
23 const std::string i_namedb ,
27 int image_min_dim = GIMMICK_2D_IMAGE_SELECTION,
28 int image_max_dim = GIMMICK_3D_IMAGE_SELECTION,
29 int output_dim = NATIVE,
32 boost::shared_ptr<Gimmick> GetGimmick() { return mGimmick; }
33 // typedef WxGimmick ViewType;
34 typedef WxGimmickView::EventType EventType;
36 ~WxGimmickReaderDialog();
38 //===============================================================================================
40 //===============================================================================================
42 void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
43 { mView->GetSelectedImages(s, dim); }
45 void GetSelectedImagesInVector(std::vector<vtkImageData*>& s, int dim)
46 { mView->GetSelectedImagesInVector(s, dim); }
48 void GetSelectedFiles(std::vector<std::string>& s)
49 { mView->GetSelectedFiles(s); }
51 void OnSelChanged(EventType& event);
52 void OnContextualMenu(EventType& event);
53 void OnMenuTest(wxCommandEvent& event);
54 void OnValid(bool valid);
55 void OnExit(){ mView->StopPlayer(); }
56 // void OnButtonOk(wxCommandEvent& event);
57 // void OnButtonCancel(wxCommandEvent& event);
61 boost::shared_ptr<Gimmick> mGimmick;
65 wxButton* mCancelButton;
74 }; // class WxGimmickReaderDialog
75 //=====================================================================
77 } // EO namespace creaImageIO