]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkSurfaceTexture.h
2ad306296c4d0c773080140cfaa3492bd2d39d09
[bbtk.git] / packages / vtk / src / bbvtkSurfaceTexture.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 __bbvtkSurfaceTexture_h_INCLUDED__
5 #define __bbvtkSurfaceTexture_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkPolyData.h"
11 #include "vtkImageData.h"
12 #include <vtkLookupTable.h>
13 #include <vtkWindowLevelLookupTable.h>
14 #include <vtkLinearTransform.h>
15
16 namespace bbvtk
17 {
18
19 class bbvtk_EXPORT SurfaceTexture
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(SurfaceTexture,bbtk::AtomicBlackBox);
24 //===== 
25 // 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 //===== 
27         BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
28         BBTK_DECLARE_INPUT(Image,vtkImageData*);
29         BBTK_DECLARE_INPUT(ColorType,int);
30         BBTK_DECLARE_INPUT(ColorLevel,double);
31         BBTK_DECLARE_INPUT(ColorWindow,double);
32         BBTK_DECLARE_INPUT(Transform,vtkLinearTransform*);
33 //  BBTK_DECLARE_OUTPUT(Out,double);
34   BBTK_PROCESS(Process);
35   void Process();
36
37
38         bool                            firsttime;
39         vtkUnsignedCharArray            *colors;
40         vtkLookupTable                  *colorLookupTable;
41         vtkWindowLevelLookupTable       *colorLookupTableWL;
42
43 //===== 
44 // 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)
45 //===== 
46 };
47
48 BBTK_BEGIN_DESCRIBE_BLACK_BOX(SurfaceTexture,bbtk::AtomicBlackBox);
49 BBTK_NAME("SurfaceTexture");
50 BBTK_AUTHOR("Info-Dev");
51 BBTK_DESCRIPTION("Surface texture");
52 BBTK_CATEGORY("");
53         BBTK_INPUT(SurfaceTexture,Mesh,"Mesh topology",vtkPolyData*,"");
54         BBTK_INPUT(SurfaceTexture,Image,"Image Reference",vtkImageData*,"");
55         BBTK_INPUT(SurfaceTexture,ColorType,"Color Type (default 0) 0 Colors(JET), 1 ColorWindowLevel",int,"");
56         BBTK_INPUT(SurfaceTexture,ColorLevel,"Color Level (default 500)",double,"");
57         BBTK_INPUT(SurfaceTexture,ColorWindow,"ColorWindow (default 500)",double,"");
58         BBTK_INPUT(SurfaceTexture,Transform,"vtk Linear Transform (default NULL)",vtkLinearTransform*,"");
59 //  BBTK_OUTPUT(SurfaceTexture,Out,"First output",double,"");
60
61 BBTK_END_DESCRIBE_BLACK_BOX(SurfaceTexture);
62 //===== 
63 // 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)
64 //===== 
65 }
66 // EO namespace bbvtk
67
68 #endif // __bbvtkSurfaceTexture_h_INCLUDED__
69