bool wxTheApplication :: OnInit()
{
+ wxString infoImage;
wxInitAllImageHandlers();
//EED01Juin2010 int min_image_type = GIMMICK_2D_IMAGE_SELECTION;
// }
//EED 1Juin2010
- printf("EED creaContours wxTheApplication :: OnInit %d\n", w.getImagesSelected().size() );
- images=w.getImagesSelected();
- printf("EED creaContours wxTheApplication :: OnInit %d\n", images.size() );
+// printf("EED creaContours wxTheApplication :: OnInit %d\n", w.getImagesSelected().size() );
+ images = w.getImagesSelected();
+ infoImage = w.getInfoImage();
+// printf("EED creaContours wxTheApplication :: OnInit %d\n", images.size() );
}
else if (w.GetReturnCode() == wxID_CANCEL)
{
vtkMetaImageReader *reader = vtkMetaImageReader::New();
std::string filename= datadir + "/data/hola.mhd";
+ infoImage=_T("DEFAULT-Image:")+crea::std2wx(filename);
reader->SetFileName( filename.c_str() );
reader->Update();
images.push_back(reader->GetOutput());
}
- wxFrame* frame1 = new wxFrame(NULL, wxID_ANY, wxT("ROI Application - Evaluation version, 09 Feb 2009 "), wxPoint(400,50), wxSize(800, 600) );
+ wxFrame* frame1 = new wxFrame(NULL, wxID_ANY, wxT("Creatis- ROI Application- Evaluation version,01 Agost 2010 ")+infoImage, wxPoint(400,50), wxSize(800, 600) );
//frame = new wxContourMainFrame( frame1, wxID_ANY, wxString(_T("")), wxPoint(50,50), wxSize(800, 600), images );
frame = wxContourMainFrame::getInstance(frame1, wxID_ANY, wxString(_T("")), wxPoint(200,50), wxSize(800, 600), images, wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,datadir );