** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: dlgreconstruct.cpp,v 1.1 2000/09/02 05:13:57 kevin Exp $
+** $Id: dlgreconstruct.cpp,v 1.2 2000/09/02 16:40:36 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
ReconstructDialog::showView (int iViewNumber)
{
if ( iViewNumber < m_rProjections.nView() ) {
- wxYield(); // update the display
m_iLastView = iViewNumber;
m_pSGP->eraseWindow();
if (m_iTrace >= Trace::TRACE_PLOT)
if (m_iTrace >= Trace::TRACE_PLOT)
m_pSGP->setViewport (0, .1, 0.66, 1);
m_rReconstructor.reconstructView (iViewNumber, 1, m_pSGP);
-
- ::wxYield();
- m_pDC->SelectObject (wxNullBitmap);
- Refresh();
- m_pDC->SelectObject (m_bitmap);
- ::wxYield();
}
}
bool
ReconstructDialog::reconstructView (int iViewNumber)
{
+ ::wxYield(); // update the display
showView (iViewNumber);
- wxYield(); // update the display
- if (m_iTrace >= Trace::TRACE_PLOT)
- sleep(1);
- else {
+ ::wxYield(); // update the display
+ if (iViewNumber < m_rProjections.nView()) {
+ if (m_iTrace >= Trace::TRACE_PLOT) {
+ sleep(1);
+ }
+ } else {
m_state = Finished; // so that we return TRUE below and
} // that [Cancel] handler knew what to do
MacUpdateImmediately();
#endif
+ ::wxYield(); // update the display
return m_state != Cancelled;
}