]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.h
fc7945d81e13f629f347ea768eda21056a9f20ae
[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(BelowAboveRangeTransparence,bool);
29   BBTK_DECLARE_INPUT(Range,std::vector<double> );
30   BBTK_DECLARE_OUTPUT(Color, std::vector<double> );
31   BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
32   BBTK_PROCESS(Process);
33   void Process();
34
35 //  bool                                                firsttime;
36   vtkScalarsToColors            *_scalarstocolors;
37   vtkColorTransferFunction      *_volumeColor; 
38
39
40 //===== 
41 // 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)
42 //===== 
43 };
44
45 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ScalarsToColors,bbtk::AtomicBlackBox);
46   BBTK_NAME("ScalarsToColors");
47   BBTK_AUTHOR("Info-Dev");
48   BBTK_DESCRIPTION("No Description.");
49   BBTK_CATEGORY("empty");
50   BBTK_INPUT(ScalarsToColors,Type,"(0 default)  0=JET(transparent for first element and middle range);  100=As 0 without transparace; 1=RangeTable (transparent for first element); 101=As 1 without transparace;  2=DirectionColorRGB;   3=ComponentColorRGB[0-255]",int,"");
51   BBTK_INPUT(ScalarsToColors,ScalarValue,"Scalar value -> Color OUT",double,"");
52   BBTK_INPUT(ScalarsToColors,BelowAboveRangeTransparence,"(default true) Transparence for Before and After range true/false",bool,"");
53   BBTK_INPUT(ScalarsToColors,Range,"Min Max range",std::vector<double>,"");
54   BBTK_OUTPUT(ScalarsToColors,Color,"Color",std::vector<double>,"");
55   BBTK_OUTPUT(ScalarsToColors,LookupTable,"LookupTable",vtkScalarsToColors*,"");
56 BBTK_END_DESCRIBE_BLACK_BOX(ScalarsToColors);
57 //===== 
58 // 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)
59 //===== 
60 }
61 // EO namespace bbcreaVtk
62
63 #endif // __bbcreaVtkScalarsToColors_h_INCLUDED__
64