]> Creatis software - creaImageIO.git/blob - bbtk/src/bbcreaImageIOReadImages.h
#3320 ReadImages box
[creaImageIO.git] / bbtk / src / bbcreaImageIOReadImages.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbcreaImageIOReadImages_h_INCLUDED__
5 #define __bbcreaImageIOReadImages_h_INCLUDED__
6
7 #include "bbcreaImageIO_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10 #include <vtkImageData.h>
11
12 namespace bbcreaImageIO
13 {
14
15
16 typedef std::map<std::string, std::string> MapInfoDicom;
17 typedef std::vector< MapInfoDicom > VectorMapInfoDicom;
18
19 class bbcreaImageIO_EXPORT ReadImages
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(ReadImages,bbtk::AtomicBlackBox);
24 //===== 
25 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
26 //===== 
27   BBTK_DECLARE_INPUT(Active,bool);
28   BBTK_DECLARE_INPUT(DicomTags,std::vector<std::string>);
29   BBTK_DECLARE_INPUT(LstNameImages,std::vector<std::string>);
30   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
31   BBTK_DECLARE_OUTPUT(OutImages,std::vector<vtkImageData*>);
32   BBTK_DECLARE_OUTPUT(DicomInfo,VectorMapInfoDicom);
33   BBTK_PROCESS(Process);
34   void Process();
35 //===== 
36 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadImages,bbtk::AtomicBlackBox);
41   BBTK_NAME("ReadImages");
42   BBTK_AUTHOR("InfoDev");
43   BBTK_DESCRIPTION("No Description.");
44   BBTK_CATEGORY("empty");
45
46   BBTK_INPUT(ReadImages,Active,"(default true)  Active true/false",bool,"");
47   BBTK_INPUT(ReadImages,DicomTags,"Dicom Tags (vector of Dicom tags ex: D0028_0030  D0020_0037)",std::vector<std::string>,"");
48   BBTK_INPUT(ReadImages,LstNameImages,"List path to images",std::vector<std::string>,"");
49
50   BBTK_OUTPUT(ReadImages,Out,"Output Image",vtkImageData*,"");
51   BBTK_OUTPUT(ReadImages,OutImages,"List of Output Image",std::vector<vtkImageData*>,"");
52   BBTK_OUTPUT(ReadImages,DicomInfo,"vector of maps of Dicom tags",VectorMapInfoDicom,"");
53   
54 BBTK_END_DESCRIBE_BLACK_BOX(ReadImages);
55 //===== 
56 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
57 //===== 
58 }
59 // EO namespace bbcreaImageIO
60
61 #endif // __bbcreaImageIOReadImages_h_INCLUDED__
62