]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.h
3195 creaVtk Feature New Normal - new Boxes ImageCutByAxis LightKit MeshCutByAxis
[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 #include <vtkColorTransferFunction.h>
13
14
15 namespace bbcreaVtk
16 {
17
18 class bbcreaVtk_EXPORT ScalarsToColors
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(ScalarsToColors,bbtk::AtomicBlackBox);
23 //===== 
24 // 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)
25 //===== 
26   BBTK_DECLARE_INPUT(Type,int);
27   BBTK_DECLARE_INPUT(ScalarValue,double);
28   BBTK_DECLARE_INPUT(Range,std::vector<double> );
29   BBTK_DECLARE_OUTPUT(Color, std::vector<double> );
30   BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
31   BBTK_PROCESS(Process);
32   void Process();
33
34   bool                                          firsttime;
35   vtkLookupTable                        *_colorLookupTable;
36   vtkColorTransferFunction      *_volumeColor; 
37
38
39 //===== 
40 // 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)
41 //===== 
42 };
43
44 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ScalarsToColors,bbtk::AtomicBlackBox);
45   BBTK_NAME("ScalarsToColors");
46   BBTK_AUTHOR("Info-Dev");
47   BBTK_DESCRIPTION("No Description.");
48   BBTK_CATEGORY("empty");
49   BBTK_INPUT(ScalarsToColors,Type,"0 (default) Type of color table",int,"");
50   BBTK_INPUT(ScalarsToColors,ScalarValue,"Scalar value -> Color OUT",double,"");
51   BBTK_INPUT(ScalarsToColors,Range,"Min Max range",std::vector<double>,"");
52   BBTK_OUTPUT(ScalarsToColors,Color,"Color",std::vector<double>,"");
53   BBTK_OUTPUT(ScalarsToColors,LookupTable,"LookupTable",vtkScalarsToColors*,"");
54 BBTK_END_DESCRIBE_BLACK_BOX(ScalarsToColors);
55 //===== 
56 // 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)
57 //===== 
58 }
59 // EO namespace bbcreaVtk
60
61 #endif // __bbcreaVtkScalarsToColors_h_INCLUDED__
62