#include "creaImageIOSystem.h"#include <vtkImageData.h>#include <vector>

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. | |
| vtkImageData* getImageDataDialog | ( | ) |
Definition at line 9 of file creaImageIOExternalGimmick.cpp.
References creaImageIO::WxSimpleDlg::getImagesSelected(), and creaImageIO::WxSimpleDlg::getInfoImage().
{
wxString infoImage;
std::vector<vtkImageData*> images;
creaImageIO::WxSimpleDlg w(0,_T("Select your image"),"creaContours_Descriptor.dscp","creatisContours DB");
w.ShowModal();
if(w.GetReturnCode() == wxID_OK)
{
std::vector<std::string> s;
images = w.getImagesSelected();
infoImage = w.getInfoImage();
} // if
vtkImageData *result=NULL;
if (images.size()>0)
{
result=images[0];
}
return result;
}

1.7.1