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)
4 #ifndef __bbcreaVtkScalarsToColors_h_INCLUDED__
5 #define __bbcreaVtkScalarsToColors_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include <vtkScalarsToColors.h>
11 #include <vtkLookupTable.h>
12 #include <vtkColorTransferFunction.h>
18 class bbcreaVtk_EXPORT ScalarsToColors
20 public bbtk::AtomicBlackBox
22 BBTK_BLACK_BOX_INTERFACE(ScalarsToColors,bbtk::AtomicBlackBox);
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)
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);
35 vtkScalarsToColors *_scalarstocolors;
36 vtkColorTransferFunction *_volumeColor;
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)
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) 0=JET 1=RangeTable 2=DirectionColorRGB 3=ComponentColorRGB[0-255]",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);
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)
59 // EO namespace bbcreaVtk
61 #endif // __bbcreaVtkScalarsToColors_h_INCLUDED__