+ 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("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();
+ /* vtkMetaImageReader *r= vtkMetaImageReader::New();
+ r->SetFileName("c:\\toto.mhd");
+ double zz[3];
+ images[0]->GetSpacing(zz);
+
+ vtkMetaImageWriter* ww = vtkMetaImageWriter::New();
+ ww->SetFileName("c:\\toto2.mhd");
+ ww->SetInput(images[0]);
+ ww->GetInput()->ShallowCopy(images[0]);
+ ww->UpdateInformation();
+ ww->GetInput()->GetSpacing(zz);
+
+
+//>GetImageDataInput(0)->GetSpacing(zz);
+ images[0]->Delete();
+
+ ww->Write();
+ ww->Delete();
+*/
+
+
+
+
+ crea::VtkBasicSlicer(out.front().img);