]> Creatis software - creaImageIO.git/blob - bbtk/src/bbcreaImageIOImagesChooserDialogBox.xml
Add Analyze Reader to creaImageIO
[creaImageIO.git] / bbtk / src / bbcreaImageIOImagesChooserDialogBox.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!--==========================================================================
3    STARTS THE DESCRIPTION OF THE BLACK BOX -->
4 <blackbox name="ImagesChooserDialogBox">
5   <!--========================================================================
6     THE BOX DOCUMENTATION -->
7   <author>cervenansky.frederic@creatis.insa-lyon.fr</author>
8   <description>
9     ImagesChooserDialogBox is a simple application to select file(s) or directory or data from Gimmick database and display them. It handles DICOM, jpg, tif, png, bmp and mhd.
10   </description>
11   <category>image;reader;dicom;</category>
12
13   <!--========================================================================
14     #include directives to be put in the .h generated
15     There must be one tag per file to include -->
16   <include>creaImageIOWxSimpleDlg.h</include>
17   <!--========================================================================
18     INPUTS/OUTPUTS DECLARATION -->
19
20   <input name="Title" type="std::string" description="Title of the dialog"/>
21   <typedef>
22     <PRE>
23       typedef std::vector<vtkImageData*> OutputImagesType;</PRE>
24   </typedef>
25
26   <output name="Out" type="vtkImageData*" description="The selected image"/>
27   <output name="OutImages" type="OutputImagesType" description="Vector of selected images"/>
28   
29   <!--========================================================================
30     PROCESS section -->
31
32   <process>
33     <PRE>
34       creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database");
35       dlg.ShowModal();
36           if (dlg.getImagesSelected().size()!=0){
37               bbSetOutputOut( dlg.getImagesSelected()[0] ); 
38           } else {
39               bbSetOutputOut( NULL ); 
40           }
41       bbSetOutputOutImages( dlg.getImagesSelected()); 
42     </PRE>
43   </process>
44
45   <!--======================================================================
46    CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
47
48    
49   <defaultValues>
50   <PRE>
51
52   </PRE>
53   </defaultValues>
54
55    
56
57 </blackbox>
58