2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
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.
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
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 # ------------------------------------------------------------------------
27 #ifndef __bbPackRecalageTransform3D1PointBox_h_INCLUDED__
28 #define __bbPackRecalageTransform3D1PointBox_INCLUDED__
29 #include "bbPackRecalage_EXPORT.h"
30 #include "bbtkAtomicBlackBox.h"
33 #include "vtkTransform.h"
34 #include "Transformer3D1Point.h"
36 namespace bbPackRecalage
39 class bbPackRecalage_EXPORT Transform3D1PointBox
41 public bbtk::AtomicBlackBox
43 BBTK_BLACK_BOX_INTERFACE(Transform3D1PointBox,bbtk::AtomicBlackBox);
45 /*Center Point of the transformation*/
46 BBTK_DECLARE_INPUT(CenterPoint,std::vector<int>);
48 /*Scalation to be done in the x axis*/
49 BBTK_DECLARE_INPUT(AngleX,double);
51 /*Scalation to be done in the y axis*/
52 BBTK_DECLARE_INPUT(AngleY,double);
54 /*Scalation to be done in the z axis*/
55 BBTK_DECLARE_INPUT(AngleZ,double);
57 /*Scalation to be done in the x axis*/
58 BBTK_DECLARE_INPUT(ScaleX,double);
60 /*Scalation to be done in the y axis*/
61 BBTK_DECLARE_INPUT(ScaleY,double);
63 /*Scalation to be done in the z axis*/
64 BBTK_DECLARE_INPUT(ScaleZ,double);
66 /*Resultant vtkTransform*/
67 BBTK_DECLARE_OUTPUT(Out, vtkTransform*);
69 /*Class in charge of making the transformations*/
70 Transformer3D1Point *transformer;
72 BBTK_PROCESS(Process);
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);
91 // EO namespace bbPackRecalage
93 #endif // __bbPackRecalageRecalage3DV1_h_INCLUDED__