1 #ifndef __bbPackRecalageTransform2DBox_h_INCLUDED__
2 #define __bbPackRecalageTransform2DBox_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
7 #include "vtkLinearTransform.h"
8 #include "Transformer.h"
10 namespace bbPackRecalage
13 class bbPackRecalage_EXPORT Transform2DBox
15 public bbtk::AtomicBlackBox
17 BBTK_BLACK_BOX_INTERFACE(Transform2DBox,bbtk::AtomicBlackBox);
18 /*Point(x,y) -> Rotation Center*/
19 BBTK_DECLARE_INPUT(CenterPoint,std::vector<int>);
23 BBTK_DECLARE_INPUT(Angle,double);
26 /*Scalation to be done int the x axis*/
27 BBTK_DECLARE_INPUT(ScaleX,double);
30 /*Scalation to be done int the y axis*/
31 BBTK_DECLARE_INPUT(ScaleY,double);
33 /*Scalation to be done int the z axis*/
34 BBTK_DECLARE_INPUT(ScaleZ,double);
36 /*Resultant vtkTransform*/
37 BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform*);
39 BBTK_PROCESS(Process);
42 /*Class in charge of making the transformations*/
43 Transformer *transformer;
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform2DBox,bbtk::AtomicBlackBox);
47 BBTK_NAME("Transform2DBox");
48 BBTK_AUTHOR("va-perez@uniandes.edu.co");
49 BBTK_DESCRIPTION("Given 2 points and an angle, it calculates the vtkTransform result after aplying the transformations, using the first point as base of the transformation");
50 BBTK_CATEGORY("filter");
51 BBTK_INPUT(Transform2DBox,CenterPoint,"Point (x,y,z) -> Rotation Center",std::vector<int>,"");
52 BBTK_INPUT(Transform2DBox,Angle,"Rotation Angle",double,"");
53 BBTK_INPUT(Transform2DBox,ScaleX,"Scale in X",double,"");
54 BBTK_INPUT(Transform2DBox,ScaleY,"Scale in Y",double,"");
55 BBTK_INPUT(Transform2DBox,ScaleZ,"Scale in Z",double,"");
56 BBTK_OUTPUT(Transform2DBox,Out,"First output",vtkLinearTransform*,"");
57 BBTK_END_DESCRIBE_BLACK_BOX(Transform2DBox);
59 // EO namespace bbPackRecalage
61 #endif // __bbPackRecalageTransform2DBox_h_INCLUDED__