]> Creatis software - creaImageIO.git/blob - bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.h
Clean code
[creaImageIO.git] / bbtk_Transform3Ddicom_PKG / src / bbTransform3DdicomNewDicomImaPosPat.h
1 #ifndef __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__
2 #define __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__
3 #include "bbTransform3Ddicom_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6 #include "vtkLinearTransform.h"
7
8 namespace bbTransform3Ddicom
9 {
10
11 class bbTransform3Ddicom_EXPORT NewDicomImaPosPat
12  : 
13    public bbtk::AtomicBlackBox
14 {
15   BBTK_BLACK_BOX_INTERFACE(NewDicomImaPosPat,bbtk::AtomicBlackBox);
16
17 /*
18 //==================================================================
19 /// User callback called in the box contructor
20 virtual void bbUserConstructor();
21 /// User callback called in the box copy constructor
22 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
23 /// User callback called in the box destructor
24 virtual void bbUserDestructor();
25 //==================================================================
26 */
27
28         BBTK_DECLARE_INPUT( Point,std::vector<double> );
29         BBTK_DECLARE_INPUT( IPP,std::vector<double> );
30         BBTK_DECLARE_INPUT( IOP,std::vector<double> );
31         BBTK_DECLARE_INPUT( PixelSpacing,std::vector<double> );
32         BBTK_DECLARE_OUTPUT( Out, std::vector<double> );
33         BBTK_DECLARE_OUTPUT( Transform, vtkLinearTransform* );
34         BBTK_PROCESS(Process);
35   void Process();
36
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(NewDicomImaPosPat,bbtk::AtomicBlackBox);
40   BBTK_NAME("NewDicomImaPosPat");
41   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
42   BBTK_DESCRIPTION("New Dicom ImagePositionPatient");
43   BBTK_CATEGORY("");
44         
45   BBTK_INPUT(NewDicomImaPosPat,Point,"point to be transform", std::vector<double> ,"");
46   BBTK_INPUT(NewDicomImaPosPat,IPP,"Image Position Patient",std::vector<double>,"");
47   BBTK_INPUT(NewDicomImaPosPat,IOP,"Image Orientation Patient",std::vector<double>,"");
48   BBTK_INPUT(NewDicomImaPosPat,PixelSpacing,"Pixel Spacing",std::vector<double>,"");
49
50   BBTK_OUTPUT(NewDicomImaPosPat,Out , "New Image Position Patient" , std::vector<double> , "");
51   BBTK_OUTPUT(NewDicomImaPosPat,Transform,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");
52         
53 BBTK_END_DESCRIBE_BLACK_BOX(NewDicomImaPosPat);
54 }
55 // EO namespace bbTransform3Ddicom
56
57 #endif // __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__
58