creaImageIO_lib
|
Simple Wxwidgets interface to select file(s) or directory or from creaImageIO database to display. More...
#include <creaImageIOWxAnySimpleDlg.h>
Public Member Functions | |
WxAnySimpleDlg (wxWindow *parent, wxString i_title=_T(""), const std::string i_namedescp="localdatabase_Descriptor.dscp", const std::string i_namedb="Local Database") | |
Ctor. More... | |
~WxAnySimpleDlg () | |
void | setExts (std::vector< std::string >) |
void | OnReadFile (wxCommandEvent &event) |
Callback to read file(s) More... | |
void | OnReadDirectory (wxCommandEvent &event) |
Callback to read directory, no recursive. More... | |
void | OnReadGimmick (wxCommandEvent &event) |
Callback to select from creaImageIO database. More... | |
std::vector< vtkImageData * > | getVtkImagesSelected () |
return a vtkImageData vector of selected images, if available More... | |
wxString | getInfoImage () |
void | set (bool i_dicom) |
std::vector< boost::any > & | getImagesSelected () |
std::vector< size_t > | getDims () |
std::vector< std::type_info * > | getTypes () |
template<typename TImage > | |
std::vector< typename TImage::Pointer > | getTemplatedImagesSelected () |
bool | AllSameType () |
template<class TImage > | |
void | split3Din3Dvtk (TImage *i_Img) |
template<typename TImage > | |
void | split4Din3Dvtk (TImage *i_Img) |
Private Member Functions | |
void | readImg (const std::string &i_name) |
void | readDicomImg (const std::vector< std::string > &i_names) |
const size_t | getNumberOfDimensions (const std::string &i_name) |
const std::type_info & | getType (const std::string &i_name) |
Private Attributes | |
std::vector< size_t > | m_AnyDims |
std::vector< std::type_info * > | m_AnyType |
std::vector< boost::any > | m_AnyImages |
std::vector< std::string > | m_exts |
std::string | namedescp |
std::string | namedb |
wxString | infoimage |
std::string | m_dir |
bool | m_dicom |
SimpleView | m_view |
interface to read data More... | |
std::vector< vtkImageData * > | m_Vresults |
Simple Wxwidgets interface to select file(s) or directory or from creaImageIO database to display.
Definition at line 47 of file creaImageIOWxAnySimpleDlg.h.
creaImageIO::WxAnySimpleDlg::WxAnySimpleDlg | ( | wxWindow * | parent, |
wxString | i_title = _T("") , |
||
const std::string | i_namedescp = "localdatabase_Descriptor.dscp" , |
||
const std::string | i_namedb = "Local Database" |
||
) |
Ctor.
Button to select Bruker directory
Definition at line 54 of file creaImageIOWxAnySimpleDlg.cpp.
References m_dicom, namedb, namedescp, OnReadDirectory(), OnReadFile(), and OnReadGimmick().
|
inline |
Definition at line 57 of file creaImageIOWxAnySimpleDlg.h.
bool creaImageIO::WxAnySimpleDlg::AllSameType | ( | ) |
|
inline |
Definition at line 78 of file creaImageIOWxAnySimpleDlg.h.
|
inline |
wxString creaImageIO::WxAnySimpleDlg::getInfoImage | ( | ) |
Definition at line 208 of file creaImageIOWxAnySimpleDlg.cpp.
References infoimage.
|
private |
Definition at line 224 of file creaImageIOWxAnySimpleDlg.cpp.
Referenced by readImg().
|
inline |
|
private |
Definition at line 215 of file creaImageIOWxAnySimpleDlg.cpp.
Referenced by readImg().
|
inline |
Definition at line 81 of file creaImageIOWxAnySimpleDlg.h.
|
inline |
return a vtkImageData vector of selected images, if available
Definition at line 70 of file creaImageIOWxAnySimpleDlg.h.
References creaImageIO::m_Vresults.
void creaImageIO::WxAnySimpleDlg::OnReadDirectory | ( | wxCommandEvent & | event | ) |
Callback to read directory, no recursive.
Definition at line 124 of file creaImageIOWxAnySimpleDlg.cpp.
References m_exts, and readImg().
Referenced by WxAnySimpleDlg().
void creaImageIO::WxAnySimpleDlg::OnReadFile | ( | wxCommandEvent & | event | ) |
Callback to read file(s)
Definition at line 88 of file creaImageIOWxAnySimpleDlg.cpp.
References readImg().
Referenced by WxAnySimpleDlg().
void creaImageIO::WxAnySimpleDlg::OnReadGimmick | ( | wxCommandEvent & | event | ) |
Callback to select from creaImageIO database.
Definition at line 168 of file creaImageIOWxAnySimpleDlg.cpp.
References _3D, creaImageIO::WxGimmickReaderDialog::GetSelectedFiles(), GIMMICK_2D_IMAGE_SELECTION, GIMMICK_3D_IMAGE_SELECTION, m_dicom, namedb, namedescp, creaImageIO::WxGimmickReaderDialog::OnExit(), readDicomImg(), readImg(), and creaImageIO::WxGimmickReaderDialog::stopReading().
Referenced by WxAnySimpleDlg().
|
private |
Definition at line 512 of file creaImageIOWxAnySimpleDlg.cpp.
Referenced by OnReadGimmick().
|
private |
Definition at line 233 of file creaImageIOWxAnySimpleDlg.cpp.
References getNumberOfDimensions(), getType(), m_AnyDims, m_AnyImages, and m_AnyType.
Referenced by OnReadDirectory(), OnReadFile(), and OnReadGimmick().
|
inline |
void creaImageIO::WxAnySimpleDlg::setExts | ( | std::vector< std::string > | i_exts | ) |
Definition at line 116 of file creaImageIOWxAnySimpleDlg.cpp.
References m_exts.
|
inline |
void creaImageIO::WxAnySimpleDlg::split4Din3Dvtk | ( | TImage * | i_Img | ) |
|
private |
Definition at line 137 of file creaImageIOWxAnySimpleDlg.h.
Referenced by getInfoImage().
|
private |
Definition at line 131 of file creaImageIOWxAnySimpleDlg.h.
Referenced by readImg().
|
private |
Definition at line 133 of file creaImageIOWxAnySimpleDlg.h.
Referenced by readImg().
|
private |
Definition at line 132 of file creaImageIOWxAnySimpleDlg.h.
Referenced by AllSameType(), and readImg().
|
private |
Definition at line 141 of file creaImageIOWxAnySimpleDlg.h.
Referenced by OnReadGimmick(), and WxAnySimpleDlg().
|
private |
Definition at line 138 of file creaImageIOWxAnySimpleDlg.h.
Referenced by split4Din3Dvtk().
|
private |
Definition at line 134 of file creaImageIOWxAnySimpleDlg.h.
Referenced by OnReadDirectory(), and setExts().
|
private |
interface to read data
Definition at line 143 of file creaImageIOWxAnySimpleDlg.h.
|
private |
Definition at line 146 of file creaImageIOWxAnySimpleDlg.h.
Referenced by split4Din3Dvtk().
|
private |
Definition at line 136 of file creaImageIOWxAnySimpleDlg.h.
Referenced by OnReadGimmick(), and WxAnySimpleDlg().
|
private |
Definition at line 135 of file creaImageIOWxAnySimpleDlg.h.
Referenced by OnReadGimmick(), and WxAnySimpleDlg().