creaImageIO_lib
creaImageIOGimmickReaderDialog.h File Reference
#include "creaImageIOSystem.h"
#include <vtkImageData.h>
#include <vector>
Include dependency graph for creaImageIOGimmickReaderDialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  creaImageIO
 

Functions

vtkImageData * getImageDataDialog ()
 
bool creaImageIO::GimmickReaderDialog (std::vector< vtkImageData * > &images, const std::string i_namedescp, const std::string i_namedb="Local Database", const std::string &title="Select images", int posx=0, int posy=0, int sizex=1200, int sizey=800, int image_min_type=2, int image_max_type=3, int image_out_dim=2, int nb_threads=1)
 Pops up a WxGimmickReaderDialog returns true if the user clicked 'Ok', false if 'Cancel' and fills the vector of images. More...
 

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: