X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneSource.h;fp=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneSource.h;h=2646c9bacff8426f79c08f35ad5cc1ff82b8c0c3;hb=d4d007ec0086a1145c20e922e87e0fee1b2f12d8;hp=1461d07681b03a477ef77a6e76a0e12ee77fe38a;hpb=15673d41b054dd2543c80b842b3ebde8cea76eb6;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.h b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.h index 1461d07..2646c9b 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.h @@ -8,6 +8,7 @@ #include "iostream" #include "vtkPlaneSource.h" #include "vtkDataSet.h" +#include "vtkPolyData.h" namespace bbcreaVtk { @@ -21,8 +22,11 @@ class bbcreaVtk_EXPORT PlaneSource // 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(Center,std::vector); - BBTK_DECLARE_INPUT(Normal,std::vector); + BBTK_DECLARE_INPUT(Normal,std::vector); + BBTK_DECLARE_INPUT(XResolution,int); + BBTK_DECLARE_INPUT(YResolution,int); BBTK_DECLARE_OUTPUT(Plane,vtkDataSet*); + BBTK_DECLARE_OUTPUT(PolyData,vtkPolyData*); BBTK_PROCESS(Process); void Process(); //===== @@ -31,13 +35,16 @@ class bbcreaVtk_EXPORT PlaneSource }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneSource,bbtk::AtomicBlackBox); -BBTK_NAME("PlaneSource"); -BBTK_AUTHOR("carlos torres"); -BBTK_DESCRIPTION("No Description."); -BBTK_CATEGORY("empty"); -BBTK_INPUT(PlaneSource,Center,"Center",std::vector,""); -BBTK_INPUT(PlaneSource,Normal,"Normal",std::vector,""); -BBTK_OUTPUT(PlaneSource,Plane,"Plane",vtkDataSet*,""); + BBTK_NAME("PlaneSource"); + BBTK_AUTHOR("carlos torres"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + BBTK_INPUT(PlaneSource,Center,"Center (default[0,0,0]) ",std::vector,""); + BBTK_INPUT(PlaneSource,Normal,"Normal (default[1,0,0]) ",std::vector,""); + BBTK_INPUT(PlaneSource,XResolution,"XResolution (default 100)",int,""); + BBTK_INPUT(PlaneSource,YResolution,"YResolution (default 100)",int,""); + BBTK_OUTPUT(PlaneSource,Plane,"Plane",vtkDataSet*,""); + BBTK_OUTPUT(PlaneSource,PolyData,"vtkPolyData",vtkPolyData*,""); BBTK_END_DESCRIBE_BLACK_BOX(PlaneSource); //===== // 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)