]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkAutoCrop.h
f2750c7289b82954416e0597333b552b214e994b
[bbtk.git] / packages / vtk / src / bbvtkAutoCrop.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 __bbvtkAutoCrop_h_INCLUDED__
5 #define __bbvtkAutoCrop_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkImageData.h"
11
12 namespace bbvtk
13 {
14
15 class bbvtk_EXPORT AutoCrop
16  : 
17    public bbtk::AtomicBlackBox
18 {
19   BBTK_BLACK_BOX_INTERFACE(AutoCrop,bbtk::AtomicBlackBox);
20 //===== 
21 // 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)
22 //===== 
23   BBTK_DECLARE_INPUT(In,vtkImageData*);
24   BBTK_DECLARE_INPUT(Type,int);
25   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
26   BBTK_PROCESS(Process);
27   void Process();
28         
29         vtkImageData *_newImage;
30 //===== 
31 // 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)
32 //===== 
33 };
34
35 BBTK_BEGIN_DESCRIBE_BLACK_BOX(AutoCrop,bbtk::AtomicBlackBox);
36         BBTK_NAME("AutoCrop");
37         BBTK_AUTHOR("Info-Dev");
38         BBTK_DESCRIPTION("Automatique cropping of the image");
39         BBTK_CATEGORY("Filter");
40         BBTK_INPUT(AutoCrop,In,"Input image",vtkImageData*,"");
41         BBTK_INPUT(AutoCrop,Type,"Type of cropping   (default 0)  0=power of two dimensions",int,"");
42         BBTK_OUTPUT(AutoCrop,Out,"Output image",vtkImageData*,"");
43 BBTK_END_DESCRIBE_BLACK_BOX(AutoCrop);
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 // EO namespace bbvtk
49
50 #endif // __bbvtkAutoCrop_h_INCLUDED__
51