Files Classes Functions Hierarchy
#include <graphmisc.h>
Public Member Functions | |
| gltextmsg (string const &msg_, floatc x, floatc y, floatc c0, floatc c1, floatc c2) | |
| template<typename T > | |
| void | updatevalue (T const &v, string const &post=string("")) |
| template<typename T > | |
| void | updatevalue (string const &pre, T const &v, string const &post=string("")) |
| void | display () const |
Public Attributes | |
| string | msg |
| float | pos [2] |
| float | col [3] |
Definition at line 357 of file graphmisc.h.
| void gltextmsg::display | ( | ) | const [inline] |
Definition at line 413 of file graphmisc.h.
Referenced by integration< D, F >::draw().
00414 { 00415 myglPushMatrix temp; 00416 00417 myLightingTurnOff temp2; 00418 00419 glLoadIdentity(); 00420 gluOrtho2D(-1.0, 1.0, -1.0, 1.0); 00421 00422 glColor3f(col[0],col[1],col[2]); 00423 00424 glRasterPos2f(pos[0],pos[1]); 00425 00426 int len = msg.length(); 00427 for (int i = 0; i < len; ++i) 00428 glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, msg[i]); 00429 }
| void gltextmsg::updatevalue | ( | string const & | pre, | |
| T const & | v, | |||
| string const & | post = string("") | |||
| ) | [inline] |
| void gltextmsg::updatevalue | ( | T const & | v, | |
| string const & | post = string("") | |||
| ) | [inline] |
| float gltextmsg::col[3] |
| string gltextmsg::msg |
| float gltextmsg::pos[2] |
1.5.8