X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FTestWxGimmickReaderDialog%2Fmain.cxx;h=03c25ec074e289f2556dbccf587deee8216e6513;hb=refs%2Ftags%2FCREATOOLS.2-0-3;hp=33157d9cf427f055cbbe9ee6ee1edacc2753939c;hpb=40c5cfdc77e721db1507ffdac3625b7813f66f4c;p=creaImageIO.git diff --git a/appli/TestWxGimmickReaderDialog/main.cxx b/appli/TestWxGimmickReaderDialog/main.cxx index 33157d9..03c25ec 100644 --- a/appli/TestWxGimmickReaderDialog/main.cxx +++ b/appli/TestWxGimmickReaderDialog/main.cxx @@ -6,7 +6,7 @@ #include -// + //#pragma comment(lib, "creaImageIO.lib") //#pragma comment(lib, "DelayImp.lib") // @@ -49,14 +49,13 @@ bool myApp::OnInit( ) int output_dim = _3D; int threads = 1; - creaImageIO::WxGimmickReaderDialog w( 0, -1, "localdatabase_Descriptor.dscp", "Local Database", - _T("Select image(s) - Gimmick! (c) CREATIS-LRMN 2008"), + _T("Select image(s) - DCMAPI (c) VPH NOE ( cnrs - upf)"), wxDefaultPosition, wxSize(810,750), min_dim, @@ -87,6 +86,42 @@ bool myApp::OnInit( ) std::vector images; 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 out; + // std::vector 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 out; + // std::vector 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 out; + std::vector attr; + attr.push_back("D0028_0010"); + attr.push_back("D0008_0023"); + attr.push_back("D0008_1070"); + w.getSelected(out, attr,true,""); + std::cout<Delete(); + w.OnExit(); + + // images[1]->UpdateInformation(); /* vtkMetaImageReader *r= vtkMetaImageReader::New(); r->SetFileName("c:\\toto.mhd"); @@ -110,10 +145,8 @@ bool myApp::OnInit( ) - //w.GetSelectedImages(images,output_dim); - std::cout<Delete(); w.OnExit(); @@ -137,5 +170,3 @@ bool myApp::OnInit( ) std::cout << "$$$$$$$$$$$$$$$$$$$$ main ended "<