]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuHistogramView.h
BUG macOs
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuHistogramView.h
1 #ifdef _USE_WXWIDGETS_
2 #ifndef __bbcreaMaracasVisuHistogramView_h_INCLUDED__
3 #define __bbcreaMaracasVisuHistogramView_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
5
6 #include "vtkImageData.h"
7 #include "Histogram.h"
8
9
10 namespace bbcreaMaracasVisu
11 {
12
13 class /*BBTK_EXPORT*/ HistogramView
14  : 
15    public bbtk::WxBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(HistogramView,bbtk::WxBlackBox);
18 //==================================================================
19 /// User callback called in the box contructor
20 virtual void bbUserConstructor();
21 /// User callback called in the box copy constructor
22 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
23 /// User callback called in the box destructor
24 virtual void bbUserDestructor();
25 //==================================================================
26         BBTK_DECLARE_INPUT(In, vtkImageData *);
27   BBTK_PROCESS(Process);
28   void Process();
29   BBTK_CREATE_WIDGET(CreateWidget);
30   void CreateWidget(wxWindow*);
31         
32 private:
33         bool            firsttime;
34         Histogram       *histogram_wxwidget;
35         wxPanel         *wxpanel;
36 };
37
38 BBTK_BEGIN_DESCRIBE_BLACK_BOX(HistogramView,bbtk::WxBlackBox);
39 BBTK_NAME("HistogramView");
40 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
41 BBTK_DESCRIPTION("Histogram window");
42 BBTK_CATEGORY("viewer");
43   BBTK_INPUT(HistogramView,In,"Input image",vtkImageData*,"");
44 BBTK_END_DESCRIBE_BLACK_BOX(HistogramView);
45 }
46 // EO namespace bbcreaMaracasVisu
47
48 #endif // __bbcreaMaracasVisuHistogramView_h_INCLUDED__
49 #endif // _USE_WXWIDGETS_
50