00001 #ifndef __creaImageIOWxGimmickPanel_h_INCLUDED__
00002 #define __creaImageIOWxGimmickPanel_h_INCLUDED__
00003
00004 #ifdef USE_WXWIDGETS
00005
00006
00007 #include <boost/signal.hpp>
00008 #include <boost/bind.hpp>
00009
00010 #include <creaImageIOWxGimmickView.h>
00011 #include <creaWx.h>
00012
00013 namespace creaImageIO
00014 {
00018
00019
00020 class CREAIMAGEIO_EXPORT WxGimmickPanel : public wxPanel
00021 {
00022 public:
00023 WxGimmickPanel();
00024 WxGimmickPanel(wxWindow *parent,
00025 const wxWindowID id,
00026 const wxPoint& pos,
00027 const wxSize& size,
00028 int threads = 0);
00029
00030 ~WxGimmickPanel();
00031
00032
00033 typedef boost::signal<void (bool)> SendImageSignalType;
00034 typedef SendImageSignalType::slot_function_type SendImageCallbackType;
00035
00036
00037
00045 void ConnectSendImageObserver(SendImageCallbackType callback);
00046
00047
00048
00049
00050
00051
00052 void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
00053 { mView->GetSelectedImages(s, dim); }
00054
00055 void OnSelectedImage(bool t);
00056
00057 void AddImagesToDB(std::string dir);
00058
00059
00060 private :
00061
00062 Gimmick* mGimmick;
00063 WxGimmickView* mView;
00064
00066 SendImageSignalType mSendImageSignal;
00067
00068 };
00069
00070
00071
00072 }
00073
00074
00075 #endif // USE_WIDGETS
00076
00077 #endif