]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.h
3511 bbcreaVtkPointPicker bug init point
[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_INPUT(WindowColorLevel,std::vector<double> );
31   BBTK_DECLARE_OUTPUT(Color, std::vector<double> );
32   BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
33   BBTK_PROCESS(Process);
34   void Process();
35
36 //  bool                                                firsttime;
37   vtkScalarsToColors            *_scalarstocolors;
38   vtkColorTransferFunction      *_volumeColor; 
39
40
41 //===== 
42 // 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)
43 //===== 
44 };
45
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ScalarsToColors,bbtk::AtomicBlackBox);
47   BBTK_NAME("ScalarsToColors");
48   BBTK_AUTHOR("Info-Dev");
49   BBTK_DESCRIPTION("No Description.");
50   BBTK_CATEGORY("empty");
51   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,"");
52   BBTK_INPUT(ScalarsToColors,ScalarValue,"Scalar value -> Color OUT",double,"");
53   BBTK_INPUT(ScalarsToColors,BelowAboveRangeTransparence,"(default true) Transparence for Before and After range true/false",bool,"");
54   BBTK_INPUT(ScalarsToColors,Range,"(default empty)  [min,max]    use Range or WindowColorLevel",std::vector<double>,"");
55   BBTK_INPUT(ScalarsToColors,WindowColorLevel,"default empty [window, color]    use Range or WindowColorLevel",std::vector<double>,"");
56   BBTK_OUTPUT(ScalarsToColors,Color,"Color",std::vector<double>,"");
57   BBTK_OUTPUT(ScalarsToColors,LookupTable,"LookupTable",vtkScalarsToColors*,"");
58 BBTK_END_DESCRIBE_BLACK_BOX(ScalarsToColors);
59 //===== 
60 // 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)
61 //===== 
62 }
63 // EO namespace bbcreaVtk
64
65 #endif // __bbcreaVtkScalarsToColors_h_INCLUDED__
66