creaImageIO_lib
Top level graphical user interfaces

Classes

class  creaImageIO::WxAttributeSelectionPanel
 
class  creaImageIO::WxCustomizeConfigPanel
 
class  creaImageIO::WxDescriptorPanel
 
class  creaImageIO::WxDumpPanel
 Display all dicom tags from a given DICOM file. More...
 
class  creaImageIO::WxEditFieldsPanel
 
class  creaImageIO::WxExportDlg
 
class  creaImageIO::WxGimmickFrame
 
class  creaImageIO::WxGimmickPanel
 
class  creaImageIO::WxGimmickReaderDialog
 
class  creaImageIO::WxListenerPanel
 
class  creaImageIO::WxOutputDlg
 
class  creaImageIO::WxPACSConnectionPanel
 

Functions

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...
 

Detailed Description

Function Documentation

bool creaImageIO::GimmickReaderDialog ( std::vector< vtkImageData * > &  images,
const std::string  i_namedescp,
const std::string  i_namedb,
const std::string &  title,
int  posx,
int  posy,
int  sizex,
int  sizey,
int  image_min_type,
int  image_max_type,
int  image_out_dim,
int  nb_threads 
)

Pops up a WxGimmickReaderDialog returns true if the user clicked 'Ok', false if 'Cancel' and fills the vector of images.

Definition at line 35 of file creaImageIOGimmickReaderDialog.cpp.

References creaImageIO::WxGimmickReaderDialog::GetSelectedImages().

47  {
48 
49 
51  -1,
52  i_namedescp,
53  i_namedb,
54  crea::std2wx(title),
55  wxPoint(posx,posy),
56  wxSize(sizex,sizey),
57  image_min_type,
58  image_max_type,
59  nb_threads);
60  w.ShowModal();
61 
62  if (w.GetReturnCode() == wxID_OK)
63  {
64  w.GetSelectedImages(images,image_out_dim);
65  return true;
66  }
67  else if (w.GetReturnCode() == wxID_CANCEL)
68  {
69  return false;
70  }
71  else
72  {
73  std::cout << "!! ERROR : GimmickReaderDialog : dialog ended without return code !"
74  <<std::endl;
75  return false;
76  }
77 
78 
79  }

Here is the call graph for this function: