]> Creatis software - creaImageIO.git/blobdiff - bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomRotateDICOM.h
#3326 bbtk_Transform3Ddicom_PKG
[creaImageIO.git] / bbtk_Transform3Ddicom_PKG / src / bbTransform3DdicomRotateDICOM.h
diff --git a/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomRotateDICOM.h b/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomRotateDICOM.h
new file mode 100644 (file)
index 0000000..cf6a844
--- /dev/null
@@ -0,0 +1,69 @@
+#ifndef __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
+#define __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
+#include "bbtkAtomicBlackBox.h"\r
+#include "iostream"\r
+\r
+#include <vtkLinearTransform.h>\r
+\r
+\r
+namespace bbTransform3Ddicom\r
+{\r
+\r
+class /*BBTK_EXPORT*/ RotateDICOM\r
+ : \r
+   public bbtk::AtomicBlackBox\r
+{\r
+  BBTK_BLACK_BOX_INTERFACE(RotateDICOM,bbtk::AtomicBlackBox);\r
+\r
+/*\r
+//==================================================================\r
+/// User callback called in the box contructor\r
+virtual void bbUserConstructor();\r
+/// User callback called in the box copy constructor\r
+virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);\r
+/// User callback called in the box destructor\r
+virtual void bbUserDestructor();\r
+//==================================================================\r
+*/\r
+\r
+  BBTK_DECLARE_INPUT(Spacing1,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Spacing2,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Position1,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Position2,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation1Vec12,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation1Vec1,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation1Vec2,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation2Vec12,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation2Vec1,std::vector<double> );\r
+  BBTK_DECLARE_INPUT(Orientation2Vec2,std::vector<double> );\r
+  BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform * );\r
+  BBTK_PROCESS(Process);\r
+  void Process();\r
+};\r
+\r
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(RotateDICOM,bbtk::AtomicBlackBox);\r
+BBTK_NAME("RotateDICOM");\r
+BBTK_AUTHOR("InfoTeam CREATIS-LRMN");\r
+BBTK_DESCRIPTION("Transform 4x4 matix");\r
+BBTK_CATEGORY("filter");\r
+\r
+BBTK_INPUT(RotateDICOM,Spacing1,"Spacing image 1",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Spacing2,"Spacing image 2",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Position1,"Position image 1",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Position2,"Position image 2",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation1Vec1,"Orientation image 1 with vec 1",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation1Vec12,"Orientation image 1 with vec 1 and 2 [x1 y1 z1 x2 y2 z2]",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation1Vec2,"Orientation image 1 with vec 2",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation2Vec12,"Orientation image 2 with vec 1 and 2 [x1 y1 z1 x2 y2 z2]",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation2Vec1,"Orientation image 2 with vec 1",std::vector<double>,"");\r
+BBTK_INPUT(RotateDICOM,Orientation2Vec2,"Orientation image 2 with vec 2",std::vector<double>,"");\r
+BBTK_OUTPUT(RotateDICOM,Out,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");\r
+\r
+\r
+\r
+BBTK_END_DESCRIBE_BLACK_BOX(RotateDICOM);\r
+}\r
+// EO namespace bbTransform3Ddicom\r
+\r
+#endif // __bbTransform3DdicomRotateDICOM_h_INCLUDED__\r
+\r