creaImageIO_lib
|
#include <creaImageIOWxGimmickPanel.h>
Public Types | |
typedef boost::signal< void(bool)> | SendImageSignalType |
typedef SendImageSignalType::slot_function_type | SendImageCallbackType |
Public Member Functions | |
WxGimmickPanel () | |
WxGimmickPanel (wxWindow *parent, const wxWindowID id, const wxPoint &pos, const wxSize &size, const std::string i_namedescp, const std::string i_namedb="Local Database", int threads=0) | |
~WxGimmickPanel () | |
Destructor. More... | |
void | ConnectSendImageObserver (SendImageCallbackType callback) |
void | GetSelectedImages (std::vector< vtkImageData * > &s, int dim) |
void | getSelected (std::vector< OutStrGimmick > &outG, std::vector< std::string > i_attr, bool mult, const std::string outmodel) |
void | OnSelectedImage (bool t) |
Callback method on a selection. More... | |
void | AddImagesToDB (std::string dir) |
Private Attributes | |
boost::shared_ptr< Gimmick > | mGimmick |
WxGimmickView * | mView |
SendImageSignalType | mSendImageSignal |
The sendImage signal. More... | |
Definition at line 48 of file creaImageIOWxGimmickPanel.h.
typedef SendImageSignalType::slot_function_type creaImageIO::WxGimmickPanel::SendImageCallbackType |
Definition at line 64 of file creaImageIOWxGimmickPanel.h.
typedef boost::signal<void (bool)> creaImageIO::WxGimmickPanel::SendImageSignalType |
Definition at line 63 of file creaImageIOWxGimmickPanel.h.
creaImageIO::WxGimmickPanel::WxGimmickPanel | ( | ) |
creaImageIO::WxGimmickPanel::WxGimmickPanel | ( | wxWindow * | parent, |
const wxWindowID | id, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
const std::string | i_namedescp, | ||
const std::string | i_namedb = "Local Database" , |
||
int | threads = 0 |
||
) |
Definition at line 38 of file creaImageIOWxGimmickPanel.cpp.
References creaImageIO::GimmickView::ConnectValidationObserver(), GIMMICK_2D_IMAGE_SELECTION, GIMMICK_3D_IMAGE_SELECTION, GimmickDebugMessage, creaImageIO::GimmickView::Initialize(), mGimmick, mView, and OnSelectedImage().
creaImageIO::WxGimmickPanel::~WxGimmickPanel | ( | ) |
Destructor.
Definition at line 93 of file creaImageIOWxGimmickPanel.cpp.
References GimmickDebugMessage, mGimmick, and mView.
void creaImageIO::WxGimmickPanel::AddImagesToDB | ( | std::string | dir | ) |
Definition at line 117 of file creaImageIOWxGimmickPanel.cpp.
References creaImageIO::WxGimmickView::AddDir(), and mView.
void creaImageIO::WxGimmickPanel::ConnectSendImageObserver | ( | SendImageCallbackType | callback | ) |
Adds the function f to the list of functions to call when the addition progresses. f is of type ProgressCallbackType which is: void (*ProgressCallbackType)(Progress&) To pass a member function 'f' of an instance 'c' of a class 'C' as callback you have to 'bind' it, i.e. call: ConnectSendImageObserver ( boost::bind( &C::f , c, _1 ) );
Definition at line 131 of file creaImageIOWxGimmickPanel.cpp.
References mSendImageSignal.
|
inline |
Definition at line 99 of file creaImageIOWxGimmickPanel.h.
|
inline |
Definition at line 82 of file creaImageIOWxGimmickPanel.h.
void creaImageIO::WxGimmickPanel::OnSelectedImage | ( | bool | t | ) |
Callback method on a selection.
Definition at line 112 of file creaImageIOWxGimmickPanel.cpp.
References mSendImageSignal.
Referenced by WxGimmickPanel().
|
private |
Definition at line 111 of file creaImageIOWxGimmickPanel.h.
Referenced by WxGimmickPanel(), and ~WxGimmickPanel().
|
private |
The sendImage signal.
Definition at line 115 of file creaImageIOWxGimmickPanel.h.
Referenced by ConnectSendImageObserver(), and OnSelectedImage().
|
private |
Definition at line 112 of file creaImageIOWxGimmickPanel.h.
Referenced by AddImagesToDB(), WxGimmickPanel(), and ~WxGimmickPanel().