FACT++  1.0
void QCameraWidget::paintGL ( )
virtual

Reimplemented from BasicGlCamera.

Definition at line 23 of file QCameraWidget.cc.

References BasicGlCamera::cameraRotation, drawCamera(), DrawCameraText(), BasicGlCamera::drawHexagon(), drawPatches(), BasicGlCamera::DrawScale(), fDrawPatch, BasicGlCamera::fWhite, highlightedPixels, and BasicGlCamera::highlightedPixelsCoulour.

24  {
25  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
26  glLoadIdentity();
27 
28  glTranslatef(0,-0.44,0);
29  glTranslatef(-0.1,0,0);
30  glRotatef(cameraRotation, 0,0,-1);
31  if (cameraRotation == 90)
32  {
33  glTranslatef(-0.45,-0.45,0);
34  // cout << "correction" << endl;
35  }
36  if (cameraRotation == -90)
37  {
38  glTranslatef(0.45,-0.45,0);
39  }
40  glScalef(1.5, 1.5, 1.0);
41  glTranslatef(0,0,-0.5);
42  drawCamera(true);
43  glTranslatef(0,0,0.1f);
44 
45  if (fDrawPatch)
46  drawPatches();
47  glTranslatef(0,0,0.1f);
48 
49  glLineWidth(1.0f);
50  glColor3fv(highlightedPixelsCoulour);
51  for (vector<int>::iterator it = highlightedPixels.begin(); it!= highlightedPixels.end(); it++)
52  {
53  drawHexagon(*it, false);
54  }
55 
56  glLineWidth(1.0f);
57  glTranslatef(0,0,0.1f);
58 
59  //glColor3f(1.f - pixelsColor[fWhite][0],1.f - pixelsColor[fWhite][1],1.f - pixelsColor[fWhite][2]);
60  if (fWhite != -1)
61  {
62  glColor3f(1.f, 0.f, 0.f);
63  drawHexagon(fWhite, false);
64  }
66 
67  DrawScale();
68 
69 // if (linearButton->isVisible())
70 // repaintInterface();
71  }
GLfloat highlightedPixelsCoulour[3]
Definition: BasicGlCamera.h:69
std::vector< int > highlightedPixels
Definition: QCameraWidget.h:22
void DrawCameraText()
void drawHexagon(int index, bool solid)
void drawCamera(bool alsoWire)

+ Here is the call graph for this function: