X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkImageCutByAxis.h;fp=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkImageCutByAxis.h;h=1cf7640d99ed95933935df8ad835037c407be3ce;hb=d4d007ec0086a1145c20e922e87e0fee1b2f12d8;hp=0000000000000000000000000000000000000000;hpb=15673d41b054dd2543c80b842b3ebde8cea76eb6;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageCutByAxis.h b/bbtk_creaVtk_PKG/src/bbcreaVtkImageCutByAxis.h new file mode 100644 index 0000000..1cf7640 --- /dev/null +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageCutByAxis.h @@ -0,0 +1,54 @@ +//===== +// 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) +//===== +#ifndef __bbcreaVtkImageCutByAxis_h_INCLUDED__ +#define __bbcreaVtkImageCutByAxis_h_INCLUDED__ +#include "bbcreaVtk_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" +#include + +namespace bbcreaVtk +{ + +class bbcreaVtk_EXPORT ImageCutByAxis + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(ImageCutByAxis,bbtk::AtomicBlackBox); +//===== +// 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) +//===== + BBTK_DECLARE_INPUT(In,vtkImageData*); + BBTK_DECLARE_INPUT(InsideVol,bool); + BBTK_DECLARE_INPUT(Point,std::vector); + BBTK_DECLARE_INPUT(Type,std::string); + BBTK_DECLARE_INPUT(TypeOrientation,int); + BBTK_DECLARE_OUTPUT(Out,vtkImageData*); + BBTK_PROCESS(Process); + void Process(); +//===== +// 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) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageCutByAxis,bbtk::AtomicBlackBox); + BBTK_NAME("ImageCutByAxis"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + BBTK_INPUT(ImageCutByAxis,In,"Input image",vtkImageData*,""); + 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,""); + BBTK_INPUT(ImageCutByAxis,InsideVol,"Inside volume",bool,""); + BBTK_INPUT(ImageCutByAxis,Point,"First input",std::vector,""); + BBTK_INPUT(ImageCutByAxis,TypeOrientation,"TypeOrientation (default 0) 0=XY 1=XZ 2=YZ",int,""); + BBTK_OUTPUT(ImageCutByAxis,Out,"Output image",vtkImageData*,""); +BBTK_END_DESCRIBE_BLACK_BOX(ImageCutByAxis); +//===== +// 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) +//===== +} +// EO namespace bbcreaVtk + +#endif // __bbcreaVtkImageCutByAxis_h_INCLUDED__ +