creaImageIO_lib
creaImageIOExternalGimmick.h File Reference
Include dependency graph for creaImageIOExternalGimmick.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

vtkImageData * getImageDataDialog ()
 

Function Documentation

vtkImageData* getImageDataDialog ( )

Definition at line 36 of file creaImageIOExternalGimmick.cpp.

37 {
38  wxString infoImage;
39  std::vector<vtkImageData*> images;
40  creaImageIO::WxSimpleDlg w(0,_T("Select your image"),"creaContours_Descriptor.dscp","creatisContours DB");
41  w.ShowModal();
42  if(w.GetReturnCode() == wxID_OK)
43  {
44  std::vector<std::string> s;
45  images = w.getImagesSelected();
46  infoImage = w.getInfoImage();
47  } // if
48 
49  vtkImageData *result=NULL;
50  if (images.size()>0)
51  {
52  result=images[0];
53  }
54 
55  return result;
56 }