]> Creatis software - creaImageIO.git/blob - bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomMetaImageReader_DicomInfo.h
#3326 bbtk_Transform3Ddicom_PKG
[creaImageIO.git] / bbtk_Transform3Ddicom_PKG / src / bbTransform3DdicomMetaImageReader_DicomInfo.h
1 #ifndef __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__
2 #define __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__
3 #include "bbTransform3Ddicom_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7 namespace bbTransform3Ddicom
8 {
9
10 class bbTransform3Ddicom_EXPORT MetaImageReader_DicomInfo
11  : 
12    public bbtk::AtomicBlackBox
13 {
14   BBTK_BLACK_BOX_INTERFACE(MetaImageReader_DicomInfo,bbtk::AtomicBlackBox);
15 //==================================================================
16
17 /*
18 /// User callback called in the box contructor
19 virtual void bbUserConstructor();
20 /// User callback called in the box copy constructor
21 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
22 /// User callback called in the box destructor
23 virtual void bbUserDestructor();
24 */
25
26 //==================================================================
27   BBTK_DECLARE_INPUT( In , std::string );
28         BBTK_DECLARE_OUTPUT(IPP, std::vector<double> );
29         BBTK_DECLARE_OUTPUT(IOP, std::vector<double> );
30         BBTK_DECLARE_OUTPUT(PixelSpacing, std::vector<double> );
31   BBTK_PROCESS(Process);
32   void Process();
33         std::vector<double>  IPP;
34         std::vector<double>  IOP;
35         std::vector<double>  PixelSpacing;
36         
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MetaImageReader_DicomInfo,bbtk::AtomicBlackBox);
40 BBTK_NAME("MetaImageReader_DicomInfo");
41 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
42 BBTK_DESCRIPTION("Read MHD and MHD_dicominfo");
43 BBTK_CATEGORY("");
44         BBTK_INPUT(MetaImageReader_DicomInfo,In,"File name", std::string ,"");
45     BBTK_OUTPUT(MetaImageReader_DicomInfo,IPP,"Image position patient", std::vector<double>,"");
46     BBTK_OUTPUT(MetaImageReader_DicomInfo,IOP,"Image orientation patient", std::vector<double>,"");
47     BBTK_OUTPUT(MetaImageReader_DicomInfo,PixelSpacing,"Spacing ", std::vector<double>,"");
48 BBTK_END_DESCRIBE_BLACK_BOX(MetaImageReader_DicomInfo);
49 }
50 // EO namespace bbTransform3Ddicom
51
52 #endif // __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__
53