]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageExtractComponents.h
#3448 creaVtk Feature New Normal - ExtractComponents in vector
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageExtractComponents.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 __bbcreaVtkImageExtractComponents_h_INCLUDED__
5 #define __bbcreaVtkImageExtractComponents_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10 #include <vector>
11
12 #include <vtkImageData.h>
13 #include <vtkImageExtractComponents.h>
14
15 namespace bbcreaVtk
16 {
17
18 class bbcreaVtk_EXPORT ImageExtractComponents
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(ImageExtractComponents,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(Component0,int);
28   BBTK_DECLARE_INPUT(Component1,int);
29   BBTK_DECLARE_INPUT(Component2,int);
30   BBTK_DECLARE_INPUT(Component3,int);
31   BBTK_DECLARE_INPUT(Type,int);
32   BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
33   BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
34   BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
35   BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
36   BBTK_DECLARE_OUTPUT(LstOut,std::vector< vtkImageData* >);
37
38   BBTK_PROCESS(Process);
39   void Process();
40
41
42         vtkImageExtractComponents* IEC0;
43         vtkImageExtractComponents* IEC1;
44         vtkImageExtractComponents* IEC2;
45         vtkImageExtractComponents* IEC3;
46         std::vector<vtkImageExtractComponents*> lstIEC;
47         std::vector<vtkImageData*> lstOut;
48
49 //===== 
50 // 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)
51 //===== 
52 };
53
54 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageExtractComponents,bbtk::AtomicBlackBox);
55   BBTK_NAME("ImageExtractComponents");
56   BBTK_AUTHOR("InfoDev");
57   BBTK_DESCRIPTION("No Description.");
58   BBTK_CATEGORY("empty");
59
60   BBTK_INPUT(ImageExtractComponents,In,"Input image",vtkImageData*,"");
61   BBTK_INPUT(ImageExtractComponents,Component0,"Component 0 (default -1)",int,"");
62   BBTK_INPUT(ImageExtractComponents,Component1,"Component 1 (default -1)",int,"");
63   BBTK_INPUT(ImageExtractComponents,Component2,"Component 2 (default -1)",int,"");
64   BBTK_INPUT(ImageExtractComponents,Component3,"Component 3 (default -1)",int,"");
65   BBTK_INPUT(ImageExtractComponents,Type,"(default 0) 0=Out comp.0..3 ,  1=Out List of all components",int,"");
66
67   BBTK_OUTPUT(ImageExtractComponents,Out0,"Output image 0",vtkImageData*,"");
68   BBTK_OUTPUT(ImageExtractComponents,Out1,"Output image 1",vtkImageData*,"");
69   BBTK_OUTPUT(ImageExtractComponents,Out2,"Output image 2",vtkImageData*,"");
70   BBTK_OUTPUT(ImageExtractComponents,Out3,"Output image 3",vtkImageData*,"");
71   BBTK_OUTPUT(ImageExtractComponents,LstOut,"List of all components by single images",std::vector< vtkImageData* >,"");
72
73  BBTK_END_DESCRIBE_BLACK_BOX(ImageExtractComponents);
74 //===== 
75 // 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)
76 //===== 
77
78
79 } // EO namespace bbcreaVtk
80
81 #endif // __bbcreaVtkImageExtractComponents_h_INCLUDED__
82