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