1 #ifndef __bbPackRecalageTransform3D2PointsBox_h_INCLUDED__
2 #define __bbPackRecalageTransform3D2PointsBox_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
6 #include "Transformer3D.h"
7 #include "vtkLinearTransform.h"
9 #include "PlanesOperations.h"
11 namespace bbPackRecalage
14 class bbPackRecalage_EXPORT Transform3D2PointsBox
16 public bbtk::AtomicBlackBox
18 BBTK_BLACK_BOX_INTERFACE(Transform3D2PointsBox,bbtk::AtomicBlackBox);
21 BBTK_DECLARE_INPUT(InX1,std::vector<int>);
24 BBTK_DECLARE_INPUT(InY1,std::vector<int>);
27 BBTK_DECLARE_INPUT(InZ1,std::vector<int>);
30 BBTK_DECLARE_INPUT(InX2,std::vector<int>);
33 BBTK_DECLARE_INPUT(InY2,std::vector<int>);
36 BBTK_DECLARE_INPUT(InZ2,std::vector<int>);
39 BBTK_DECLARE_INPUT(Labels1,std::vector<std::string>);
41 BBTK_DECLARE_INPUT(Labels2,std::vector<std::string>);
44 BBTK_DECLARE_INPUT(SecondAngle,double);
46 /*Resultant vtkTransform*/
47 BBTK_DECLARE_OUTPUT(Out, vtkTransform*);
49 BBTK_PROCESS(Process);
52 /*Class in charge of making the transformations*/
53 Transformer3D *transformer;
55 /*Class that does the vector operations*/
56 PlanesOperations *planes;
59 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform3D2PointsBox,bbtk::AtomicBlackBox);
60 BBTK_NAME("Transform3D2PointsBox");
61 BBTK_AUTHOR("jn.trillos44@uniandes.edu.co");
62 BBTK_DESCRIPTION("Box useful for creating matrixes for 3D transformations defined by 2 points");
63 BBTK_CATEGORY("image");
64 BBTK_INPUT(Transform3D2PointsBox,InX1,"Points in X (first image)",std::vector<int>,"");
65 BBTK_INPUT(Transform3D2PointsBox,InY1,"Points in Y (first image)",std::vector<int>,"");
66 BBTK_INPUT(Transform3D2PointsBox,InZ1,"Points in Z (first image)",std::vector<int>,"");
67 BBTK_INPUT(Transform3D2PointsBox,InX2,"Points in X (second image)",std::vector<int>,"");
68 BBTK_INPUT(Transform3D2PointsBox,InY2,"Points in Y (second image)",std::vector<int>,"");
69 BBTK_INPUT(Transform3D2PointsBox,InZ2,"Points in Z (second image)",std::vector<int>,"");
70 BBTK_INPUT(Transform3D2PointsBox,SecondAngle,"Rotation to be done in second axis",double,"");
71 BBTK_INPUT(Transform3D2PointsBox,Labels1,"Labels of the points (first image)",std::vector<std::string>,"");
72 BBTK_INPUT(Transform3D2PointsBox,Labels2,"Labels of the points (second image)",std::vector<std::string>,"");
73 BBTK_OUTPUT(Transform3D2PointsBox,Out,"Transformation Matrix",vtkTransform*,"");
74 BBTK_END_DESCRIBE_BLACK_BOX(Transform3D2PointsBox);
76 // EO namespace bbPackRecalage
78 #endif // __bbPackRecalageTransform3DBox_h_INCLUDED__