** 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
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");