]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataInfo.h
#3282 creaVtk Feature New Normal PolyDataInfo
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataInfo.h
1 //===== 
2 // 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)
3 //===== 
4 #ifndef __bbcreaVtkPolyDataInfo_h_INCLUDED__
5 #define __bbcreaVtkPolyDataInfo_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkPolyData.h"
12 #include "vtkLinearTransform.h"
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT PolyDataInfo
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(PolyDataInfo,bbtk::AtomicBlackBox);
22 //===== 
23 // 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)
24 //===== 
25   BBTK_DECLARE_INPUT( In                                , vtkPolyData* );
26   BBTK_DECLARE_INPUT( Points                    , bool );
27   BBTK_DECLARE_INPUT( IdsPoints                 , bool );
28   BBTK_DECLARE_INPUT( Transform                 , vtkLinearTransform* );
29
30   BBTK_DECLARE_OUTPUT( NumberOfCells    , double );
31   BBTK_DECLARE_OUTPUT( NumberOfLines    , double );
32   BBTK_DECLARE_OUTPUT( NumberOfPoints   , double );
33   BBTK_DECLARE_OUTPUT( NumberOfPieces   , double );
34   BBTK_DECLARE_OUTPUT( NumberOfPolys    , double );
35   BBTK_DECLARE_OUTPUT( NumberOfStrips   , double );
36   BBTK_DECLARE_OUTPUT( NumberOfVerts    , double );
37   BBTK_DECLARE_OUTPUT( LstIdsPoints     , std::vector<double> );
38   BBTK_DECLARE_OUTPUT( LstPointsX               , std::vector<double> );
39   BBTK_DECLARE_OUTPUT( LstPointsY               , std::vector<double> );
40   BBTK_DECLARE_OUTPUT( LstPointsZ               , std::vector<double> );
41
42   BBTK_PROCESS(Process);
43   void Process();
44 //===== 
45 // 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)
46 //===== 
47 };
48
49 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataInfo,bbtk::AtomicBlackBox);
50   BBTK_NAME("PolyDataInfo");
51   BBTK_AUTHOR("InfoDev");
52   BBTK_DESCRIPTION("No Description.");
53   BBTK_CATEGORY("empty");
54
55   BBTK_INPUT(PolyDataInfo,In,"vtkPolyData", vtkPolyData* ,"");
56   BBTK_INPUT(PolyDataInfo,IdsPoints,"(default false) Extract ids of the mesh or not.", bool ,"");
57   BBTK_INPUT(PolyDataInfo,Points,"(default false) Extract points of the mesh or not.", bool ,"");
58   BBTK_INPUT(PolyDataInfo,Transform,"vtkTransform", vtkLinearTransform* ,"");
59
60   BBTK_OUTPUT(PolyDataInfo,NumberOfCells,"Number of Cells",double,"");
61   BBTK_OUTPUT(PolyDataInfo,NumberOfLines,"Number of Lines",double,"");
62   BBTK_OUTPUT(PolyDataInfo,NumberOfPoints,"Number of Points",double,"");
63   BBTK_OUTPUT(PolyDataInfo,NumberOfPieces,"Number of Pieces",double,"");
64   BBTK_OUTPUT(PolyDataInfo,NumberOfPolys,"Number of Ploys",double,"");
65   BBTK_OUTPUT(PolyDataInfo,NumberOfStrips,"Number of Strips",double,"");
66   BBTK_OUTPUT(PolyDataInfo,NumberOfVerts,"Number of Verts",double,"");
67   BBTK_OUTPUT(PolyDataInfo,LstIdsPoints,"List of Ids of points (if input Ids=true)",std::vector<double>,"");
68   BBTK_OUTPUT(PolyDataInfo,LstPointsX,"List of X of points (if input Points=true)",std::vector<double>,"");
69   BBTK_OUTPUT(PolyDataInfo,LstPointsY,"List of Y of points (if input Points=true)",std::vector<double>,"");
70   BBTK_OUTPUT(PolyDataInfo,LstPointsZ,"List of Z of points (if input Points=true)",std::vector<double>,"");
71
72
73 BBTK_END_DESCRIBE_BLACK_BOX(PolyDataInfo);
74 //===== 
75 // 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)
76 //===== 
77 }
78 // EO namespace bbcreaVtk
79
80 #endif // __bbcreaVtkPolyDataInfo_h_INCLUDED__
81