]> Creatis software - creaImageIO.git/blob - bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.h
95088c634bd7ff613f0c8f3c3bc0134f6bc3c2cf
[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         // Template export vtk Images
55         template<class TImage> void ExportVTK();
56
57         itk::Object* mOutput;
58 //===== 
59 // 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)
60 //===== 
61 };
62
63 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ItkImagesChooserDialogBox,bbtk::AtomicBlackBox);
64 BBTK_NAME("ItkImagesChooserDialogBox");
65 BBTK_AUTHOR("cervenansky.frederic@creatis.insa-lyon.fr");
66 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.");
67 BBTK_CATEGORY("image;reader;dicom;");
68
69
70 BBTK_INPUT(ItkImagesChooserDialogBox,Title,"Title of the dialog",std::string,"");
71 BBTK_OUTPUT(ItkImagesChooserDialogBox,OutVImages,"The selected Vtkimage",OutputImagesVTKType,"");
72 BBTK_OUTPUT(ItkImagesChooserDialogBox,Out,"Output Image",bbitk::anyImagePointer,"");
73 BBTK_OUTPUT(ItkImagesChooserDialogBox,OutIImages,"Vector of selected images",OutputImagesITKType,"");
74 BBTK_END_DESCRIBE_BLACK_BOX(ItkImagesChooserDialogBox);
75
76 //===== 
77 // 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)
78 //===== 
79 }
80 // EO namespace bbcreaImageIO
81
82 #endif // __bbcreaImageIOItkImagesChooserDialogBox_h_INCLUDED__
83