]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPointPickerNearest.h
PointPickerNearest box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPointPickerNearest.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 __bbcreaVtkPointPickerNearest_h_INCLUDED__
5 #define __bbcreaVtkPointPickerNearest_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkPolyData.h"
12
13
14 namespace bbcreaVtk
15 {
16
17 typedef  long int longInt;
18
19 class bbcreaVtk_EXPORT PointPickerNearest
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(PointPickerNearest,bbtk::AtomicBlackBox);
24 //===== 
25 // 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)
26 //===== 
27     BBTK_DECLARE_INPUT(Active,bool);
28     BBTK_DECLARE_INPUT(Point,std::vector<double>);
29     BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
30     BBTK_DECLARE_INPUT(Border,double);
31     BBTK_DECLARE_OUTPUT(PointId,longInt);
32     BBTK_DECLARE_OUTPUT(Normal,std::vector<double>);
33     BBTK_PROCESS(Process);
34     void Process();
35 //===== 
36 // 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)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PointPickerNearest,bbtk::AtomicBlackBox);
41     BBTK_NAME("PointPickerNearest");
42     BBTK_AUTHOR("InfoDev");
43     BBTK_DESCRIPTION("No Description.");
44     BBTK_CATEGORY("empty");
45     BBTK_INPUT(PointPickerNearest,Active,"(default false) true/false",bool,"");
46     BBTK_INPUT(PointPickerNearest,Point,"Point [x,y,z]",std::vector<double>,"");
47     BBTK_INPUT(PointPickerNearest,Mesh,"Mesh polyData",vtkPolyData*,"");
48     BBTK_INPUT(PointPickerNearest,Border,"(default 10) Distance max to be acvive",double,"");
49     BBTK_OUTPUT(PointPickerNearest,PointId,"Mesh point Id ",longInt,"");
50     BBTK_OUTPUT(PointPickerNearest,Normal,"Normal [nx,ny,nz]",std::vector<double>,"");
51 BBTK_END_DESCRIBE_BLACK_BOX(PointPickerNearest);
52 //===== 
53 // 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)
54 //===== 
55 }
56 // EO namespace bbcreaVtk
57
58 #endif // __bbcreaVtkPointPickerNearest_h_INCLUDED__
59