]> Creatis software - creaImageIO.git/blob - bbtk/src/bbImagesChooserDialogBox.xml
Bug #1796
[creaImageIO.git] / bbtk / src / bbImagesChooserDialogBox.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="OutputImagesType" description="The selected images"/>
27   
28   <!--========================================================================
29     PROCESS section -->
30
31   <process>
32     <PRE>
33       creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()));
34       dlg.ShowModal();
35       if (bbGetInputOutput()==0)
36       {
37          bbSetOutputOut( x.getImagesSelected());
38       }
39
40     </PRE>
41   </process>
42
43   <!--======================================================================
44    CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
45
46   <constructor>
47     <PRE>
48       bbSetInputImageDimension(3);
49       bbSetInputTitle("Select image(s)");
50       bbSetInputOutput(0);
51       bbSetOutputOut(0);
52     </PRE>
53   </constructor>
54
55   <!-- THE COPY-CONSTRUCTION METHOD BODY : -->
56   <copyconstructor>
57     <PRE>
58       bbSetOutputOut(0);
59     </PRE>
60   </copyconstructor>
61
62   <!-- THE DESTRUCTION METHOD BODY  -->
63   <destructor>
64     <PRE>
65       std::vector<vtkImageData*>::iterator i;
66     for (i=bbGetOutputOut2().begin();i!=bbGetOutputOut2().end();++i) (*i)->Delete();
67   </PRE>
68   </destructor>
69
70 </blackbox>
71