r627: no message
[ctsim.git] / src / views.cpp
index 6f55604e11f4c69ee725b19455e897d1c148c66a..19d564ef84ecbd11f9d913623b2e4284cd1ada81 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: views.cpp,v 1.130 2001/03/10 23:14:16 kevin Exp $
+**  $Id: views.cpp,v 1.131 2001/03/10 23:56:58 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
@@ -2419,13 +2419,13 @@ ProjectionFileView::OnPlotTThetaSampling (wxCommandEvent& event)
     ParallelRaysums parallel (&rProj);
     PlotFileDocument* pPlotDoc = theApp->newPlotDoc();
     PlotFile& rPlot = pPlotDoc->getPlotFile();
-    ParallelRaysumCoordinate** ppCoord = parallel.getCoordinates();
+    ParallelRaysums::CoordinateContainer& coordContainer = parallel.getCoordinates();
     double* pdT = new double [parallel.getNumCoordinates()];
     double* pdTheta = new double [parallel.getNumCoordinates()];
+
     for (int i = 0; i < parallel.getNumCoordinates(); i++) {
-      pdT[i] = (*ppCoord)->m_dT;
-      pdTheta[i] = (*ppCoord)->m_dTheta;
-      ++ppCoord;
+      pdT[i] = coordContainer[i]->m_dT;
+      pdTheta[i] = coordContainer[i]->m_dTheta;
     }
     rPlot.setCurveSize (2, parallel.getNumCoordinates(), true);
     rPlot.addEzsetCommand ("title T-Theta Sampling");