]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.h
#2712 creaVtk Feature New Normal - new ScalarBarActor ScalarToColors box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkScalarsToColors.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbcreaVtkScalarsToColors_h_INCLUDED__
5 #define __bbcreaVtkScalarsToColors_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include <vtkScalarsToColors.h>
11 #include <vtkLookupTable.h>
12
13 namespace bbcreaVtk
14 {
15
16 class bbcreaVtk_EXPORT ScalarsToColors
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(ScalarsToColors,bbtk::AtomicBlackBox);
21 //===== 
22 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
23 //===== 
24   BBTK_DECLARE_INPUT(Type,int);
25   BBTK_DECLARE_INPUT(ScalarValue,double);
26   BBTK_DECLARE_INPUT(Range,std::vector<double> );
27   BBTK_DECLARE_OUTPUT(Color, std::vector<double> );
28   BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
29   BBTK_PROCESS(Process);
30   void Process();
31
32   bool firsttime;
33   vtkLookupTable *_colorLookupTable;
34
35
36 //===== 
37 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ScalarsToColors,bbtk::AtomicBlackBox);
42   BBTK_NAME("ScalarsToColors");
43   BBTK_AUTHOR("Info-Dev");
44   BBTK_DESCRIPTION("No Description.");
45   BBTK_CATEGORY("empty");
46   BBTK_INPUT(ScalarsToColors,Type,"Type of color table",int,"");
47   BBTK_INPUT(ScalarsToColors,ScalarValue,"Scalar value",double,"");
48   BBTK_INPUT(ScalarsToColors,Range,"Min Max range",std::vector<double>,"");
49   BBTK_OUTPUT(ScalarsToColors,Color,"Color",std::vector<double>,"");
50   BBTK_OUTPUT(ScalarsToColors,LookupTable,"LookupTable",vtkScalarsToColors*,"");
51 BBTK_END_DESCRIBE_BLACK_BOX(ScalarsToColors);
52 //===== 
53 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
54 //===== 
55 }
56 // EO namespace bbcreaVtk
57
58 #endif // __bbcreaVtkScalarsToColors_h_INCLUDED__
59