X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkVectorsExtraction.h;h=f190d313638cffb357e175d29c532d13dbf4d125;hb=8eabea73801eaefdfd58f678bc22c64b385a42f5;hp=621ef3af68a07f76b987f8bdb93d70483b15d9bb;hpb=cf3087440ef51f6ed4bfd1cdda5b8a14148bc51d;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h b/bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h index 621ef3a..f190d31 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h @@ -8,8 +8,10 @@ #include "iostream" #include "vtkImageData.h" - #include "vtkPointData.h" +#include + +#define PI 3.14159265 namespace bbcreaVtk { @@ -25,6 +27,9 @@ class bbcreaVtk_EXPORT VectorsExtraction BBTK_DECLARE_INPUT(Coordinates,std::vector); BBTK_DECLARE_INPUT(VectorsFieldImage,vtkImageData*); BBTK_DECLARE_OUTPUT(Vector,std::vector); + 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,15 +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,""); -BBTK_INPUT(VectorsExtraction,VectorsFieldImage,"Image of Vectors Field",vtkImageData*,""); -BBTK_OUTPUT(VectorsExtraction,Vector,"",std::vector,""); -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,""); + BBTK_INPUT(VectorsExtraction,VectorsFieldImage,"Image of Vectors Field",vtkImageData*,""); + BBTK_OUTPUT(VectorsExtraction,Vector,"",std::vector,""); + 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)