]> Creatis software - creaImageIO.git/blobdiff - bbtk/src/bbcreaImageIOImagesChooserDialogBox.xml
2414 creaImageIO Bug New Normal ImagesChooserDialog Box return the name of the file
[creaImageIO.git] / bbtk / src / bbcreaImageIOImagesChooserDialogBox.xml
index e24073865f121bf5539f7d2265f750cf81348c06..67e768edb96022b095acbb0663625c5edacb1855 100644 (file)
@@ -52,7 +52,7 @@
     <PRE>
       typedef std::vector<std::string> VectorStringType;</PRE>
   </typedef>
-  <input name="DicomTags" type="VectorStringType" description="Dicom Tags"/>
+  <input name="DicomTags" type="VectorStringType" description="Dicom Tags (vector of Dicom tags ex: D0028_0030  D0020_0037)"/>
 
   <typedef>
     <PRE>
       typedef std::vector< MapInfoDicom > VectorMapInfoDicom;</PRE>
   </typedef>
 
-  <output name="DicomInfo" type="VectorMapInfoDicom" description="Map of Dicom tags"/>
+  <output name="DicomInfo" type="VectorMapInfoDicom" description="vector of maps of Dicom tags"/>
+  <output name="FileName" type="std::string" description="Selected file name"/>
   
   <!--========================================================================
     PROCESS section -->
 
   <process>
     <PRE>
+     
         creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database"); 
+                dlg.SetAttrDicomTags( bbGetInputDicomTags() );
                dlg.ShowModal(); 
                 bbSetOutputDicomInfo( dlg.getDicomInfoImagesSelected() );
                if (dlg.getImagesSelected().size()!=0){ 
+                 bbSetOutputFileName( std::string( dlg.getInfoImage().mb_str() ) );
                  if(dlg.getImagesSelected().size() ==1)
                  {
                        bbSetOutputOut( dlg.getImagesSelected()[0] );  
 //                     //  }
 
                                bbSetOutputOut(out);
+
                        } else {
                         bbSetOutputOut(first);
                        } // dim