1 #ifndef __creaImageIOWxGimmickPanel_h_INCLUDED__
2 #define __creaImageIOWxGimmickPanel_h_INCLUDED__
6 // Signal/slot mechanism for progress events
7 #include <boost/signal.hpp>
8 #include <boost/bind.hpp>
10 #include <creaImageIOWxGimmickView.h>
18 //=====================================================================
19 //=====================================================================
20 class CREAIMAGEIO_EXPORT WxGimmickPanel : public wxPanel
24 WxGimmickPanel(wxWindow *parent,
32 //=============================================
33 typedef boost::signal<void (bool)> SendImageSignalType;
34 typedef SendImageSignalType::slot_function_type SendImageCallbackType;
35 //=============================================
37 //==================================================================
38 /// Adds the function f to the list of functions to call
39 /// when the addition progresses.
40 /// f is of type ProgressCallbackType which is:
41 /// void (*ProgressCallbackType)(Progress&)
42 /// To pass a member function 'f' of an instance 'c' of a class 'C'
43 /// as callback you have to 'bind' it, i.e. call:
44 /// ConnectSendImageObserver ( boost::bind( &C::f , c, _1 ) );
45 void ConnectSendImageObserver(SendImageCallbackType callback);
46 //==================================================================
48 //===============================================================================================
50 //===============================================================================================
52 void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
53 { mView->GetSelectedImages(s, dim); }
55 void OnSelectedImage(bool t);
57 void AddImagesToDB(std::string dir);
59 // DECLARE_EVENT_TABLE();
65 ///The sendImage signal
66 SendImageSignalType mSendImageSignal;
68 }; // class WxGimmickPanel
69 //=====================================================================
72 } // EO namespace creaImageIO