X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPolyDataInfo.h;h=3bafe68d606ff804a88b6e684afb6da0ea03c9f5;hb=8eabea73801eaefdfd58f678bc22c64b385a42f5;hp=b33617203479354782bcce3b04a3d0f55541e511;hpb=df4539135877e3470a9515e0baa5574ff57f18b4;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h index b336172..3bafe68 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h @@ -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 ); + BBTK_DECLARE_OUTPUT( LstPointsX , std::vector ); + BBTK_DECLARE_OUTPUT( LstPointsY , std::vector ); + BBTK_DECLARE_OUTPUT( LstPointsZ , std::vector ); + 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,""); + BBTK_OUTPUT(PolyDataInfo,LstPointsX,"List of X of points (if input Points=true)",std::vector,""); + BBTK_OUTPUT(PolyDataInfo,LstPointsY,"List of Y of points (if input Points=true)",std::vector,""); + BBTK_OUTPUT(PolyDataInfo,LstPointsZ,"List of Z of points (if input Points=true)",std::vector,""); + BBTK_END_DESCRIBE_BLACK_BOX(PolyDataInfo); //=====