FACT++  1.0
void QCameraWidget::drawCamera ( bool  alsoWire)
virtual

Reimplemented from BasicGlCamera.

Definition at line 72 of file QCameraWidget.cc.

References ACTUAL_NUM_PIXELS, CalculatePixelsColor(), BasicGlCamera::drawHexagon(), i, BasicGlCamera::pixelColorUpToDate, BasicGlCamera::pixelContourColour, and BasicGlCamera::pixelsColor.

Referenced by paintGL().

73  {
74 
75  if (!pixelColorUpToDate)
77  glLineWidth(1.0);
78  for (int i=0;i<ACTUAL_NUM_PIXELS;i++)
79  {
80  glColor3fv(pixelsColor[i]);
81  glLoadName(i);
82  drawHexagon(i,true);
83  }
84  if (!alsoWire)
85  return;
86  glTranslatef(0,0,0.1f);
87  glColor3fv(pixelContourColour);//0.0f,0.0f,0.0f);
88  for (int i=0;i<ACTUAL_NUM_PIXELS;i++)
89  {
90  drawHexagon(i, false);
91  }
92  }
GLfloat pixelContourColour[3]
Definition: BasicGlCamera.h:66
int i
Definition: db_dim_client.c:21
GLfloat pixelsColor[NPIX][3]
#define ACTUAL_NUM_PIXELS
Definition: BasicGlCamera.h:9
void drawHexagon(int index, bool solid)
void CalculatePixelsColor()
bool pixelColorUpToDate
Definition: BasicGlCamera.h:63

+ Here is the call graph for this function:

+ Here is the caller graph for this function: