X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkMeshCutByAxis.h;fp=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkMeshCutByAxis.h;h=23cf4cb510aeb8013f64456a4b059889ec09d96d;hb=d4d007ec0086a1145c20e922e87e0fee1b2f12d8;hp=0000000000000000000000000000000000000000;hpb=15673d41b054dd2543c80b842b3ebde8cea76eb6;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.h b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.h new file mode 100644 index 0000000..23cf4cb --- /dev/null +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshCutByAxis.h @@ -0,0 +1,52 @@ +//===== +// 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 __bbcreaVtkMeshCutByAxis_h_INCLUDED__ +#define __bbcreaVtkMeshCutByAxis_h_INCLUDED__ +#include "bbcreaVtk_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" +#include + +namespace bbcreaVtk +{ + +class bbcreaVtk_EXPORT MeshCutByAxis + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(MeshCutByAxis,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,vtkPolyData*); + BBTK_DECLARE_INPUT(Type,std::string); + BBTK_DECLARE_INPUT(InsideVol,bool); + BBTK_DECLARE_INPUT(Point,std::vector); + BBTK_DECLARE_OUTPUT(Out,vtkPolyData*); + 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(MeshCutByAxis,bbtk::AtomicBlackBox); + BBTK_NAME("MeshCutByAxis"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("MeshCutByAxis"); + BBTK_CATEGORY("empty"); + BBTK_INPUT(MeshCutByAxis,In,"Mesh to be cut",vtkPolyData*,""); + BBTK_INPUT(MeshCutByAxis,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(MeshCutByAxis,InsideVol,"Inside volume",bool,""); + BBTK_INPUT(MeshCutByAxis,Point,"First input",std::vector,""); + BBTK_OUTPUT(MeshCutByAxis,Out,"First output",vtkPolyData*,""); +BBTK_END_DESCRIBE_BLACK_BOX(MeshCutByAxis); +//===== +// 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 // __bbcreaVtkMeshCutByAxis_h_INCLUDED__ +