X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fscanner.cpp;h=709dc0f5698016f515758a031a83c75f21e2c1c5;hp=5888d45569a16ea9ed0784003278dfd37bace071;hb=04d5009bc18e7bf51ab9d8fab1e8c6a1a86af919;hpb=847238fe5e949030f05a37184afeeb493b151d55 diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 5888d45..709dc0f 100644 --- a/libctsim/scanner.cpp +++ b/libctsim/scanner.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: scanner.cpp,v 1.9 2000/08/02 18:06:00 kevin Exp $ +** $Id: scanner.cpp,v 1.10 2000/08/03 09:21:12 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 @@ -265,9 +265,9 @@ Scanner::collectProjections (Projections& proj, const Phantom& phm, const int st pSGP->moveAbs (xs1, ys1); pSGP->lineAbs (xs2, ys2); } -#endif if (m_trace) traceShowParam ("Current View :", "%5d", RAYSUM_TRACE_ROW_CURR_VIEW, C_LTMAGENTA, iview); +#endif projectSingleView (phm, detArray, xd1, yd1, xd2, yd2, xs1, ys1, xs2, ys2, pSGP); detArray.setViewAngle (viewAngle); @@ -356,10 +356,10 @@ Scanner::projectSingleView (const Phantom& phm, DetectorArray& detArray, const d #endif sum += projectSingleLine (phm, xd, yd, xs, ys, pSGP); +#ifdef HAVE_SGP if (m_trace >= TRACE_RAYS) traceShowParam ("Attenuation :", "%5.2f", RAYSUM_TRACE_ROW_ATTEN, C_LTMAGENTA, "sum"); -#ifdef HAVE_SGP if (pSGP && m_trace >= TRACE_RAYS) { pSGP->setColor (C_LTBLUE); pSGP->moveAbs (xs, ys);