]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.h
Clean code
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataNormals.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 __bbcreaVtkPolyDataNormals_h_INCLUDED__
5 #define __bbcreaVtkPolyDataNormals_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include <vtkPolyData.h>
12
13 namespace bbcreaVtk
14 {
15
16 class bbcreaVtk_EXPORT PolyDataNormals
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(PolyDataNormals,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(ComputeType,int);
26   BBTK_DECLARE_INPUT(Type,int);
27   BBTK_DECLARE_INPUT(Param,double);
28   BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
29   BBTK_DECLARE_OUTPUT(MeanNormal,std::vector<double>);
30
31   BBTK_PROCESS(Process);
32   void Process();
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(PolyDataNormals,bbtk::AtomicBlackBox);
39   BBTK_NAME("PolyDataNormals");
40   BBTK_AUTHOR("InfoDev");
41   BBTK_DESCRIPTION("No Description.");
42   BBTK_CATEGORY("empty");
43     BBTK_INPUT(PolyDataNormals,In,"Mesh input",vtkPolyData*,"");
44     BBTK_INPUT(PolyDataNormals,ComputeType,"(0 default) 0:Cells 1:Points",int,"");
45     BBTK_INPUT(PolyDataNormals,Type,"(0 default) 0:Normal Action   1:Apply correction direction (try param=1)",int,"");
46     BBTK_INPUT(PolyDataNormals,Param,"(0 default) For Type=1  (Normaly for open meshs)    [-2 2] 0:parallel 1:NormalState -1:OpositState",double ,"");
47     BBTK_OUTPUT(PolyDataNormals,Out,"Mesh output",vtkPolyData*,"");
48     BBTK_OUTPUT(PolyDataNormals,MeanNormal,"Mean Normal",std::vector<double>,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(PolyDataNormals);
50 //=====
51 // 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)
52 //===== 
53 }
54 // EO namespace bbcreaVtk
55
56 #endif // __bbcreaVtkPolyDataNormals_h_INCLUDED__
57