]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.h
3195 creaVtk Feature New Normal - new Boxes ImageCutByAxis LightKit MeshCutByAxis
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPlaneSource.h
index 1461d07681b03a477ef77a6e76a0e12ee77fe38a..2646c9bacff8426f79c08f35ad5cc1ff82b8c0c3 100644 (file)
@@ -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<double>);
-       BBTK_DECLARE_INPUT(Normal,std::vector<double>);
+  BBTK_DECLARE_INPUT(Normal,std::vector<double>);
+  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<double>,"");
-BBTK_INPUT(PlaneSource,Normal,"Normal",std::vector<double>,"");
-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<double>,"");
+       BBTK_INPUT(PlaneSource,Normal,"Normal (default[1,0,0]) ",std::vector<double>,"");
+       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)