]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageTransform2DBox.h
Added to library TransformLib.
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageTransform2DBox.h
1 #ifndef __bbPackRecalageTransform2DBox_h_INCLUDED__
2 #define __bbPackRecalageTransform2DBox_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7 #include "vtkLinearTransform.h"
8 #include "sourceTransformer.h"
9
10 namespace bbPackRecalage
11 {
12
13 class bbPackRecalage_EXPORT Transform2DBox
14  : 
15    public bbtk::AtomicBlackBox
16 {
17                 BBTK_BLACK_BOX_INTERFACE(Transform2DBox,bbtk::AtomicBlackBox);
18                 /*Point(x,y) -> Rotation Center*/
19                 BBTK_DECLARE_INPUT(CenterPoint,std::vector<int>);
20
21
22                 /*Rotation angle*/
23                 BBTK_DECLARE_INPUT(Angle,double);
24
25                 
26                 /*Scalation to be done int the x axis*/
27                 BBTK_DECLARE_INPUT(ScaleX,double);
28
29                 
30                 /*Scalation to be done int the y axis*/
31                 BBTK_DECLARE_INPUT(ScaleY,double);
32
33                 /*Scalation to be done int the z axis*/
34                 BBTK_DECLARE_INPUT(ScaleZ,double);
35                 
36                 /*Resultant vtkTransform*/
37                 BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform*);
38
39                 BBTK_PROCESS(Process);
40                 void Process();
41                 
42                 /*Class in charge of making the transformations*/
43                 Transformer *transformer;
44 };
45
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);
58 }
59 // EO namespace bbPackRecalage
60
61 #endif // __bbPackRecalageTransform2DBox_h_INCLUDED__
62