]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h
#2945 creaVtk Feature New Normal - ImageSlab box in creaVtk package
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageSlab.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 __bbcreaVtkImageSlab_h_INCLUDED__
5 #define __bbcreaVtkImageSlab_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include <vtkImageData.h>
11 #include <vtkImageSlab.h>
12
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT ImageSlab
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(ImageSlab,bbtk::AtomicBlackBox);
22 //===== 
23 // 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)
24 //===== 
25   BBTK_DECLARE_INPUT(In,vtkImageData*);
26   BBTK_DECLARE_INPUT(Type,int);
27   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
28   BBTK_PROCESS(Process);
29
30         bool firsttime;
31         vtkImageSlab *imageSlab;
32
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(ImageSlab,bbtk::AtomicBlackBox);
40   BBTK_NAME("ImageSlab");
41   BBTK_AUTHOR("InfoDev");
42   BBTK_DESCRIPTION("No Description.");
43   BBTK_CATEGORY("empty");
44
45   BBTK_INPUT(ImageSlab,In,"Input image",vtkImageData*,"");
46   BBTK_INPUT(ImageSlab,Type,"(0 default) 0 Mean, 1 Sum, 2 Min, 3 Max",int,"");
47
48   BBTK_OUTPUT(ImageSlab,Out,"Output image",vtkImageData*,"");
49
50 BBTK_END_DESCRIBE_BLACK_BOX(ImageSlab);
51 //===== 
52 // 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)
53 //===== 
54 }
55 // EO namespace bbcreaVtk
56
57 #endif // __bbcreaVtkImageSlab_h_INCLUDED__
58