]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkVoxelGrid.h
#3274 creaVtk Feature New Normal - BooleanOperationPolyDataFilter BoxWidget ClipPol...
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkVoxelGrid.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 __bbcreaVtkVoxelGrid_h_INCLUDED__
5 #define __bbcreaVtkVoxelGrid_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11
12 #include "vtkDataObject.h"
13 #include "vtkPolyData.h"
14
15
16 namespace bbcreaVtk
17 {
18
19 class bbcreaVtk_EXPORT VoxelGrid
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(VoxelGrid,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(Image,vtkDataObject*);
28   BBTK_DECLARE_INPUT(DivisionsX,int);
29   BBTK_DECLARE_INPUT(DivisionsY,int);
30   BBTK_DECLARE_INPUT(DivisionsZ,int);
31   BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
32   BBTK_PROCESS(Process);
33   void Process();
34 //===== 
35 // 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)
36 //===== 
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VoxelGrid,bbtk::AtomicBlackBox);
40   BBTK_NAME("VoxelGrid");
41   BBTK_AUTHOR("InfoDev");
42   BBTK_DESCRIPTION("No Description.");
43   BBTK_CATEGORY("empty");
44
45   BBTK_INPUT(VoxelGrid,Image,"Input image",vtkDataObject*,"");
46   BBTK_INPUT(VoxelGrid,DivisionsX,"X divisions",int,"");
47   BBTK_INPUT(VoxelGrid,DivisionsY,"Y divisions",int,"");
48   BBTK_INPUT(VoxelGrid,DivisionsZ,"Z divisions",int,"");
49
50   BBTK_OUTPUT(VoxelGrid,Out,"Output vtkPolydata",vtkPolyData*,"");
51 BBTK_END_DESCRIBE_BLACK_BOX(VoxelGrid);
52 //===== 
53 // 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)
54 //===== 
55 }
56 // EO namespace bbcreaVtk
57
58 #endif // __bbcreaVtkVoxelGrid_h_INCLUDED__
59