]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkExtractVtkImageFilter.h
8d8d2f51115e914720c3610a76f229f9c47378c2
[bbtk.git] / packages / vtk / src / bbvtkExtractVtkImageFilter.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 __bbvtkExtractVtkImageFilter_h_INCLUDED__
5 #define __bbvtkExtractVtkImageFilter_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10
11
12 #include <vtkImageData.h>
13 #include <vtkExtractVOI.h>
14
15 namespace bbvtk
16 {
17
18 class bbvtk_EXPORT ExtractVtkImageFilter
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(ExtractVtkImageFilter,bbtk::AtomicBlackBox);
23 //===== 
24 // 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)
25 //===== 
26     BBTK_DECLARE_INPUT(In,vtkImageData*);
27         BBTK_DECLARE_INPUT(Index,std::vector<int>);
28         BBTK_DECLARE_INPUT(Size,std::vector<int>);
29         BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30   BBTK_PROCESS(Process);
31   void Process();
32         
33 private:        
34         vtkExtractVOI*  _extract;
35
36 //===== 
37 // 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)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ExtractVtkImageFilter,bbtk::AtomicBlackBox);
42         BBTK_NAME("ExtractVtkImageFilter");
43         BBTK_AUTHOR("Info-Dev Creatis");
44         BBTK_DESCRIPTION("crop vtkImageData");
45         BBTK_CATEGORY("filter");
46         BBTK_INPUT(ExtractVtkImageFilter,In,"Input image",vtkImageData*,"");
47         BBTK_INPUT(ExtractVtkImageFilter,Index,"Index (start point of the region to be extracted)",std::vector<int>,"");
48         BBTK_INPUT(ExtractVtkImageFilter,Size,"Size of the region to be extracted",std::vector<int>,"");
49         BBTK_OUTPUT(ExtractVtkImageFilter,Out,"Output image",vtkImageData*,"");
50 BBTK_END_DESCRIBE_BLACK_BOX(ExtractVtkImageFilter);
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 bbvtk
56
57 #endif // __bbvtkExtractVtkImageFilter_h_INCLUDED__
58