X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOWxGimmickReaderDialog.h;h=0ed3d4ae521295ca9d4d8c8d0523477e1b570bd9;hb=e88bcb692a9d4bcc2ce1618a27d4fcb275a32a70;hp=9526d374e428c154acc08f203113161dfc07a8a4;hpb=633701590bade8ba6d0f8c7b37c033596b4b2c2a;p=creaImageIO.git diff --git a/src2/creaImageIOWxGimmickReaderDialog.h b/src2/creaImageIOWxGimmickReaderDialog.h index 9526d37..0ed3d4a 100644 --- a/src2/creaImageIOWxGimmickReaderDialog.h +++ b/src2/creaImageIOWxGimmickReaderDialog.h @@ -5,15 +5,16 @@ #include #include - +#include "wx/wx.h" namespace creaImageIO { /** * \ingroup GUI */ + //===================================================================== //===================================================================== - class /*CREAIMAGEIO_EXPORT*/ WxGimmickReaderDialog : public wxDialog + class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog { public: WxGimmickReaderDialog(); @@ -22,8 +23,9 @@ namespace creaImageIO wxString title, const wxPoint& pos, const wxSize& size, - int image_min_type = GIMMICK_2D_IMAGE_SELECTION, - int image_max_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; } @@ -36,8 +38,7 @@ namespace creaImageIO //=============================================================================================== //Image Selection //=============================================================================================== - vtkImageData* GetSelectedImage(int dim) - { return mView->GetSelectedImage(dim); } + void GetSelectedImages(std::vector& s, int dim) { mView->GetSelectedImages(s, dim); } @@ -48,11 +49,11 @@ namespace creaImageIO void OnSelChanged(EventType& event); void OnContextualMenu(EventType& event); void OnMenuTest(wxCommandEvent& event); - // void OnValid(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; @@ -70,11 +71,11 @@ namespace creaImageIO }; // class WxGimmickReaderDialog //===================================================================== - - + } // EO namespace creaImageIO + #endif // USE_WIDGETS // EOF #endif