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