]> Creatis software - creaImageIO.git/blobdiff - bbtk/src/bbcreaImageIOGimmick.xml_v2
*** empty log message ***
[creaImageIO.git] / bbtk / src / bbcreaImageIOGimmick.xml_v2
index 4628f10966e26118aa443e0b8a5e7efa7f7541bd..9a21948cf2e37af342ac5196aa181d1e7b1898a6 100644 (file)
  <!--========================================================================
     INPUTS/OUTPUTS DECLARATION -->
 
-  <input name="Title" type="std::string" description="Title of the dialog"/>
-  <input name="ImageMinDimension" type="int" description="The minimal dimensionality of the image to be selected, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
-  <input name="ImageMaxDimension" type="int" description="The maximal dimensionality of the image to be selected, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
-  <input name="ImageOutputDimension" type="int" description="The dimensionality of the output image, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
-  <input name="Output" type="int" description="What to output ? 0(default)=image and filenames/1=only filenames"/>
-  <typedef><PRE>typedef std::vector<std::string> OutputFilesType;</PRE></typedef>
+  <input name="Title"                type="std::string" description="Title of the dialog"/>
+  <input name="ImageMinDimension"    type="int"         description="The minimal dimensionality of the image to be selected, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
+  <input name="ImageMaxDimension"    type="int"         description="The maximal dimensionality of the image to be selected, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
+  <input name="ImageOutputDimension" type="int"         description="The dimensionality of the output image, e.g. 2 for a 2D image, 3 for a 3D image,..."/>
+  <input name="Output"               type="int"         description="What to output ? 0(default)=image and filenames/1=only filenames"/>
+
+  <typedef><PRE>typedef std::vector<std::string>   OutputFilesType; </PRE></typedef>
   <typedef><PRE>typedef std::vector<vtkImageData*> OutputImagesType;</PRE></typedef>
 
- <output name="Out" type="vtkImageData*" description="The first selected image"/>
- <output name="Out2" type="OutputImagesType" description="The selected images"/>
- <output name="Files" type="OutputFilesType" description="The selected files"/>
+ <output name="Out"   type="vtkImageData*"    description="The first selected image"/>
+ <output name="Out2"  type="OutputImagesType" description="The selected images"/>
+ <output name="Files" type="OutputFilesType"  description="The selected files"/>
  
  <!--========================================================================
     PROCESS section -->
@@ -35,6 +36,8 @@
 
    creaImageIO::WxGimmickReaderDialog w(0,
                                   -1,
+                                                                 "localdatabase_Descriptor.dscp", 
+                                                                 "Local Database",
                                   crea::std2wx(bbGetInputTitle()),
                                   wxDefaultPosition,
                                   wxSize(1200,800),
                                   bbGetInputImageOutputDimension(),
                                   threads);
    w.ShowModal();
-   
+     
    if (w.GetReturnCode() == wxID_OK)
      {
+        printf ("EED GiMMick .. Process A \n");
        if (bbGetInputOutput()==0) 
          {
+        printf ("EED GiMMick .. Process B \n");
            std::vector<vtkImageData*> images;
            w.GetSelectedImages(images,bbGetInputImageOutputDimension());
            bbSetOutputOut(images[0]);
        std::vector<std::string> files;
        w.GetSelectedFiles(files);
        bbSetOutputFiles(files);
-     }
+     }   
    else if (w.GetReturnCode() == wxID_CANCEL)
      {
 //    if (bbGetOutputOut()!=0) 
 //     { 
- //       bbGetOutputOut()->Delete();    
+//       bbGetOutputOut()->Delete();
 //          bbSetOutputOut(0);
-// }
+//     }
      }
   </PRE></process>
 
- <!--======================================================================
-   CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
 
-  <constructor><PRE> 
+
+    <!--========================================================================
+    CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
+  <defaultValues><PRE> 
     bbSetInputImageMinDimension(2);
     bbSetInputImageMaxDimension(3);
     bbSetInputImageOutputDimension(3);
     bbSetInputTitle("Select image(s)");
-    bbGetInputOutput(0);
-    bbSetOutputOut(0);
-  </PRE>
-  </constructor>
-
-
-  <!-- THE COPY-CONSTRUCTION METHOD BODY : -->
-  <copyconstructor>
-  <PRE>
-    bbSetOutputOut(0);
-  </PRE>
-  </copyconstructor>
-
-  <!-- THE DESTRUCTION METHOD BODY : -->
-  <destructor>
-  <PRE>
+    bbSetInputOutput(0);
+  </PRE></defaultValues>    
+  
+  <initializeProcessing><PRE>
+  </PRE></initializeProcessing>    
+  
+  <finalizeProcessing><PRE>
     std::vector<vtkImageData*>::iterator i;
     for (i=bbGetOutputOut2().begin();i!=bbGetOutputOut2().end();++i) (*i)->Delete();
-  </PRE>
-  </destructor>
+  </PRE></finalizeProcessing>    
+  <!--=====================================================================-->