]> Creatis software - creaImageIO.git/blob - bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomRotateDICOM.h
#3326 bbtk_Transform3Ddicom_PKG
[creaImageIO.git] / bbtk_Transform3Ddicom_PKG / src / bbTransform3DdicomRotateDICOM.h
1 #ifndef __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
2 #define __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
3 #include "bbtkAtomicBlackBox.h"\r
4 #include "iostream"\r
5 \r
6 #include <vtkLinearTransform.h>\r
7 \r
8 \r
9 namespace bbTransform3Ddicom\r
10 {\r
11 \r
12 class /*BBTK_EXPORT*/ RotateDICOM\r
13  : \r
14    public bbtk::AtomicBlackBox\r
15 {\r
16   BBTK_BLACK_BOX_INTERFACE(RotateDICOM,bbtk::AtomicBlackBox);\r
17 \r
18 /*\r
19 //==================================================================\r
20 /// User callback called in the box contructor\r
21 virtual void bbUserConstructor();\r
22 /// User callback called in the box copy constructor\r
23 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);\r
24 /// User callback called in the box destructor\r
25 virtual void bbUserDestructor();\r
26 //==================================================================\r
27 */\r
28 \r
29   BBTK_DECLARE_INPUT(Spacing1,std::vector<double> );\r
30   BBTK_DECLARE_INPUT(Spacing2,std::vector<double> );\r
31   BBTK_DECLARE_INPUT(Position1,std::vector<double> );\r
32   BBTK_DECLARE_INPUT(Position2,std::vector<double> );\r
33   BBTK_DECLARE_INPUT(Orientation1Vec12,std::vector<double> );\r
34   BBTK_DECLARE_INPUT(Orientation1Vec1,std::vector<double> );\r
35   BBTK_DECLARE_INPUT(Orientation1Vec2,std::vector<double> );\r
36   BBTK_DECLARE_INPUT(Orientation2Vec12,std::vector<double> );\r
37   BBTK_DECLARE_INPUT(Orientation2Vec1,std::vector<double> );\r
38   BBTK_DECLARE_INPUT(Orientation2Vec2,std::vector<double> );\r
39   BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform * );\r
40   BBTK_PROCESS(Process);\r
41   void Process();\r
42 };\r
43 \r
44 BBTK_BEGIN_DESCRIBE_BLACK_BOX(RotateDICOM,bbtk::AtomicBlackBox);\r
45 BBTK_NAME("RotateDICOM");\r
46 BBTK_AUTHOR("InfoTeam CREATIS-LRMN");\r
47 BBTK_DESCRIPTION("Transform 4x4 matix");\r
48 BBTK_CATEGORY("filter");\r
49 \r
50 BBTK_INPUT(RotateDICOM,Spacing1,"Spacing image 1",std::vector<double>,"");\r
51 BBTK_INPUT(RotateDICOM,Spacing2,"Spacing image 2",std::vector<double>,"");\r
52 BBTK_INPUT(RotateDICOM,Position1,"Position image 1",std::vector<double>,"");\r
53 BBTK_INPUT(RotateDICOM,Position2,"Position image 2",std::vector<double>,"");\r
54 BBTK_INPUT(RotateDICOM,Orientation1Vec1,"Orientation image 1 with vec 1",std::vector<double>,"");\r
55 BBTK_INPUT(RotateDICOM,Orientation1Vec12,"Orientation image 1 with vec 1 and 2 [x1 y1 z1 x2 y2 z2]",std::vector<double>,"");\r
56 BBTK_INPUT(RotateDICOM,Orientation1Vec2,"Orientation image 1 with vec 2",std::vector<double>,"");\r
57 BBTK_INPUT(RotateDICOM,Orientation2Vec12,"Orientation image 2 with vec 1 and 2 [x1 y1 z1 x2 y2 z2]",std::vector<double>,"");\r
58 BBTK_INPUT(RotateDICOM,Orientation2Vec1,"Orientation image 2 with vec 1",std::vector<double>,"");\r
59 BBTK_INPUT(RotateDICOM,Orientation2Vec2,"Orientation image 2 with vec 2",std::vector<double>,"");\r
60 BBTK_OUTPUT(RotateDICOM,Out,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");\r
61 \r
62 \r
63 \r
64 BBTK_END_DESCRIBE_BLACK_BOX(RotateDICOM);\r
65 }\r
66 // EO namespace bbTransform3Ddicom\r
67 \r
68 #endif // __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
69 \r