X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=libctsim%2Fscanner.cpp;h=d577ebb293cd45f11646e7241dd5a90af106c815;hb=4a5567b8df652cc3168bb9d439bc23f973a2b5ea;hp=465523a1e3bc5e8fef7fa19b679f8aaaf436ae17;hpb=c8ec665dde5df59539daf63e0a6a44f27550258b;p=ctsim.git diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 465523a..d577ebb 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.24 2001/01/17 06:38:06 kevin Exp $ +** $Id: scanner.cpp,v 1.26 2001/01/27 21:02:20 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 @@ -318,6 +318,7 @@ Scanner::collectProjections (Projections& proj, const Phantom& phm, const int iS m_pSGP->moveAbs (0., 0.); m_pSGP->drawCircle (m_dFocalLength); m_pSGP->setColor (C_BLUE); + m_pSGP->setTextPointSize (9); phm.draw (*m_pSGP); m_dTextHeight = m_pSGP->getCharHeight (); @@ -535,13 +536,24 @@ Scanner::traceShowParamRasterOp (int iRasterOp, const char *szLabel, const char #ifdef HAVE_SGP if (m_pSGP) { m_pSGP->setRasterOp (iRasterOp); - double dYPos = m_dYMaxWin - (row * m_dTextHeight); - m_pSGP->moveAbs (m_dXMinWin, dYPos); m_pSGP->setTextColor (color, -1); -// m_pSGP->drawText (szLabel); double dValueOffset = (m_dXMaxWin - m_dXMinWin) / 4; - m_pSGP->moveAbs (m_dXMinWin + dValueOffset, dYPos); -// m_pSGP->drawText (szValue); + if (row < 4) { + double dYPos = m_dYMaxWin - (row * m_dTextHeight); + double dXPos = m_dXMinWin; + m_pSGP->moveAbs (dXPos, dYPos); + m_pSGP->drawText (szLabel); + m_pSGP->moveAbs (dXPos + dValueOffset, dYPos); + m_pSGP->drawText (szValue); + } else { + row -= 4; + double dYPos = m_dYMaxWin - (row * m_dTextHeight); + double dXPos = m_dXMinWin + (m_dXMaxWin - m_dXMinWin) * 0.5; + m_pSGP->moveAbs (dXPos, dYPos); + m_pSGP->drawText (szLabel); + m_pSGP->moveAbs (dXPos + dValueOffset, dYPos); + m_pSGP->drawText (szValue); + } } else #endif {