FACT++  1.0
void BasicGlCamera::DrawCameraText ( )
protectedvirtual

Reimplemented in QCameraWidget.

Definition at line 429 of file BasicGlCamera.cc.

References dataText, fTextEnabled, height, pixelSize, shownSizex, shownSizey, and titleText.

430  {
431  if (!fTextEnabled)
432  return;
433  glPushMatrix();
434  glLoadIdentity();
435 // cout << width() << " " << height() << endl;
436  int textSize = (int)(height()*14/600);
437 // setFont(QFont("Times", textSize));
438  qglColor(QColor(255,223,127));
439  float shiftx = 0.01f;//0.55f;
440  float shifty = 0.01f;//0.65f;
441  renderText(-shownSizex/2.f + shiftx, 0.f, 0.f, QString(dataText.c_str()));//-shownSizey/2.f + shifty, 0.f, QString(dataText.c_str()));
442 
443 
444 // int textLength = titleText.size();
445  renderText(-shownSizex/2.f + shiftx, shownSizey/2.f - textSize*pixelSize - shifty, 0.f, QString(titleText.c_str()));
446 
447  glPopMatrix();
448 
449  // textSize = (int)(600*14/600);
450 // setFont(QFont("Times", textSize));
451  }
std::string dataText
Definition: BasicGlCamera.h:73
std::string titleText
Definition: BasicGlCamera.h:75
float height
Definition: HeadersGPS.h:26