]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkInversCrop.h
#3013 BBTK Feature New Normal - package vtk box InvertCrop Type option
[bbtk.git] / packages / vtk / src / bbvtkInversCrop.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 __bbvtkInversCrop_h_INCLUDED__
5 #define __bbvtkInversCrop_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10
11 #include "vtkImageData.h"
12
13 namespace bbvtk
14 {
15
16 class bbvtk_EXPORT InversCrop
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(InversCrop,bbtk::AtomicBlackBox);
21 //===== 
22 // 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)
23 //===== 
24   BBTK_DECLARE_INPUT(Type,int);
25   BBTK_DECLARE_INPUT(ImageFix,vtkImageData*);
26   BBTK_DECLARE_INPUT(ImageMove,vtkImageData*);
27   BBTK_DECLARE_INPUT(Origin,std::vector<int>);
28   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
29   BBTK_PROCESS(Process);
30   void Process();
31
32   vtkImageData *_imageoutput;
33 //===== 
34 // 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)
35 //===== 
36 };
37  
38 BBTK_BEGIN_DESCRIBE_BLACK_BOX(InversCrop,bbtk::AtomicBlackBox);
39   BBTK_NAME("InversCrop");
40   BBTK_AUTHOR("InfoDev");
41   BBTK_DESCRIPTION("Invers Crop, Both images had to have the same format");
42   BBTK_CATEGORY("");
43
44   BBTK_INPUT(InversCrop,Type,"(default 0) 0=Create image for de result FixImage+MoveImage, 1=Use the FixImage as output",int,"");
45   BBTK_INPUT(InversCrop,ImageFix,"Fix Image (necesary). Need same format of ImageMove",vtkImageData*,"");
46   BBTK_INPUT(InversCrop,ImageMove,"Move Image (necesary). Need same format of ImageFix",vtkImageData*,"");
47   BBTK_INPUT(InversCrop,Origin,"Position to be put de Move Image (default 0,0,0 )",std::vector<int>,"");
48
49   BBTK_OUTPUT(InversCrop,Out,"First output",vtkImageData*,"");
50
51 BBTK_END_DESCRIBE_BLACK_BOX(InversCrop);
52 //===== 
53 // 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)
54 //===== 
55 }
56 // EO namespace bbvtk
57
58 #endif // __bbvtkInversCrop_h_INCLUDED__
59