FACT++  1.0
void RawDataViewer::paintGL ( )
protectedvirtual

Reimplemented from BasicGlCamera.

Definition at line 449 of file RawEventsViewer.cc.

References drawBlur, drawCamera(), BasicGlCamera::drawHexagon(), drawImpulse, drawPatch, BasicGlCamera::drawPatches(), drawPixelCurve(), BasicGlCamera::DrawScale(), and selectedPixel.

Referenced by getCurrentPixel().

450 {
451  //Should not be required, but apparently it helps when piping it through X forwarding
452  glFinish();
453  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
454  glLoadIdentity();
455 
456  glTranslatef(0,0,-0.5);
457 
458  if (drawBlur)
459  {
460  glShadeModel(GL_SMOOTH);
461  drawCamera(false);
462  }
463  else
464  {
465  glShadeModel(GL_FLAT);
466  drawCamera(true);
467  }
468  glTranslatef(0,0,0.1f);
469  if (drawPatch)
470  drawPatches();
471  glTranslatef(0,0,0.1f);
472  if (!drawBlur && (selectedPixel != -1))
473  {
474  glLineWidth(1.0f);
475  glColor3f(1.0,1.0,1.0);
476  drawHexagon(selectedPixel, false);
477  }
478  glTranslatef(0,0,0.1f);
479  if (drawImpulse)
480  {
481  // glRotatef(cameraRotation, 0,0,1);
482  glLoadIdentity();
483  glLineWidth(2.0);
484  drawPixelCurve();
485  }
486  glTranslatef(0,0,0.1f);
487  DrawScale();
488 }
virtual void drawPatches()
void drawCamera(bool alsoWire)
void drawHexagon(int index, bool solid)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: