]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.h
#3485 ShowNPionts for Multiple Groups
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuShowNPoints_Tools.h
index d974669da2be9416b1a0fe325817339578927d3b..d83ba3ef1b6bbad2de1511c4bdef550f53a35e49 100644 (file)
@@ -9,7 +9,10 @@
 #include "iostream"
 
 #include "WidgetShowNPoints.h"
+
+
 #include "vtkPolyData.h"
+#include <vtkStaticPointLocator.h>
 
 namespace bbcreaMaracasVisu
 {
@@ -23,6 +26,7 @@ class bbcreaMaracasVisu_EXPORT ShowNPoints_Tools
 // 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)
 //===== 
     BBTK_DECLARE_INPUT(WidgetShowNPoints,WidgetShowNPoints*);
+    BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
     BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
     BBTK_DECLARE_INPUT(Type,int);
 //  BBTK_DECLARE_OUTPUT(Out,double);
@@ -30,6 +34,8 @@ class bbcreaMaracasVisu_EXPORT ShowNPoints_Tools
   void Process();
     
     void CreatePatch01();
+    void NearestPointToMesh( vtkPoints *points, vtkStaticPointLocator   *pointLocator, double *spc , double *p , double *pM   );
+
 //===== 
 // 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)
 //===== 
@@ -41,6 +47,7 @@ BBTK_AUTHOR("Info-Dev");
 BBTK_DESCRIPTION("No Description.");
 BBTK_CATEGORY("empty");
   BBTK_INPUT(ShowNPoints_Tools,WidgetShowNPoints,"WidgetShowNPoints",WidgetShowNPoints*,"");
+  BBTK_INPUT(ShowNPoints_Tools,Spacing,"(default [1,1,1] )Spacing",std::vector<double>,"");
   BBTK_INPUT(ShowNPoints_Tools,Mesh,"Mesh en format vtkPolyData ",vtkPolyData*,"");
   BBTK_INPUT(ShowNPoints_Tools,Type,"(default 0) 0:Nothing 10:Insert Point  20:TrackPoint  30:Set nearest point  40:Erase point  50:Deleta all points  100:Insert  group after   110:Delete group  200:Tool_1 - Create Mesh (based with one group and 4 points)",int,"");
 //  BBTK_OUTPUT(ShowNPoints_Tools,Out,"First output",double,"");