#include "wxItkProgressDialog.h" wxItkProgressDialog::wxItkProgressDialog(const wxString& title, const wxString& message, int maximum, wxWindow * parent, int style) : wxProgressDialog2(title, message, maximum, parent, style) { m_Callback = wxItkProgressDialogCallback::New(); m_Callback->SetProgressDialog (this); } void wxItkProgressDialog::SetItkObjectToWatch (itk::ProcessObject::Pointer object) { if( object.IsNull() ) return; object->AddObserver (itk::ProgressEvent(), m_Callback); }