]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuColorBar.h
The bbtk folder with the maracasvisu bbtk package was added to the creaMaracasVisu...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuColorBar.h
1 #ifdef _USE_WXWIDGETS_
2 #ifndef __bbmaracasvisuColorBar_h_INCLUDED__
3 #define __bbmaracasvisuColorBar_h_INCLUDED__
4 #include "bbtkWxBlackBox.h"
5
6 #include "bbmaracasvisuColorBar.h"
7 #include "bbmaracasvisuPackage.h"
8 #include "pColorBar.h"
9
10
11 namespace bbmaracasvisu
12 {
13
14 class /*BBTK_EXPORT*/ ColorBar
15  : 
16    public bbtk::WxBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(ColorBar,bbtk::WxBlackBox);
19 //==================================================================
20 /// User callback called in the box contructor
21 virtual void bbUserConstructor();
22 /// User callback called in the box copy constructor
23 virtual void bbUserCopyConstructor();
24 /// User callback called in the box destructor
25 virtual void bbUserDestructor();
26 //==================================================================
27     BBTK_DECLARE_INPUT(Orientation, int );
28         BBTK_DECLARE_INPUT(InW, int );
29         BBTK_DECLARE_INPUT(InH, int );
30         BBTK_DECLARE_INPUT(InMax, int );
31         BBTK_DECLARE_INPUT(InMin, int );
32         BBTK_DECLARE_INPUT(Reds, std::vector<int> );
33         BBTK_DECLARE_INPUT(Greens, std::vector<int> );
34         BBTK_DECLARE_INPUT(Blues, std::vector<int> );
35         BBTK_DECLARE_INPUT(Values, std::vector<int> );
36   BBTK_PROCESS(Process);
37   void Process();
38   BBTK_CREATE_WIDGET(CreateWidget);
39   void CreateWidget();
40
41   private:
42         pColorBar *mwxwidget;
43 };
44
45 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColorBar,bbtk::WxBlackBox);
46 BBTK_NAME("ColorBar");
47 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
48 BBTK_DESCRIPTION("Degrade Color Bar Window");
49 //BBTK_CATEGORY("__CategoryBlackBox__");
50   BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
51   BBTK_DESCRIPTION("Degrade Color Bar Window");
52   BBTK_INPUT(ColorBar,Orientation,"Orientation ", int,"");
53   BBTK_INPUT(ColorBar,InW,"Width ", int,"");
54   BBTK_INPUT(ColorBar,InH,"Height ", int,"");
55   BBTK_INPUT(ColorBar,InMax,"Max value ", int,"" );
56   BBTK_INPUT(ColorBar,InMin, "Min value ",int,"" );
57   BBTK_INPUT(ColorBar,Reds, "Reds ",std::vector<int>,"");
58   BBTK_INPUT(ColorBar,Greens, "Greens ",std::vector<int>,"");
59   BBTK_INPUT(ColorBar,Blues, "Blues ",std::vector<int>,"");
60   BBTK_INPUT(ColorBar,Values, "Values ",std::vector<int>,"");
61 BBTK_END_DESCRIBE_BLACK_BOX(ColorBar);
62 }
63 // EO namespace bbmaracasvisu
64
65 #endif // __bbmaracasvisuColorBar_h_INCLUDED__
66 #endif // _USE_WXWIDGETS_
67