]> Creatis software - creaImageIO.git/commitdiff
Need to recreate creaImageIO database
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 12 May 2010 14:15:11 +0000 (14:15 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 12 May 2010 14:15:11 +0000 (14:15 +0000)
appli/TestWxGimmickReaderDialog/main.cxx

index 797f46ed9920b28796376add7c74be1bb2c104af..8c7ce1f4165a0f6bed8bcb308547b7487aa0d36b 100644 (file)
@@ -87,15 +87,39 @@ bool myApp::OnInit( )
           w.GetSelectedImages(images,3);
 
        
-
-
-
+       // First Exemple:
+       // We take all attributes from database
+       // but only for the first selected file.
+    // For the moment, no output model file (XML)
+       //  std::vector<creaImageIO::OutStrGimmick> out;
+       //  std::vector<std::string> attr;
+       //  attr.push_back("ALL");
+       //  w.getSelected(out, attr, false,"");
+
+
+    // Second Exemple:
+       // We take all attributes from database
+       // but for all selected file.
+    // For the moment, no output model file (XML)
+       //  std::vector<creaImageIO::OutStrGimmick> out;
+       //  std::vector<std::string> attr;
+       //  attr.push_back("ALL");
+       //  w.getSelected(out, attr,true,"");
+
+    // Third Exemple:
+       // We take attributes from database and others
+       // but for all selected file.
+    // For the moment, no output model file (XML)
           std::vector<creaImageIO::OutStrGimmick> out;
-               std::vector<std::string> attr;
-               //attr.push_back("ALL");
-               attr.push_back("D0008_1070");
-               w.getSelected(out, attr,true,"");
-
+       std::vector<std::string> attr;
+          attr.push_back("D0028_0010");
+          attr.push_back("D0008_0023");
+          attr.push_back("D0008_1070");
+          w.getSelected(out, attr,true,"");
+       std::cout<<out.size()<<std::endl;
+          crea::VtkBasicSlicer(out.front().img);
+       out.front().img->Delete();
+       w.OnExit();
 
 
 // images[1]->UpdateInformation();
@@ -121,10 +145,8 @@ bool myApp::OnInit( )
 
 
 
-       //w.GetSelectedImages(images,output_dim);
-       std::cout<<images.size()<<std::endl;
 
-       crea::VtkBasicSlicer(images.front());
+          crea::VtkBasicSlicer(out.front().img);
        images.front()->Delete();
        w.OnExit();