]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageCutByAxis.h
#3500 bug ImageCutByAxis
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageCutByAxis.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 __bbcreaVtkImageCutByAxis_h_INCLUDED__
5 #define __bbcreaVtkImageCutByAxis_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include <vtkVersionMacros.h>
11 #include <vtkImageData.h>
12
13 namespace bbcreaVtk
14 {
15
16 class bbcreaVtk_EXPORT ImageCutByAxis
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(ImageCutByAxis,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(In,vtkImageData*);
25   BBTK_DECLARE_INPUT(InsideVol,bool);
26   BBTK_DECLARE_INPUT(Point,std::vector<int>);
27   BBTK_DECLARE_INPUT(Type,std::string);
28   BBTK_DECLARE_INPUT(TypeOrientation,int);
29   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30   BBTK_PROCESS(Process);
31   void Process();
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageCutByAxis,bbtk::AtomicBlackBox);
38         BBTK_NAME("ImageCutByAxis");
39         BBTK_AUTHOR("InfoDev");
40         BBTK_DESCRIPTION("No Description.");
41         BBTK_CATEGORY("empty");
42         BBTK_INPUT(ImageCutByAxis,In,"Input image",vtkImageData*,"");
43         BBTK_INPUT(ImageCutByAxis,Type,"(default x-y-z+)  missing all options:x y z  x+y+  x-y+ x+y- x-y-  y+z+  y+z- y-z+ y-z-  x+z+  x+z- x-z+ x-z-   x+y+z+ x-y+z+ x+y-z+ x+y+z- x-y-z+ x-y+z- x+y-z- x-y-z-",std::string,"");
44         BBTK_INPUT(ImageCutByAxis,InsideVol,"Inside volume",bool,"");
45         BBTK_INPUT(ImageCutByAxis,Point,"First input",std::vector<int>,"");
46         BBTK_INPUT(ImageCutByAxis,TypeOrientation,"TypeOrientation (default 0) 0=XY 1=XZ 2=YZ 3=XYZ",int,"");
47         BBTK_OUTPUT(ImageCutByAxis,Out,"Output image",vtkImageData*,"");
48 BBTK_END_DESCRIBE_BLACK_BOX(ImageCutByAxis);
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 // EO namespace bbcreaVtk
54
55 #endif // __bbcreaVtkImageCutByAxis_h_INCLUDED__
56