]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.h
#3251 creaVtk Feature New Normal - STL read write and Mesh_reduction
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkMeshReduction_DecimatePro.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 __bbcreaVtkMeshReduction_DecimatePro_h_INCLUDED__
5 #define __bbcreaVtkMeshReduction_DecimatePro_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkPolyData.h"
12 #include "vtkDecimatePro.h"
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT MeshReduction_DecimatePro
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(MeshReduction_DecimatePro,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(TargetReduction,double);
27   BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
28   BBTK_PROCESS(Process);
29   void Process();
30
31         bool                    firsttime;
32         vtkDecimatePro  *decimatepro;
33
34 //===== 
35 // 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)
36 //===== 
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MeshReduction_DecimatePro,bbtk::AtomicBlackBox);
40   BBTK_NAME("MeshReduction_DecimatePro");
41   BBTK_AUTHOR("InfoDev");
42   BBTK_DESCRIPTION("No Description.");
43   BBTK_CATEGORY("empty");
44   BBTK_INPUT(MeshReduction_DecimatePro,In,"vtkPolyData*",vtkPolyData*,"");
45   BBTK_INPUT(MeshReduction_DecimatePro,TargetReduction,"[0-1] (default 0.5)",double,"");
46   BBTK_OUTPUT(MeshReduction_DecimatePro,Out,"vtkPolyData*",vtkPolyData*,"");
47 BBTK_END_DESCRIBE_BLACK_BOX(MeshReduction_DecimatePro);
48 //===== 
49 // 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)
50 //===== 
51 }
52 // EO namespace bbcreaVtk
53
54 #endif // __bbcreaVtkMeshReduction_DecimatePro_h_INCLUDED__
55