]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.h
#3339 creaVtk Bug New Normal - Memory leak CreateMeshFromPoints PolyDataToImageData
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataToImageData.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 __bbcreaVtkPolyDataToImageData_h_INCLUDED__
5 #define __bbcreaVtkPolyDataToImageData_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkPolyData.h"
12 #include "vtkImageData.h"
13 #include "vtkPolyDataToImageStencil.h"
14 #include "vtkImageStencil.h"
15 #include "vtkCleanPolyData.h"
16 #include "vtkTriangleFilter.h"
17 #include "vtkExtractVOI.h"
18 #include "vtkExtractVOI.h"
19
20 namespace bbcreaVtk
21 {
22
23 class bbcreaVtk_EXPORT PolyDataToImageData
24  : 
25    public bbtk::AtomicBlackBox
26 {
27   BBTK_BLACK_BOX_INTERFACE(PolyDataToImageData,bbtk::AtomicBlackBox);
28 //===== 
29 // 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)
30 //===== 
31   BBTK_DECLARE_INPUT(InImage,vtkImageData*);
32   BBTK_DECLARE_INPUT(BackgroundValue,double);
33
34   BBTK_DECLARE_INPUT(InPolyData,vtkPolyData*);
35   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
36   BBTK_PROCESS(Process);
37   void Process();
38
39         vtkCleanPolyData                        *clean1;
40         vtkPolyDataToImageStencil       *dataToStencil;
41         vtkExtractVOI                           *extract;
42         vtkImageStencil                         *stencil;
43
44 //===== 
45 // 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)
46 //===== 
47 };
48
49 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataToImageData,bbtk::AtomicBlackBox);
50   BBTK_NAME("PolyDataToImageData");
51   BBTK_AUTHOR("InfoDev");
52   BBTK_DESCRIPTION("No Description.");
53   BBTK_CATEGORY("empty");
54
55   BBTK_INPUT(PolyDataToImageData,InImage,"Image to put Result",vtkImageData*,"");
56   BBTK_INPUT(PolyDataToImageData,BackgroundValue,"(default 255) Background value",double,"");
57   BBTK_INPUT(PolyDataToImageData,InPolyData,"Input vtkPolyData",vtkPolyData*,"");
58
59   BBTK_OUTPUT(PolyDataToImageData,Out,"Output vtkImageData",vtkImageData*,"");
60
61 BBTK_END_DESCRIBE_BLACK_BOX(PolyDataToImageData);
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 bbcreaVtk
67
68 #endif // __bbcreaVtkPolyDataToImageData_h_INCLUDED__
69