]> Creatis software - creaImageIO.git/blob - bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.h
Add Analyze Reader to creaImageIO
[creaImageIO.git] / bbtk / src / bbcreaImageIOItkImagesChooserDialogBox.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 __bbcreaImageIOItkImagesChooserDialogBox_h_INCLUDED__
5 #define __bbcreaImageIOItkImagesChooserDialogBox_h_INCLUDED__
6
7 #define BBTK_ITK_IMAGE_DIM_2
8 #define BBTK_ITK_IMAGE_DIM_3
9 #define BBTK_ITK_IMAGE_DIM_4
10 #define BBTK_ITK_IMAGE_TYPE_int8_t
11 #define BBTK_ITK_IMAGE_TYPE_uint8_t
12 #define BBTK_ITK_IMAGE_TYPE_int16_t
13 #define BBTK_ITK_IMAGE_TYPE_uint16_t
14 #define BBTK_ITK_IMAGE_TYPE_int32_t
15 #define BBTK_ITK_IMAGE_TYPE_uint32_t
16 #define BBTK_ITK_IMAGE_TYPE_float
17 #define BBTK_ITK_IMAGE_TYPE_double
18
19 #include "bbcreaImageIO_EXPORT.h"
20 #include "bbtkAtomicBlackBox.h"
21 #include "bbitkImage.h"
22 #include "bbtkAny.h"
23 #include "creaImageIOWxAnySimpleDlg.h"
24
25 namespace bbcreaImageIO
26 {
27 typedef std::vector<vtkImageData*> OutputImagesVTKType;
28 typedef std::vector<bbitk::anyImagePointer> OutputImagesITKType;
29
30 class bbcreaImageIO_EXPORT ItkImagesChooserDialogBox
31  : 
32    public bbtk::AtomicBlackBox
33 {
34   BBTK_BLACK_BOX_INTERFACE(ItkImagesChooserDialogBox,bbtk::AtomicBlackBox);
35  
36   
37         creaImageIO::WxAnySimpleDlg *dlg;
38          
39
40 //===== 
41 // 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)
42 //===== 
43   BBTK_DECLARE_INPUT(Title,std::string);
44   BBTK_DECLARE_OUTPUT(OutVImages,OutputImagesVTKType);
45   BBTK_DECLARE_OUTPUT(OutIImages,OutputImagesITKType);
46   BBTK_DECLARE_OUTPUT(Out,bbitk::anyImagePointer);
47   BBTK_PROCESS(Process);
48   void Process();
49
50     private:
51     // Template read method 
52     template<class TImage> void Export();
53 //===== 
54 // 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)
55 //===== 
56 };
57
58 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ItkImagesChooserDialogBox,bbtk::AtomicBlackBox);
59 BBTK_NAME("ItkImagesChooserDialogBox");
60 BBTK_AUTHOR("cervenansky.frederic@creatis.insa-lyon.fr");
61 BBTK_DESCRIPTION("ImagesChooserDialogBox is a simple application to select file(s) or directory or data from Gimmick database, handle them as ITKImage and/or display them. It handles Analayze, DICOM, jpg, tif, png, bmp and mhd.");
62 BBTK_CATEGORY("image;reader;dicom;");
63
64
65 BBTK_INPUT(ItkImagesChooserDialogBox,Title,"Title of the dialog",std::string,"");
66 BBTK_OUTPUT(ItkImagesChooserDialogBox,OutVImages,"The selected Vtkimage",OutputImagesVTKType,"");
67 BBTK_OUTPUT(ItkImagesChooserDialogBox,Out,"Output Image",bbitk::anyImagePointer,"");
68 BBTK_OUTPUT(ItkImagesChooserDialogBox,OutIImages,"Vector of selected images",OutputImagesITKType,"");
69 BBTK_END_DESCRIBE_BLACK_BOX(ItkImagesChooserDialogBox);
70
71 //===== 
72 // 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)
73 //===== 
74 }
75 // EO namespace bbcreaImageIO
76
77 #endif // __bbcreaImageIOItkImagesChooserDialogBox_h_INCLUDED__
78