//===== // 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 __bbcreaVtkPolyDataInfo_h_INCLUDED__ #define __bbcreaVtkPolyDataInfo_h_INCLUDED__ #include "bbcreaVtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkPolyData.h" #include "vtkLinearTransform.h" namespace bbcreaVtk { class bbcreaVtk_EXPORT PolyDataInfo : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(PolyDataInfo,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( 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 ); BBTK_DECLARE_OUTPUT( NumberOfPieces , double ); 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(); //===== // 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(PolyDataInfo,bbtk::AtomicBlackBox); BBTK_NAME("PolyDataInfo"); BBTK_AUTHOR("InfoDev"); BBTK_DESCRIPTION("No Description."); 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,""); BBTK_OUTPUT(PolyDataInfo,NumberOfPoints,"Number of Points",double,""); BBTK_OUTPUT(PolyDataInfo,NumberOfPieces,"Number of Pieces",double,""); 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); //===== // 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 // __bbcreaVtkPolyDataInfo_h_INCLUDED__