X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdlgprojections.cpp;h=489d912b99097fb16eaddef99bac7057f52b3dfb;hp=870f13bfb47c4190f8559f871cc43138ca469e11;hb=5c6b29ab4885308cc3381af6e0a68f4804956d2e;hpb=188a31eeb786dc0db5986fc4e78a86db2eb5f067 diff --git a/src/dlgprojections.cpp b/src/dlgprojections.cpp index 870f13b..489d912 100644 --- a/src/dlgprojections.cpp +++ b/src/dlgprojections.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: dlgprojections.cpp,v 1.12 2000/12/18 06:47:13 kevin Exp $ +** $Id: dlgprojections.cpp,v 1.14 2000/12/29 15:45:06 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 @@ -147,8 +147,10 @@ ProjectionsDialog::showView (int iViewNumber) if ( iViewNumber < m_rProjections.nView() ) { m_iLastView = iViewNumber; ::wxYield(); // update the display - m_pSGP->eraseWindow(); - Refresh(); + m_pSGP->eraseWindow(); + m_btnPause->Refresh(); + m_btnStep->Refresh(); + m_btnAbort->Refresh(); if (m_iTrace >= Trace::TRACE_PLOT) m_pSGP->setViewport (0, 0, 0.66, 1); @@ -161,13 +163,13 @@ ProjectionsDialog::showView (int iViewNumber) double* detPos = new double [detArray.nDet()]; for (int i = 0; i < detArray.nDet(); i++) detPos[i] = i; - EZPlot ezplot (*m_pSGP); - ezplot.ezset("grid"); - ezplot.ezset("box"); - ezplot.ezset("yticks left"); + EZPlot ezplot; + ezplot.ezset ("grid"); + ezplot.ezset ("box"); + ezplot.ezset ("yticks left"); ezplot.addCurve (detValues, detPos, detArray.nDet()); m_pSGP->setViewport (0.67, 0.1, 1., 1.); - ezplot.plot(); + ezplot.plot (m_pSGP); delete detPos; } }