]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h
#3282 creaVtk Feature New Normal PolyDataInfo
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataInfo.h
index b33617203479354782bcce3b04a3d0f55541e511..3bafe68d606ff804a88b6e684afb6da0ea03c9f5 100644 (file)
@@ -9,6 +9,7 @@
 #include "iostream"
 
 #include "vtkPolyData.h"
+#include "vtkLinearTransform.h"
 
 namespace bbcreaVtk
 {
@@ -21,7 +22,11 @@ class bbcreaVtk_EXPORT PolyDataInfo
 //===== 
 // 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( In                               , vtkPolyData* );
+  BBTK_DECLARE_INPUT( Points                   , bool );
+  BBTK_DECLARE_INPUT( IdsPoints                , bool );
+  BBTK_DECLARE_INPUT( Transform                , vtkLinearTransform* );
+
   BBTK_DECLARE_OUTPUT( NumberOfCells   , double );
   BBTK_DECLARE_OUTPUT( NumberOfLines   , double );
   BBTK_DECLARE_OUTPUT( NumberOfPoints  , double );
@@ -29,6 +34,11 @@ class bbcreaVtk_EXPORT PolyDataInfo
   BBTK_DECLARE_OUTPUT( NumberOfPolys   , double );
   BBTK_DECLARE_OUTPUT( NumberOfStrips  , double );
   BBTK_DECLARE_OUTPUT( NumberOfVerts   , double );
+  BBTK_DECLARE_OUTPUT( LstIdsPoints    , std::vector<double> );
+  BBTK_DECLARE_OUTPUT( LstPointsX              , std::vector<double> );
+  BBTK_DECLARE_OUTPUT( LstPointsY              , std::vector<double> );
+  BBTK_DECLARE_OUTPUT( LstPointsZ              , std::vector<double> );
+
   BBTK_PROCESS(Process);
   void Process();
 //===== 
@@ -43,6 +53,9 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataInfo,bbtk::AtomicBlackBox);
   BBTK_CATEGORY("empty");
 
   BBTK_INPUT(PolyDataInfo,In,"vtkPolyData", vtkPolyData* ,"");
+  BBTK_INPUT(PolyDataInfo,IdsPoints,"(default false) Extract ids of the mesh or not.", bool ,"");
+  BBTK_INPUT(PolyDataInfo,Points,"(default false) Extract points of the mesh or not.", bool ,"");
+  BBTK_INPUT(PolyDataInfo,Transform,"vtkTransform", vtkLinearTransform* ,"");
 
   BBTK_OUTPUT(PolyDataInfo,NumberOfCells,"Number of Cells",double,"");
   BBTK_OUTPUT(PolyDataInfo,NumberOfLines,"Number of Lines",double,"");
@@ -51,6 +64,11 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataInfo,bbtk::AtomicBlackBox);
   BBTK_OUTPUT(PolyDataInfo,NumberOfPolys,"Number of Ploys",double,"");
   BBTK_OUTPUT(PolyDataInfo,NumberOfStrips,"Number of Strips",double,"");
   BBTK_OUTPUT(PolyDataInfo,NumberOfVerts,"Number of Verts",double,"");
+  BBTK_OUTPUT(PolyDataInfo,LstIdsPoints,"List of Ids of points (if input Ids=true)",std::vector<double>,"");
+  BBTK_OUTPUT(PolyDataInfo,LstPointsX,"List of X of points (if input Points=true)",std::vector<double>,"");
+  BBTK_OUTPUT(PolyDataInfo,LstPointsY,"List of Y of points (if input Points=true)",std::vector<double>,"");
+  BBTK_OUTPUT(PolyDataInfo,LstPointsZ,"List of Z of points (if input Points=true)",std::vector<double>,"");
+
 
 BBTK_END_DESCRIBE_BLACK_BOX(PolyDataInfo);
 //=====