]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageCutByAxis.h
3195 creaVtk Feature New Normal - new Boxes ImageCutByAxis LightKit MeshCutByAxis
[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 #include <vtkImageData.h>
10
11 namespace bbcreaVtk
12 {
13
14 class bbcreaVtk_EXPORT ImageCutByAxis
15  : 
16    public bbtk::AtomicBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(ImageCutByAxis,bbtk::AtomicBlackBox);
19 //===== 
20 // 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)
21 //===== 
22   BBTK_DECLARE_INPUT(In,vtkImageData*);
23   BBTK_DECLARE_INPUT(InsideVol,bool);
24   BBTK_DECLARE_INPUT(Point,std::vector<int>);
25   BBTK_DECLARE_INPUT(Type,std::string);
26   BBTK_DECLARE_INPUT(TypeOrientation,int);
27   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
28   BBTK_PROCESS(Process);
29   void Process();
30 //===== 
31 // 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)
32 //===== 
33 };
34
35 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageCutByAxis,bbtk::AtomicBlackBox);
36         BBTK_NAME("ImageCutByAxis");
37         BBTK_AUTHOR("InfoDev");
38         BBTK_DESCRIPTION("No Description.");
39         BBTK_CATEGORY("empty");
40         BBTK_INPUT(ImageCutByAxis,In,"Input image",vtkImageData*,"");
41         BBTK_INPUT(ImageCutByAxis,Type,"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,"");
42         BBTK_INPUT(ImageCutByAxis,InsideVol,"Inside volume",bool,"");
43         BBTK_INPUT(ImageCutByAxis,Point,"First input",std::vector<int>,"");
44         BBTK_INPUT(ImageCutByAxis,TypeOrientation,"TypeOrientation (default 0) 0=XY 1=XZ 2=YZ",int,"");
45         BBTK_OUTPUT(ImageCutByAxis,Out,"Output image",vtkImageData*,"");
46 BBTK_END_DESCRIBE_BLACK_BOX(ImageCutByAxis);
47 //===== 
48 // 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)
49 //===== 
50 }
51 // EO namespace bbcreaVtk
52
53 #endif // __bbcreaVtkImageCutByAxis_h_INCLUDED__
54