]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 8 Jul 2010 19:31:37 +0000 (19:31 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 8 Jul 2010 19:31:37 +0000 (19:31 +0000)
bbtk/src/bbcreaImageIOImagesChooserDialogBox.xml

index 615d90e89e45f7ba9d69391f3c17742a1f89c19a..4709dd4f367e40d5cca9a3da993202c465f98d06 100644 (file)
@@ -23,7 +23,8 @@
       typedef std::vector<vtkImageData*> OutputImagesType;</PRE>
   </typedef>
 
-  <output name="Out" type="OutputImagesType" description="The selected images"/>
+  <output name="Out" type="vtkImageData*" description="The selected image"/>
+  <output name="OutImages" type="OutputImagesType" description="Vector of elected images"/>
   
   <!--========================================================================
     PROCESS section -->
     <PRE>
       creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database");
       dlg.ShowModal();
-      bbSetOutputOut( dlg.getImagesSelected());
+         if (dlg.getImagesSelected().size()!=0){
+             bbSetOutputOut( dlg.getImagesSelected()[0] ); 
+         } else {
+             bbSetOutputOut( NULL ); 
+         }
+      bbSetOutputOutImages( dlg.getImagesSelected()); 
     </PRE>
   </process>