]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageTransform3D1PointBox.h
Feature #1766 Add licence terms for all files.
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageTransform3D1PointBox.h
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------   
24 */
25
26
27 #ifndef __bbPackRecalageTransform3D1PointBox_h_INCLUDED__
28 #define __bbPackRecalageTransform3D1PointBox_INCLUDED__
29 #include "bbPackRecalage_EXPORT.h"
30 #include "bbtkAtomicBlackBox.h"
31 #include "iostream"
32
33 #include "vtkTransform.h"
34 #include "Transformer3D1Point.h"
35
36 namespace bbPackRecalage
37 {
38
39 class bbPackRecalage_EXPORT Transform3D1PointBox
40  : 
41    public bbtk::AtomicBlackBox
42 {
43   BBTK_BLACK_BOX_INTERFACE(Transform3D1PointBox,bbtk::AtomicBlackBox);
44
45   /*Center Point of the transformation*/
46   BBTK_DECLARE_INPUT(CenterPoint,std::vector<int>);
47
48   /*Scalation to be done in the x axis*/
49   BBTK_DECLARE_INPUT(AngleX,double);
50                 
51   /*Scalation to be done in the y axis*/
52   BBTK_DECLARE_INPUT(AngleY,double);
53
54   /*Scalation to be done in the z axis*/
55   BBTK_DECLARE_INPUT(AngleZ,double);
56
57   /*Scalation to be done in the x axis*/
58   BBTK_DECLARE_INPUT(ScaleX,double);
59                 
60   /*Scalation to be done in the y axis*/
61   BBTK_DECLARE_INPUT(ScaleY,double);
62
63   /*Scalation to be done in the z axis*/
64   BBTK_DECLARE_INPUT(ScaleZ,double);
65
66   /*Resultant vtkTransform*/
67   BBTK_DECLARE_OUTPUT(Out, vtkTransform*);
68
69   /*Class in charge of making the transformations*/
70   Transformer3D1Point *transformer;
71
72   BBTK_PROCESS(Process);
73   void Process();
74 };
75
76 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform3D1PointBox,bbtk::AtomicBlackBox);
77 BBTK_NAME("Transform3D1PointBox");
78 BBTK_AUTHOR("jn.trillos44@uniandes.edu.co");
79 BBTK_DESCRIPTION("Recalage3D version 1 (one point for translation, three rotation angles and xyz manual scaling)");
80 BBTK_CATEGORY("filter");
81 BBTK_INPUT(Transform3D1PointBox,CenterPoint,"CenterPoint",std::vector<int>,"");
82 BBTK_INPUT(Transform3D1PointBox,AngleX,"Angle for rotating on X",double,"");
83 BBTK_INPUT(Transform3D1PointBox,AngleY,"Angle for rotating on Y",double,"");
84 BBTK_INPUT(Transform3D1PointBox,AngleZ,"Angle for rotating on Z",double,"");
85 BBTK_INPUT(Transform3D1PointBox,ScaleX,"Scale on X",double,"");
86 BBTK_INPUT(Transform3D1PointBox,ScaleY,"Scale on Y",double,"");
87 BBTK_INPUT(Transform3D1PointBox,ScaleZ,"Scale on Z",double,"");
88 BBTK_OUTPUT(Transform3D1PointBox,Out,"Transformation ",vtkTransform*,"");
89 BBTK_END_DESCRIBE_BLACK_BOX(Transform3D1PointBox);
90 }
91 // EO namespace bbPackRecalage
92
93 #endif // __bbPackRecalageRecalage3DV1_h_INCLUDED__
94