Namespaces | Functions

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.

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: