r318: *** empty log message ***
[ctsim.git] / src / dlgprojections.cpp
index 870f13bfb47c4190f8559f871cc43138ca469e11..489d912b99097fb16eaddef99bac7057f52b3dfb 100644 (file)
@@ -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;\r
                ::wxYield();        // update the display\r
-               m_pSGP->eraseWindow();\r
-               Refresh();\r
+               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");\r
-                       ezplot.ezset("yticks left");
+                       EZPlot ezplot;
+                       ezplot.ezset ("grid");
+                       ezplot.ezset ("box");\r
+                       ezplot.ezset ("yticks left");
                        ezplot.addCurve (detValues, detPos, detArray.nDet());\r
                        m_pSGP->setViewport (0.67, 0.1, 1., 1.);
-                       ezplot.plot();\r
+                       ezplot.plot (m_pSGP);\r
                        delete detPos;
                }
     }