creaImageIO_lib
creaImageIOExternalGimmick.cpp File Reference
Include dependency graph for creaImageIOExternalGimmick.cpp:

Go to the source code of this file.

Functions

vtkImageData * getImageDataDialog ()
 
std::vector
< creaImageIO::OutStrGimmick
getImagesInfoDialog ()
 

Function Documentation

vtkImageData* getImageDataDialog ( )

Definition at line 36 of file creaImageIOExternalGimmick.cpp.

References creaImageIO::WxSimpleDlg::getImagesSelected(), and creaImageIO::WxSimpleDlg::getInfoImage().

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 }

Here is the call graph for this function:

std::vector<creaImageIO::OutStrGimmick> getImagesInfoDialog ( )

Definition at line 60 of file creaImageIOExternalGimmick.cpp.

References creaImageIO::WxSimpleDlg::getMapInfos(), and creaImageIO::WxSimpleDlg::setInfo().

61 {
62  wxString infoImage;
63  std::vector<creaImageIO::OutStrGimmick> s;
64  creaImageIO::WxSimpleDlg w(0,_T("Select your image"),"creaContours_Descriptor.dscp","creatisContours DB");
65  w.setInfo(true);
66  w.ShowModal();
67  if(w.GetReturnCode() == wxID_OK)
68  {
69  s = w.getMapInfos();
70  }
71 
72  return s;
73 }

Here is the call graph for this function: