1 #ifndef __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__
2 #define __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__
3 #include "bbTransform3Ddicom_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
6 #include "vtkLinearTransform.h"
8 namespace bbTransform3Ddicom
11 class bbTransform3Ddicom_EXPORT NewDicomImaPosPat
13 public bbtk::AtomicBlackBox
15 BBTK_BLACK_BOX_INTERFACE(NewDicomImaPosPat,bbtk::AtomicBlackBox);
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 //==================================================================
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);
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");
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>,"");
50 BBTK_OUTPUT(NewDicomImaPosPat,Out , "New Image Position Patient" , std::vector<double> , "");
51 BBTK_OUTPUT(NewDicomImaPosPat,Transform,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");
53 BBTK_END_DESCRIBE_BLACK_BOX(NewDicomImaPosPat);
55 // EO namespace bbTransform3Ddicom
57 #endif // __bbTransform3DdicomNewDicomImaPosPat_h_INCLUDED__