]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h
#3223 creaVtk Feature New Normal - vtk8itk4wx3-mingw64
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkVectorsExtraction.h
index 246e09b00ca2927eb0618807398eb0137d534852..f190d313638cffb357e175d29c532d13dbf4d125 100644 (file)
@@ -8,8 +8,10 @@
 #include "iostream"
 
 #include "vtkImageData.h"
-
 #include "vtkPointData.h"
+#include <math.h>
+
+#define PI 3.14159265
 
 namespace bbcreaVtk
 {
@@ -25,6 +27,9 @@ class bbcreaVtk_EXPORT VectorsExtraction
   BBTK_DECLARE_INPUT(Coordinates,std::vector<double>);
   BBTK_DECLARE_INPUT(VectorsFieldImage,vtkImageData*);
   BBTK_DECLARE_OUTPUT(Vector,std::vector<double>);
+  BBTK_DECLARE_OUTPUT(X,double);
+  BBTK_DECLARE_OUTPUT(Y,double);
+  BBTK_DECLARE_OUTPUT(Z,double);
   BBTK_DECLARE_OUTPUT(Angle1,double);
   BBTK_DECLARE_OUTPUT(Angle2,double);
   BBTK_PROCESS(Process);
@@ -35,14 +40,18 @@ class bbcreaVtk_EXPORT VectorsExtraction
 };
 
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VectorsExtraction,bbtk::AtomicBlackBox);
-BBTK_NAME("VectorsExtraction");
-BBTK_AUTHOR("Monica ESPINOSA");
-BBTK_DESCRIPTION("No Description.");
-BBTK_CATEGORY("empty");
-BBTK_INPUT(VectorsExtraction,Coordinates,"Coordinates (x,y,z)",std::vector<double>,"");
-BBTK_INPUT(VectorsExtraction,VectorsFieldImage,"Image of Vectors Field",vtkImageData*,"");
-BBTK_OUTPUT(VectorsExtraction,Angle1,"Angle 1 (Helix Angle)",double,"");
-BBTK_OUTPUT(VectorsExtraction,Angle2,"Angle 2 (Transversal Angle)",double,"");
+  BBTK_NAME("VectorsExtraction");
+  BBTK_AUTHOR("Monica ESPINOSA");
+  BBTK_DESCRIPTION("Warning! looking ofr a 'velocity' array. BOX NOT TESTED!");
+  BBTK_CATEGORY("empty");
+  BBTK_INPUT(VectorsExtraction,Coordinates,"Coordinates (x,y,z)",std::vector<double>,"");
+  BBTK_INPUT(VectorsExtraction,VectorsFieldImage,"Image of Vectors Field",vtkImageData*,"");
+  BBTK_OUTPUT(VectorsExtraction,Vector,"",std::vector<double>,"");
+  BBTK_OUTPUT(VectorsExtraction,X,"x",double,"");
+  BBTK_OUTPUT(VectorsExtraction,Y,"y",double,"");
+  BBTK_OUTPUT(VectorsExtraction,Z,"z",double,"");
+  BBTK_OUTPUT(VectorsExtraction,Angle1,"Angle 1 (Helix Angle)",double,"");
+  BBTK_OUTPUT(VectorsExtraction,Angle2,"Angle 2 (Transversal Angle)",double,"");
 BBTK_END_DESCRIBE_BLACK_BOX(VectorsExtraction);
 //===== 
 // 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)