** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadrecon.cpp,v 1.3 2001/02/22 18:22:40 kevin Exp $
+** $Id: threadrecon.cpp,v 1.4 2001/02/23 02:06:02 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
m_pProjView->GetDocument()->addReconstructor (this);
if (! theApp->getUseBackgroundTasks())
m_pDialogProgress = new wxProgressDialog (_T("Filtered Backprojection"), _T("Reconstruction Progress"), m_iTotalViews, m_pProjView->getFrame(), wxPD_CAN_ABORT | wxPD_AUTO_HIDE);
- else
- m_pGauge = theApp->getBackgroundManager()->addTask (this, m_iTotalViews, m_pProjView->GetFrame()->GetTitle());
+ else {
+ std::string strLabel ("Reconstructing ");
+ strLabel += m_pProjView->GetFrame()->GetTitle();
+ m_pGauge = theApp->getBackgroundManager()->addTask (this, m_iTotalViews, strLabel.c_str());
+ }
m_iRunning = m_iNumThreads;
m_iViewsDone = 0;
eventProgress.SetInt (RTHREAD_UNIT_COMPLETE);
wxPostEvent (m_pSupervisor, eventProgress);
}
+ m_pReconstructor->postProcessing();
eventProgress.SetInt (m_iThread); // Send back thread# that has finished
wxPostEvent (m_pSupervisor, eventProgress);