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