Functions

creaImageIOExternalGimmick.cpp File Reference

#include <creaImageIOExternalGimmick.h>
#include <creaImageIOWxSimpleDlg.h>
Include dependency graph for creaImageIOExternalGimmick.cpp:

Go to the source code of this file.

Functions

vtkImageData * getImageDataDialog ()

Function Documentation

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;
}

Here is the call graph for this function: