r172: *** empty log message ***
[ctsim.git] / libctsim / scanner.cpp
index 5888d45569a16ea9ed0784003278dfd37bace071..709dc0f5698016f515758a031a83c75f21e2c1c5 100644 (file)
@@ -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);