1 #ifndef __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
2 #define __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
6 #include <creaImageIOWxGimmickView.h>
15 //=====================================================================
16 //=====================================================================
17 class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog
20 WxGimmickReaderDialog();
21 WxGimmickReaderDialog(wxWindow *parent,
23 const std::string i_namedescp ,
24 const std::string i_namedb ,
28 int image_min_dim = GIMMICK_2D_IMAGE_SELECTION,
29 int image_max_dim = GIMMICK_3D_IMAGE_SELECTION,
30 int output_dim = NATIVE,
33 boost::shared_ptr<Gimmick> GetGimmick() { return mGimmick; }
34 // typedef WxGimmick ViewType;
35 typedef WxGimmickView::EventType EventType;
37 ~WxGimmickReaderDialog();
39 //===============================================================================================
41 //===============================================================================================
43 void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
44 { mView->GetSelectedImages(s, dim); }
46 void GetSelectedImagesInVector(std::vector<vtkImageData*>& s, int dim)
47 { mView->GetSelectedImagesInVector(s, dim); }
49 void GetSelectedFiles(std::vector<std::string>& s)
50 { mView->GetSelectedFiles(s); }
52 void OnSelChanged(EventType& event);
53 void OnContextualMenu(EventType& event);
54 void OnMenuTest(wxCommandEvent& event);
55 void OnValid(bool valid);
56 void OnExit(){ mView->StopPlayer(); }
57 // void OnButtonOk(wxCommandEvent& event);
58 // void OnButtonCancel(wxCommandEvent& event);
62 boost::shared_ptr<Gimmick> mGimmick;
66 wxButton* mCancelButton;
67 wxBoxSizer *mtopsizer;
76 }; // class WxGimmickReaderDialog
77 //=====================================================================
79 } // EO namespace creaImageIO