]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.h
#2671 creaVtk Feature New Normal - VectorsExtraction
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkVectorsExtraction.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 __bbcreaVtkVectorsExtraction_h_INCLUDED__
5 #define __bbcreaVtkVectorsExtraction_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkImageData.h"
11 #include "vtkPointData.h"
12 #include <math.h>
13
14 #define PI 3.14159265
15
16 namespace bbcreaVtk
17 {
18
19 class bbcreaVtk_EXPORT VectorsExtraction
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(VectorsExtraction,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(Coordinates,std::vector<double>);
28   BBTK_DECLARE_INPUT(VectorsFieldImage,vtkImageData*);
29   BBTK_DECLARE_OUTPUT(Vector,std::vector<double>);
30   BBTK_DECLARE_OUTPUT(X,double);
31   BBTK_DECLARE_OUTPUT(Y,double);
32   BBTK_DECLARE_OUTPUT(Z,double);
33   BBTK_DECLARE_OUTPUT(Angle1,double);
34   BBTK_DECLARE_OUTPUT(Angle2,double);
35   BBTK_PROCESS(Process);
36   void Process();
37 //===== 
38 // 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)
39 //===== 
40 };
41
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VectorsExtraction,bbtk::AtomicBlackBox);
43 BBTK_NAME("VectorsExtraction");
44 BBTK_AUTHOR("Monica ESPINOSA");
45 BBTK_DESCRIPTION("No Description.");
46 BBTK_CATEGORY("empty");
47 BBTK_INPUT(VectorsExtraction,Coordinates,"Coordinates (x,y,z)",std::vector<double>,"");
48 BBTK_INPUT(VectorsExtraction,VectorsFieldImage,"Image of Vectors Field",vtkImageData*,"");
49 BBTK_OUTPUT(VectorsExtraction,Vector,"",std::vector<double>,"");
50 BBTK_OUTPUT(VectorsExtraction,X,"x",double,"");
51 BBTK_OUTPUT(VectorsExtraction,Y,"y",double,"");
52 BBTK_OUTPUT(VectorsExtraction,Z,"z",double,"");
53 BBTK_OUTPUT(VectorsExtraction,Angle1,"Angle 1 (Helix Angle)",double,"");
54 BBTK_OUTPUT(VectorsExtraction,Angle2,"Angle 2 (Transversal Angle)",double,"");
55 BBTK_END_DESCRIBE_BLACK_BOX(VectorsExtraction);
56 //===== 
57 // 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)
58 //===== 
59 }
60 // EO namespace bbcreaVtk
61
62 #endif // __bbcreaVtkVectorsExtraction_h_INCLUDED__
63