]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.h
28b8e65b627411f829fd3ea8ca9ab3c132cb3661
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuShowNPoints_Tools.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 __bbcreaMaracasVisuShowNPoints_Tools_h_INCLUDED__
5 #define __bbcreaMaracasVisuShowNPoints_Tools_h_INCLUDED__
6
7 #include "bbcreaMaracasVisu_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "WidgetShowNPoints.h"
12
13
14 #include "vtkPolyData.h"
15 #include <vtkStaticPointLocator.h>
16
17 namespace bbcreaMaracasVisu
18 {
19
20 class bbcreaMaracasVisu_EXPORT ShowNPoints_Tools
21  : 
22    public bbtk::AtomicBlackBox
23 {
24   BBTK_BLACK_BOX_INTERFACE(ShowNPoints_Tools,bbtk::AtomicBlackBox);
25 //===== 
26 // 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)
27 //===== 
28     BBTK_DECLARE_INPUT(WidgetShowNPoints,WidgetShowNPoints*);
29     BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
30     BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
31     BBTK_DECLARE_INPUT(Type,int);
32 //  BBTK_DECLARE_OUTPUT(Out,double);
33   BBTK_PROCESS(Process);
34   void Process();
35     
36     void CreatePatch_3points();
37     void CreatePatch_4points();
38     void CreatePatch_Points(std::vector<int> lstX, std::vector<int> lstY, std::vector<int> lstZ);
39     void NearestPointToMesh( vtkPoints *points, vtkStaticPointLocator   *pointLocator, double *spc , double *p , double *pM   );
40
41 //===== 
42 // 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)
43 //===== 
44 };
45
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ShowNPoints_Tools,bbtk::AtomicBlackBox);
47 BBTK_NAME("ShowNPoints_Tools");
48 BBTK_AUTHOR("Info-Dev");
49 BBTK_DESCRIPTION("No Description.");
50 BBTK_CATEGORY("empty");
51   BBTK_INPUT(ShowNPoints_Tools,WidgetShowNPoints,"WidgetShowNPoints",WidgetShowNPoints*,"");
52   BBTK_INPUT(ShowNPoints_Tools,Spacing,"(default [1,1,1] )Spacing",std::vector<double>,"");
53   BBTK_INPUT(ShowNPoints_Tools,Mesh,"Mesh en format vtkPolyData ",vtkPolyData*,"");
54   BBTK_INPUT(ShowNPoints_Tools,Type,"(default 0) 0:Nothing 1:Auto add poits   5:Add Point  10:Insert Point  20:TrackPoint  30:Set nearest point  40:Erase point  50:Deleta all points  100:Insert  group after   110:Delete group  120:Reset colletion  190:Tool 3 points to surface - Create Mesh (based with one group and 3 points)   200:Tool 4 points to surface - Create Mesh (based with one group and 4 points)",int,"");
55 //  BBTK_OUTPUT(ShowNPoints_Tools,Out,"First output",double,"");
56 BBTK_END_DESCRIBE_BLACK_BOX(ShowNPoints_Tools);
57 //===== 
58 // 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)
59 //===== 
60 }
61 // EO namespace bbcreaMaracasVisu
62
63 #endif // __bbcreaMaracasVisuShowNPoints_Tools_h_INCLUDED__
64