1 #ifndef __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
2 #define __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
6 #include <creaImageIOWxGimmickView.h>
7 #include "creaImageIOSystem.h"
16 //=====================================================================
17 //=====================================================================
18 class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog
21 WxGimmickReaderDialog();
22 WxGimmickReaderDialog(wxWindow *parent,
24 const std::string i_namedescp ,
25 const std::string i_namedb ,
29 int image_min_dim = GIMMICK_2D_IMAGE_SELECTION,
30 int image_max_dim = GIMMICK_3D_IMAGE_SELECTION,
31 int output_dim = NATIVE,
34 boost::shared_ptr<Gimmick> GetGimmick() { return mGimmick; }
35 // typedef WxGimmick ViewType;
36 typedef WxGimmickView::EventType EventType;
38 ~WxGimmickReaderDialog();
40 //===============================================================================================
42 //===============================================================================================
44 void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
45 { mView->GetSelectedImages(s, dim); }
47 void GetSelectedImagesInVector(std::vector<vtkImageData*>& s, int dim)
48 { mView->GetSelectedImagesInVector(s, dim); }
50 // ----get selected files in an Output structure-------
51 // out: vector structure output < <img, info>, ... >
52 // i_attr: list of dicom tags to extract
53 // mult: information of one file or multiple files
54 // outmodel: xml-filename that specifies images order..(todo)
55 void getSelected(std::vector<OutStrGimmick> &outG,std::vector< std::string> i_attr, bool mult, const std::string outmodel)
57 mView->getSelectedFiles(outG, i_attr, mult, outmodel);
60 void GetSelectedFiles(std::vector<std::string>& s)
61 { mView->GetSelectedFiles(s); }
63 void OnSelChanged(EventType& event);
64 void OnContextualMenu(EventType& event);
65 void OnMenuTest(wxCommandEvent& event);
66 void OnValid(bool valid);
67 void OnExit(){ mView->StopPlayer(); }
69 // void OnButtonOk(wxCommandEvent& event);
70 // void OnButtonCancel(wxCommandEvent& event);
78 boost::shared_ptr<Gimmick> mGimmick;
82 wxButton* mCancelButton;
83 wxBoxSizer *mtopsizer;
92 }; // class WxGimmickReaderDialog
93 //=====================================================================
95 } // EO namespace creaImageIO