]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkCleanMeshWithPatch.h
#3513 CleanMeshWithPatch
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkCleanMeshWithPatch.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 __bbcreaVtkCleanMeshWithPatch_h_INCLUDED__
5 #define __bbcreaVtkCleanMeshWithPatch_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 CleanMeshWithPatch
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(CleanMeshWithPatch,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(Mesh,vtkPolyData*);
25     BBTK_DECLARE_INPUT(Patch,vtkPolyData*);
26     BBTK_DECLARE_INPUT(LstX,std::vector<double>);
27     BBTK_DECLARE_INPUT(LstY,std::vector<double>);
28     BBTK_DECLARE_INPUT(LstZ,std::vector<double>);
29     BBTK_DECLARE_INPUT(LstIndexs,std::vector<int>);
30     BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
31     BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
32     BBTK_PROCESS(Process);
33   void Process();
34     
35   void Stretch(vtkPolyData *newMesh, vtkPolyData *patchMesh);
36
37 //===== 
38 // 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)
39 //===== 
40 };
41
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CleanMeshWithPatch,bbtk::AtomicBlackBox);
43     BBTK_NAME("CleanMeshWithPatch");
44     BBTK_AUTHOR("InfoDev");
45     BBTK_DESCRIPTION("No Description.");
46     BBTK_CATEGORY("empty");
47     BBTK_INPUT(CleanMeshWithPatch,Mesh,"Mesh to be clean",vtkPolyData*,"");
48     BBTK_INPUT(CleanMeshWithPatch,Patch,"Patch reference",vtkPolyData*,"");
49     BBTK_INPUT(CleanMeshWithPatch,LstX,"List of points X",std::vector<double>,"");
50     BBTK_INPUT(CleanMeshWithPatch,LstY,"List of points Y",std::vector<double>,"");
51     BBTK_INPUT(CleanMeshWithPatch,LstZ,"List of points Z",std::vector<double>,"");
52     BBTK_INPUT(CleanMeshWithPatch,LstIndexs,"List of indexs",std::vector<int>,"");
53     BBTK_INPUT(CleanMeshWithPatch,Spacing,"Spacing [spcX,spcY,spcZ]",std::vector<double>,"");
54     BBTK_OUTPUT(CleanMeshWithPatch,Out,"Output result",vtkPolyData*,"");
55 BBTK_END_DESCRIBE_BLACK_BOX(CleanMeshWithPatch);
56 //===== 
57 // 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)
58 //===== 
59 }
60 // EO namespace bbcreaVtk
61
62 #endif // __bbcreaVtkCleanMeshWithPatch_h_INCLUDED__
63