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>
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."
11 <category>image;reader;dicom;</category>
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 -->
20 <input name="Title" type="std::string" description="Title of the dialog"/>
23 typedef std::vector<vtkImageData*> OutputImagesType;</PRE>
26 <output name="Out" type="OutputImagesType" description="The selected images"/>
28 <!--========================================================================
33 creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()));
35 if (bbGetInputOutput()==0)
37 bbSetOutputOut( x.getImagesSelected());
43 <!--======================================================================
44 CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
48 bbSetInputImageDimension(3);
49 bbSetInputTitle("Select image(s)");
55 <!-- THE COPY-CONSTRUCTION METHOD BODY : -->
62 <!-- THE DESTRUCTION METHOD BODY -->
65 std::vector<vtkImageData*>::iterator i;
66 for (i=bbGetOutputOut2().begin();i!=bbGetOutputOut2().end();++i) (*i)->Delete();