X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.cpp;h=19d564ef84ecbd11f9d913623b2e4284cd1ada81;hp=6f55604e11f4c69ee725b19455e897d1c148c66a;hb=d850a3477e9ccaecfa85e00bc619848fcc29bdb6;hpb=b361677a2f7d5b443641faec70b057f2a84dc77e diff --git a/src/views.cpp b/src/views.cpp index 6f55604..19d564e 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -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");