X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fscanner.cpp;h=48f23943a739ec654d361fba8fdcc35f1fad92d5;hp=bb7a7d84cbb4d3bd96b2c1b6a4d3cd383d30c312;hb=9703ace3c451ce079967284bf191783736dbc77f;hpb=43259365c0fa2788f15e1100491271dd910f5a6f diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index bb7a7d8..48f2394 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.15 2000/09/07 14:29:05 kevin Exp $ +** $Id: scanner.cpp,v 1.18 2000/12/16 02:31:00 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 @@ -361,10 +361,12 @@ Scanner::collectProjections (Projections& proj, const Phantom& phm, const int iS } m_pSGP->setPenWidth (1); } - if (m_trace >= Trace::TRACE_CONSOLE) + if (m_trace > Trace::TRACE_CONSOLE) traceShowParam ("Current View:", "%d (%.0f%%)", PROJECTION_TRACE_ROW_CURR_VIEW, C_RED, iView + iStartView, (iView + iStartView) / static_cast(m_nView) * 100.); #endif - + if (m_trace == Trace::TRACE_CONSOLE) + cout << "Current View: " << iView+iStartView << endl; + projectSingleView (phm, detArray, xd1, yd1, xd2, yd2, xs1, ys1, xs2, ys2, viewAngle + 3 * HALFPI); detArray.setViewAngle (viewAngle); @@ -530,7 +532,11 @@ Scanner::traceShowParamRasterOp (int iRasterOp, const char *szLabel, const char { char szValue[256]; +#ifdef MSVC + vsprintf (szValue, fmt, args); +#else vsnprintf (szValue, sizeof(szValue), fmt, args); +#endif // cio_set_cpos (raysum_trace_menu_column, row); // cio_set_text_clr (color - 8, 0);