X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fthreadrecon.cpp;h=f973c68a1498fc6ec59ade44c586348a768a685a;hb=7df269f65639c1a862a58649c48331824029128a;hp=e53daacb2458f53faa63a3f062496b1432ee755c;hpb=9776c9a12ba53419d34563a5ec57c90e3d6798f4;p=ctsim.git diff --git a/src/threadrecon.cpp b/src/threadrecon.cpp index e53daac..f973c68 100644 --- a/src/threadrecon.cpp +++ b/src/threadrecon.cpp @@ -9,7 +9,7 @@ ** 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 @@ -102,8 +102,11 @@ ThreadedReconstructor::start() 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; @@ -307,6 +310,7 @@ ReconstructionThread::Entry () 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);