]> Creatis software - bbtk.git/blob - packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.h
Some re indent
[bbtk.git] / packages / gdcmvtk / src / bbgdcmvtkGetXCoherentInfoGdcmReader.h
1 #ifdef _USE_VTK_
2
3 #ifndef __bbgdcmvtkGetXCoherentInfoGdcmReader_h_INCLUDED__
4 #define __bbgdcmvtkGetXCoherentInfoGdcmReader_h_INCLUDED__
5
6 #include "bbgdcmvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkGdcmReader.h"
11 #include "gdcmFile.h"
12 #include "gdcmSerieHelper.h"
13
14 namespace bbgdcmvtk
15 {
16
17 class bbgdcmvtk_EXPORT GetXCoherentInfoGdcmReader
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(GetXCoherentInfoGdcmReader,bbtk::AtomicBlackBox);
22 //==================================================================
23 /// User callback called in the box contructor
24 virtual void bbUserConstructor();
25 /// User callback called in the box copy constructor
26 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
27 /// User callback called in the box destructor
28 virtual void bbUserDestructor();
29 //==================================================================
30
31   BBTK_DECLARE_INPUT(In,            std::vector<std::string>);
32   BBTK_DECLARE_INPUT(IPPSort,       bool);
33   
34   BBTK_DECLARE_OUTPUT(Out,          vtkImageData *);
35   BBTK_DECLARE_OUTPUT(IPP,          std::vector<double>);
36   BBTK_DECLARE_OUTPUT(IOP,          std::vector<double>);
37   BBTK_DECLARE_OUTPUT(PixelSpacing, std::vector<double>);
38        
39   BBTK_PROCESS(Process);
40   void Process();
41   
42   private:
43      GDCM_NAME_SPACE::File *f;
44      GDCM_NAME_SPACE::SerieHelper *sh;
45      vtkGdcmReader *reader;
46 };
47
48   //=================================================================
49   // UserBlackBox description
50 BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetXCoherentInfoGdcmReader,bbtk::AtomicBlackBox);
51 BBTK_NAME("GetXCoherentInfoGdcmReader");
52 BBTK_AUTHOR("jpr, eduardo");
53 BBTK_DESCRIPTION("Get Dicom info from a File Set and read (as a vtkImageData)");
54 BBTK_CATEGORY("");
55
56 BBTK_INPUT(GetXCoherentInfoGdcmReader,In,     "Dicom image file name",std::vector<std::string>,"");
57 BBTK_INPUT(GetXCoherentInfoGdcmReader,IPPSort,"Sort on Image Position Patient",bool,"");
58
59 BBTK_OUTPUT(GetXCoherentInfoGdcmReader,Out,         "Output image",                vtkImageData *,"");
60 BBTK_OUTPUT(GetXCoherentInfoGdcmReader,IPP,         "Image Position (Patient)",    std::vector<double>,"");
61 BBTK_OUTPUT(GetXCoherentInfoGdcmReader,IOP,         "Image Orientation (Patient)", std::vector<double>,"");
62 BBTK_OUTPUT(GetXCoherentInfoGdcmReader,PixelSpacing,"Pixel Spacing",               std::vector<double>,"");
63 BBTK_END_DESCRIBE_BLACK_BOX(GetXCoherentInfoGdcmReader);
64 } // EO namespace bbgdcmvtk
65
66 #endif // __bbgdcmvtkGetXCoherentInfoGdcmReader_h_INCLUDED__
67
68 #endif //_USE_VTK_