]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuColorBar.h
#3262 creaMaracasVisu Feature New Normal - Export LookupTable fron ColorLayerImageV...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuColorBar.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 #ifdef _USE_WXWIDGETS_
27 #ifndef __bbcreaMaracasVisuColorBar_h_INCLUDED__
28 #define __bbcreaMaracasVisuColorBar_h_INCLUDED__
29 #include "bbtkWxBlackBox.h"
30
31 #include "bbcreaMaracasVisuPackage.h"
32 #include "pColorBar.h"
33
34
35 namespace bbcreaMaracasVisu
36 {
37
38 class /*BBTK_EXPORT*/ ColorBar
39  : 
40    public bbtk::WxBlackBox
41 {
42   BBTK_BLACK_BOX_INTERFACE(ColorBar,bbtk::WxBlackBox);
43     BBTK_DECLARE_INPUT(Orientation, int );
44         BBTK_DECLARE_INPUT(InW, int );
45         BBTK_DECLARE_INPUT(InH, int );
46         BBTK_DECLARE_INPUT(InMax, int );
47         BBTK_DECLARE_INPUT(InMin, int );
48         BBTK_DECLARE_INPUT(Reds, std::vector<int> );
49         BBTK_DECLARE_INPUT(Greens, std::vector<int> );
50         BBTK_DECLARE_INPUT(Blues, std::vector<int> );
51         BBTK_DECLARE_INPUT(Values, std::vector<int> );
52   BBTK_PROCESS(Process);
53   void Process();
54   BBTK_CREATE_WIDGET(CreateWidget);
55   void CreateWidget(wxWindow*);
56
57   private:
58         pColorBar *mwxwidget;
59 };
60
61 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColorBar,bbtk::WxBlackBox);
62 BBTK_NAME("ColorBar");
63 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
64 BBTK_DESCRIPTION("Degrade Color Bar Window");
65 //BBTK_CATEGORY("__CategoryBlackBox__");
66   BBTK_INPUT(ColorBar,Orientation,"Orientation ", int,"");
67   BBTK_INPUT(ColorBar,InW,"Width ", int,"");
68   BBTK_INPUT(ColorBar,InH,"Height ", int,"");
69   BBTK_INPUT(ColorBar,InMax,"Max value ", int,"" );
70   BBTK_INPUT(ColorBar,InMin, "Min value ",int,"" );
71   BBTK_INPUT(ColorBar,Reds, "Reds ",std::vector<int>,"");
72   BBTK_INPUT(ColorBar,Greens, "Greens ",std::vector<int>,"");
73   BBTK_INPUT(ColorBar,Blues, "Blues ",std::vector<int>,"");
74   BBTK_INPUT(ColorBar,Values, "Values ",std::vector<int>,"");
75 BBTK_END_DESCRIBE_BLACK_BOX(ColorBar);
76 }
77 // EO namespace bbcreaMaracasVisu
78
79 #endif // __bbcreaMaracasVisuColorBar_h_INCLUDED__
80 #endif // _USE_WXWIDGETS_
81